From 06397a1b37b334def3bdb163edee38e0aaa9a501 Mon Sep 17 00:00:00 2001 From: shidongli Date: Tue, 14 Nov 2023 10:26:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AD=BE=E7=BA=A6=20=E6=8B=8D=E7=85=A7+?= =?UTF-8?q?=E8=B5=84=E8=AE=AF+=E7=AD=BE=E7=BA=A6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/protocol/protocol.vue | 8 +-- pages/medicalservice/medicalservice.vue | 6 +- pages/myinformation/myinformation.vue | 76 +++++++++++++++++++++---- 3 files changed, 70 insertions(+), 20 deletions(-) diff --git a/components/protocol/protocol.vue b/components/protocol/protocol.vue index dd27703..a8912fc 100644 --- a/components/protocol/protocol.vue +++ b/components/protocol/protocol.vue @@ -175,14 +175,12 @@ } }, openCamera() { - let that = this that.meimage='' uni.chooseImage({ sizeType: ['compressed'], sourceType: ['camera'], success: function(res) { - console.log(res,'000') that.meimage = res.tempFilePaths[0] uni.saveImageToPhotosAlbum({ filePath: that.meimage, @@ -199,8 +197,7 @@ success(respp) { that.signatureshow = false that.$emit('residentAutographPathlist', { - residentAutographPath: JSON.parse(res - .data).imgUrl, + residentAutographPath: JSON.parse(respp.data).imgUrl, image: that.meimage }) } @@ -213,7 +210,6 @@ // //签名 userSignaturePicture(data) { let that = this - console.log(data,'9999') that.meimage = data uni.uploadFile({ url: baseurl + '/applet/sign/apply/residentSignatureUpload', @@ -306,4 +302,4 @@ } } } - \ No newline at end of file + diff --git a/pages/medicalservice/medicalservice.vue b/pages/medicalservice/medicalservice.vue index e2f49f9..6d0e74b 100644 --- a/pages/medicalservice/medicalservice.vue +++ b/pages/medicalservice/medicalservice.vue @@ -20,7 +20,7 @@ - 健康咨询 + 健康资讯 查看更多 @@ -271,7 +271,7 @@ title: '请重新选择区域', type: 'error', duration: '1000', - + }) } @@ -300,4 +300,4 @@ \ No newline at end of file + diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 563ba54..b7c0743 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -220,6 +220,9 @@ import { createMobileToken } from '@/api/pages/login/index.js' + import { + checkSignApply + } from '@/api/pages/homepage/homepage.js' import baseurl from '@/api/baseurl.js' export default { data() { @@ -230,14 +233,25 @@ list: {}, showhome: false, //切换 familyList: null, //切换列表 + region:'',//城市 + infotitle: null, }; }, onShow() { // this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png' this.appPersonallist = uni.getStorageSync('userinfo') + this.region = uni.getStorageSync('region') this.baseurl = baseurl this.myInfo() this.getpersnoal() + if (this.appPersonallist && this.region != 3) { + checkSignApply(this.appPersonallist.cardNo).then(res => { + if (res.data) { + this.checkSign = res.data.code + this.infotitle = res.data.info + } + }) + } else {} }, methods: { gomyappiont() { @@ -382,18 +396,58 @@ }, // 签约信息 - Signing() { - if (uni.getStorageSync('region') == 3) { - this.$refs.uToast.show({ - title: '当前地区不支持,请选择其它地区', - type: 'error', - }) - } else { - uni.navigateTo({ - url: '/pagesB/mysigning/mysigning' - }) - } + // Signing() { + // if (uni.getStorageSync('region') == 3) { + // this.$refs.uToast.show({ + // title: '当前地区不支持,请选择其它地区', + // type: 'error', + // }) + // } else { + // uni.navigateTo({ + // url: '/pagesB/mysigning/mysigning' + // }) + // } + // }, + // 家医功能提示 + family() { + this.$refs.uToast.show({ + title: '当前绑定地市不支持', + type: 'error', + duration: '3000', + }) + }, + + // 签约信息 + Signing() { + if (!this.appPersonallist) { + this.gologin(); + } else if (this.appPersonallist) { + if (this.region == 3) { + this.family() + } else { + if (this.region == 1 || this.region == 2) { + if (this.checkSign == "0") { + this.$refs.uToast.show({ + title: '未签约,请先签约', + type: 'error', + url: "/pagesC/Onlinesigning/Onlinesigning" + }) + } else if (this.checkSign == "01") { + this.$refs.uToast.show({ + title: this.infotitle, + type: 'error', + }) + } else { + uni.navigateTo({ + url: "/pagesB/mysigning/mysigning" + }) + } + } else { + this.family() + } + } + } }, //去登陆 gologin() { From 69a690a50975190cd53dbe1fcd8b5bb2d09d4d89 Mon Sep 17 00:00:00 2001 From: shidongli Date: Tue, 14 Nov 2023 11:33:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=BD=90=E9=B2=81=E5=90=8D=E5=8C=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesB/medicine/medicine.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/pagesB/medicine/medicine.vue b/pagesB/medicine/medicine.vue index a82f835..f2d1348 100644 --- a/pagesB/medicine/medicine.vue +++ b/pagesB/medicine/medicine.vue @@ -42,6 +42,7 @@ {{ item.academicTitle=='ATTENDING_DOCTOR'?'主治医师':''}} {{ item.academicTitle=='PHYSICIAN'?'医师':''}} {{ item.academicTitle=='HEALER'?'医士':''}} + {{ item.academicTitle=='RESIDENT_PHYSICIAN'?'住院医师':''}} {{item.personIntroduce}}