From a163c7a770b2dba17c8829fc7ede49a17a9176db Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期五, 26 四月 2024 11:06:44 +0800 Subject: [PATCH] # --- pages/phyz/orderOut/orderCheck.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pages/phyz/orderOut/orderCheck.vue b/pages/phyz/orderOut/orderCheck.vue index 7d706cb..20990b3 100644 --- a/pages/phyz/orderOut/orderCheck.vue +++ b/pages/phyz/orderOut/orderCheck.vue @@ -63,7 +63,7 @@ count: 0 } }, - onLoad() { + onShow() { let _this = this this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); @@ -103,7 +103,12 @@ return } } - } + } else if (res.code == 403) { + uni.showToast({ title: res.msg, icon: "error", position: 'top' }) + setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); + } else { + uni.showToast({ title: res.msg, icon: "error", position: 'top' }) + } } }) }, @@ -144,6 +149,11 @@ delta: 2 }); },700) + } else if (res.code == 403) { + uni.showToast({ title: res.msg, icon: "error", position: 'top' }) + setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); + } else { + uni.showToast({ title: res.msg, icon: "error", position: 'top' }) } } }) -- Gitblit v1.9.1