<template> | |
<view class="loading"> | |
</view> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
src: '' | |
} | |
}, | |
onLoad(options) { | |
let url = decodeURIComponent(options.url) | |
let token = uni.getStorageSync('token') | |
let wv = plus.webview.create(url, 'webview_pay', { | |
top:'200px', | |
backButtonAutoControl:'close', | |
additionalHttpHeaders: { | |
Authorization: 'Bearer ' + token | |
} | |
}) | |
setTimeout(() => { | |
wv.show() | |
}, 1000) | |
}, | |
} | |
</script> | |
<style lang="scss" scoped> | |
.loading{ | |
} | |
</style> |