blob: 25bce0a8913855e09146d3ef205e09522a51b029 [file] [log] [blame]
guangchao.xu070005a2020-12-07 09:56:40 +08001<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>