21 lines
447 B
Vue
21 lines
447 B
Vue
<template>
|
|
<web-view :src="webviewUrl"></web-view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
webviewUrl: ''
|
|
};
|
|
},
|
|
// 页面加载时接收URL参数并解码
|
|
onLoad(options) {
|
|
let that = this
|
|
let token = uni.getStorageSync('token')
|
|
let url = options.url + '?token=' + token + '&id=' + options.id
|
|
this.webviewUrl = decodeURIComponent(url);
|
|
console.log("11111", url, this.webviewUrl)
|
|
}
|
|
}
|
|
</script> |