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