guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 1 | <template> |
| 2 | <view class="loading"> |
| 3 | </view> |
| 4 | </template> |
| 5 | |
| 6 | <script> |
| 7 | export default { |
| 8 | data() { |
| 9 | return { |
| 10 | src: '' |
| 11 | } |
| 12 | }, |
| 13 | onLoad(options) { |
| 14 | let url = decodeURIComponent(options.url) |
| 15 | let token = uni.getStorageSync('token') |
| 16 | let wv = plus.webview.create(url, 'webview_pay', { |
| 17 | top:'200px', |
| 18 | backButtonAutoControl:'close', |
| 19 | additionalHttpHeaders: { |
| 20 | Authorization: 'Bearer ' + token |
| 21 | } |
| 22 | }) |
| 23 | setTimeout(() => { |
| 24 | wv.show() |
| 25 | }, 1000) |
| 26 | }, |
| 27 | } |
| 28 | </script> |
| 29 | |
| 30 | <style lang="scss" scoped> |
| 31 | .loading{ |
| 32 | } |
| 33 | </style> |