diff --git a/pages/yjCanteen.vue b/pages/yjCanteen.vue index 2f6732a..0471370 100644 --- a/pages/yjCanteen.vue +++ b/pages/yjCanteen.vue @@ -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' }) } } },