From 919f0d26a6efffe1a9d42f56c9fb2b35ff6a1f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 17 Mar 2023 16:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request.js | 4 ++-- pages/CommodityOrder/CommodityOrder.vue | 7 ++++++- .../Nursingstationserviceorder.vue | 5 +++++ pages/coupon/coupon.vue | 4 ++-- pages/integral/integral.vue | 7 ++++++- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/api/request.js b/api/request.js index ae287c1..193e62c 100644 --- a/api/request.js +++ b/api/request.js @@ -22,9 +22,9 @@ var request = function(config) { let pages = getCurrentPages(); let path = pages[pages.length - 1].$page.fullPath if (path == '/pages/integral/integral') {} else if (path == - '/pages/shopping/shopping') {} else if (path == + '/pages/CommodityOrder/CommodityOrder') {} else if (path == '/pages/coupon/coupon') {} else if (path == - '/pages/materialbenefits/materialbenefits') {} else { + '/pages/Nursingstationserviceorder/Nursingstationserviceorder') {} else { uni.navigateTo({ url: '/pages/login/login' }) diff --git a/pages/CommodityOrder/CommodityOrder.vue b/pages/CommodityOrder/CommodityOrder.vue index afd0c34..cb5b352 100644 --- a/pages/CommodityOrder/CommodityOrder.vue +++ b/pages/CommodityOrder/CommodityOrder.vue @@ -79,7 +79,7 @@ - + 确认咨询完成了吗 确认收到货了吗 @@ -244,6 +244,11 @@ // }) uni.removeStorageSync('Refresh'); this.total = res.total + } else if (res.code == 9999) { + this.$refs.uToast.show({ + title: '未登录,请先登录', + type: 'error', + }) } }) }, diff --git a/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue b/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue index 3808697..33962b2 100644 --- a/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue +++ b/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue @@ -229,6 +229,11 @@ // e.timestamp = time - times // }) this.total = res.total + } else if (res.code == 9999) { + this.$refs.uToast.show({ + title: '未登录,请先登录', + type: 'error', + }) } }) }, diff --git a/pages/coupon/coupon.vue b/pages/coupon/coupon.vue index 0677079..c2a59bd 100644 --- a/pages/coupon/coupon.vue +++ b/pages/coupon/coupon.vue @@ -98,9 +98,9 @@ that.getlist(); } else { that.$refs.uToast.show({ - title: '请先登录', + title: '未登录,请先登录', type: 'error', - duration: '1000', + duration: '2000', }) } }, diff --git a/pages/integral/integral.vue b/pages/integral/integral.vue index 1baa4f6..432d8fc 100644 --- a/pages/integral/integral.vue +++ b/pages/integral/integral.vue @@ -538,7 +538,12 @@ }) this.goodslist = res.rows this.goodstotal = res.total - } else if (res.code == 9999) {} + } else if (res.code == 9999) { + this.$refs.uToast.show({ + title: '未登录,请先登录', + type: 'error', + }) + } }) }, //积分