2024-11-12 15:38:28 +08:00
|
|
|
<template>
|
|
|
|
|
<web-view :src="webviewUrl"></web-view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
webviewUrl: ''
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
// 页面加载时接收URL参数并解码
|
2024-12-07 10:41:48 +08:00
|
|
|
onLoad(options) {
|
2024-11-14 14:07:14 +08:00
|
|
|
let that = this
|
2024-11-12 15:38:28 +08:00
|
|
|
let token = uni.getStorageSync('token')
|
2024-12-10 17:27:58 +08:00
|
|
|
let url = options.url + '?token=' + token + '&id=' + options.id
|
2025-02-18 15:52:22 +08:00
|
|
|
that.webviewUrl = decodeURIComponent(url);
|
|
|
|
|
console.log("11111", options, url, this.webviewUrl)
|
2024-11-12 15:38:28 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|