From bfec2ffafff1559736884b9215614503082058ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 13 Apr 2023 10:41:41 +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 --- pages/Mymission/Mymission.vue | 23 ++++++++++++++++++++--- pages/homepage/homepage.vue | 1 + 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/pages/Mymission/Mymission.vue b/pages/Mymission/Mymission.vue index e368bdf..9fe9bef 100644 --- a/pages/Mymission/Mymission.vue +++ b/pages/Mymission/Mymission.vue @@ -104,8 +104,19 @@ methods: { //点击toptabr tapmymission(item) { - this.orderStatus = item - this.selectMissioninfo(); + var that = this + const value = uni.getStorageSync('nursePersonId'); + if (value) { + that.orderStatus = item + that.selectMissioninfo(); + } else { + that.$refs.uToast.show({ + title: '您未登录', + type: 'error', + duration: '1000', + url:"/pages/login/login" + }) + } }, //工单list请求 selectMissioninfo() { @@ -189,7 +200,13 @@ if (value) { that.nursePersonId = value that.selectMissioninfo(); - } else {} + } else { + that.$refs.uToast.show({ + title: '您未登录', + type: 'error', + duration: '1000' + }) + } }, onReachBottom() { //下滑加载 if (this.missionlist.length >= this.total) {} else { diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index fb6070a..13694e3 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -85,6 +85,7 @@ }; }, onShow() { + this.personRoleLoginFlag = "notRoleName" this.selectOrderByNursePersonCountlist = {} this.beijingurl = baseurl + '/profile/nursePersonAppletPicture/person_center.png' var that = this