运检食堂跳转修改
This commit is contained in:
parent
3d9028bfdc
commit
bc8a561030
|
|
@ -25,12 +25,17 @@
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
webViewSrc() {
|
webViewSrc() {
|
||||||
// return `/SDT_ZHST_APP?token=${this.token}`;//本地
|
// return `/SDT_ZHST_APP?token=${this.token}`;//本地
|
||||||
return `/SDT_ZHST_APP/?token=${uni.getStorageSync('token')}`;//本地
|
//return `../../static/yjCanteen/SDT_ZHST_APP?token=${uni.getStorageSync('token')}`;//本地
|
||||||
|
// return `/canteen/SDT_ZHST_APP?token=${uni.getStorageSync('token')}`;//本地
|
||||||
|
const token = uni.getStorageSync('token');
|
||||||
|
const mobile = uni.getStorageSync('mobile');
|
||||||
|
const origin = location.origin;
|
||||||
|
console.log(origin)
|
||||||
|
return `${origin}/canteen/SDT_ZHST_APP/index.html?token=${token}&mobile=${mobile}`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
console.log("yjCanteen")
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
const currentWebview = this.$scope.$getAppWebview() // 获取当前页面的webview对象
|
const currentWebview = this.$scope.$getAppWebview() // 获取当前页面的webview对象
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
|
@ -54,7 +59,10 @@
|
||||||
url: '/pages/login'
|
url: '/pages/login'
|
||||||
});
|
});
|
||||||
}else if (event.data.data.arg.action == 'sbdCanteen') {// 跳转到sbd食堂
|
}else if (event.data.data.arg.action == 'sbdCanteen') {// 跳转到sbd食堂
|
||||||
this.$router.push({ path: '/pages/index' })
|
// uni.reLaunch({
|
||||||
|
// url: '/pages/index' // 测试
|
||||||
|
// });
|
||||||
|
this.$router.push({ path: '/pages/index' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue