mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
提交对url的处理
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user