提交对url的处理

This commit is contained in:
daihh
2022-08-09 16:16:57 +08:00
parent 419514eb89
commit b231fd30e1
2 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
<view class="loaddetail-box">
<page-title :showBack="true">我的评估</page-title>
<view class="">
<web-view v-if="url!=''" :src="url" style="width: 100%;height: 100%;"></web-view>
<web-view v-if="oldUrl!=''" :src="oldUrl" style="width: 100%;height: 100%;"></web-view>
</view>
</view>
</template>
@@ -13,15 +13,15 @@
data() {
return{
id:'',
url:'',
oldUrl:'',
text:'',
}
},
onLoad(options) {
//console.log(options.id)
let decodeUrl=decodeURIComponent(options.url);
console.log('接收后解码后:'+item.url)
this.url = decodeUrl;
let decodeUrl=decodeURIComponent(options.reurl);
console.log('接收后解码后:'+decodeUrl)
this.oldUrl = decodeUrl;
},
mounted(){
// let urlPre=window.location.protocol+'//'+window.location.host;