运检食堂跳转修改

This commit is contained in:
zzyuan 2025-06-11 13:08:35 +08:00
parent 3d9028bfdc
commit bc8a561030
1 changed files with 12 additions and 4 deletions

View File

@ -25,12 +25,17 @@
},
computed: {
webViewSrc() {
// return `/SDT_ZHST_APP?token=${this.token}`;//
return `/SDT_ZHST_APP/?token=${uni.getStorageSync('token')}`;//
// return `/SDT_ZHST_APP?token=${this.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,7 +59,10 @@
url: '/pages/login'
});
}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' })
}
}
},