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