运检食堂跳转修改
This commit is contained in:
parent
3d9028bfdc
commit
bc8a561030
|
|
@ -26,11 +26,16 @@
|
|||
computed: {
|
||||
webViewSrc() {
|
||||
// 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() {
|
||||
console.log("yjCanteen")
|
||||
// #ifdef APP-PLUS
|
||||
const currentWebview = this.$scope.$getAppWebview() // 获取当前页面的webview对象
|
||||
setTimeout(()=>{
|
||||
|
|
@ -54,6 +59,9 @@
|
|||
url: '/pages/login'
|
||||
});
|
||||
}else if (event.data.data.arg.action == 'sbdCanteen') {// 跳转到sbd食堂
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/index' // 测试
|
||||
// });
|
||||
this.$router.push({ path: '/pages/index' })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue