diff --git a/pages/medicalservice/medicalservice.vue b/pages/medicalservice/medicalservice.vue index 8a13b2c..e2f49f9 100644 --- a/pages/medicalservice/medicalservice.vue +++ b/pages/medicalservice/medicalservice.vue @@ -254,17 +254,25 @@ goconsultationplatform() { const value = uni.getStorageSync('openid'); const value2 = uni.getStorageSync('patientId'); - if (value && value2) { + const value3 = uni.getStorageSync('region'); + if (value && value2 &&value3!=3) { uni.navigateTo({ url: '/pagesB/consultationplatform/consultationplatform', }) - } else { + } else if(!value && !value2) { this.$refs.uToast.show({ title: '您未登录,请先登录', type: 'error', duration: '1000', url: '/pages/login/login' }) + }else if(value3==3){ + this.$refs.uToast.show({ + title: '请重新选择区域', + type: 'error', + duration: '1000', + + }) } }, diff --git a/pagesB/createnewconsultation/createnewconsultation.vue b/pagesB/createnewconsultation/createnewconsultation.vue index 3b4f40e..89a1476 100644 --- a/pagesB/createnewconsultation/createnewconsultation.vue +++ b/pagesB/createnewconsultation/createnewconsultation.vue @@ -155,12 +155,11 @@ imglistlength: null, address: '请选择所属地区', //页面所属区域 formdata: { - address: '请选择所属地区', //页面所属区域 + address:'', //页面所属区域 patientId: '', patientName: '', cardNo: '', phone: '', - address: '', doctorId: '', doctorName: '', consultationType: 'IMAGE_TEXT_CONSULTATION', @@ -183,6 +182,7 @@ this.areaInfo(); let that = this that.formdata = uni.getStorageSync('userinfo') + this.formdata.address='' this.infolist() uni.$on('doctordata', function(data) { let item = JSON.parse(data.data) @@ -215,6 +215,9 @@ this.info(); }, info() { + this.$delete(this.formdata,'id') + console.log(this.formdata.address,'774') + this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION' if (!this.formdata.address) { this.$refs.uToast.show({ diff --git a/pagesC/seekadvicefrom/seekadvicefrom.vue b/pagesC/seekadvicefrom/seekadvicefrom.vue index 38c9dbd..a8a32c6 100644 --- a/pagesC/seekadvicefrom/seekadvicefrom.vue +++ b/pagesC/seekadvicefrom/seekadvicefrom.vue @@ -193,7 +193,7 @@ Read() { let markReadData = { consultationId: this.currentItem.id, - recipientId: this.currentItem.doctorId, + recipientId: this.currentItem.patientId, } markRead(markReadData) },