From bb6d457b418c2f5a5b773a54119e930503e0110f Mon Sep 17 00:00:00 2001 From: longchao <1432334894@qq.com> Date: Thu, 24 Jul 2025 18:45:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=82=A3=E8=80=85=E7=AB=AF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=B0=B1=E8=AF=8A=E4=BA=BA=E9=80=89=E6=8B=A9=E5=87=BA?= =?UTF-8?q?=E7=94=9F=E5=B9=B4=E4=BB=BD=E6=97=B6=E5=BC=B9=E7=AA=97=E4=B8=AD?= =?UTF-8?q?=E5=B9=B4=E4=BB=BD=E5=AD=97=E4=BD=93=E5=8F=98=E5=A4=A7=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/customeDatePicker.vue | 2 +- pages/modify_visitor/modify_visitor.vue | 302 ++++++++++++++++---------------- 2 files changed, 153 insertions(+), 151 deletions(-) diff --git a/components/customeDatePicker.vue b/components/customeDatePicker.vue index e3d53b6..271d64e 100644 --- a/components/customeDatePicker.vue +++ b/components/customeDatePicker.vue @@ -224,7 +224,7 @@ height: 68rpx; color: #E5E5E5; &.selected { - font-size: 28rpx !important; + font-size: 57rpx !important; color: #000000 !important; } &.style1 { diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue index efa80ae..8e2117a 100644 --- a/pages/modify_visitor/modify_visitor.vue +++ b/pages/modify_visitor/modify_visitor.vue @@ -14,10 +14,10 @@ 确认新增 - - - - + + + + 确认修改 @@ -32,23 +32,23 @@ - - - - - - 需要填写真实姓名,来确保您账号的唯一性 - - 真实姓名 - - - - - 完成 - - - - + + + + + + 需要填写真实姓名,来确保您账号的唯一性 + + 真实姓名 + + + + + 完成 + + + + @@ -79,8 +79,8 @@ export default { genders: { 0:'男', 1:'女' - }, - doctorInfo:false, + }, + doctorInfo:false, realName:'', } }, @@ -103,49 +103,51 @@ export default { }); } }, - onShow() { - if (this.vid) { - this.getVisitorInfo() - }else{ - this.getDoctorInfo() + onShow() { + if (this.vid) { + this.getVisitorInfo() + }else{ + this.getDoctorInfo() } + + this.$refs.customeDatePicker.open('bottom') }, - methods: { - handleConfirmPhone(){ - if(!this.realName.trim()){ - uni.showModal({ - title:'提示', - content: '姓名不可为空', - }) - return - } - this.$http.req('/api/user/set_realname', { realname:this.realName}, 'POST').then(data => { - if (data == -1) return - this.$refs.nameWrap.close() - }); - }, - getPhoneNumber(e) { - if (e.detail.errMsg === 'getPhoneNumber:ok') { - this.$http.req('api/user/bind_phone', {phonecode:e.detail.code}, 'POST').then(data=>{ - if(data == -1) return - this.getDoctorInfo() - }); - } else { - - } - }, - async getDoctorInfo() { - this.$http.req('api/user/index_info', {}, 'GET').then(data=>{ - if(data == -1) return - - this.doctorInfo = data; - - if(!data.realname && data.aid) { - this.$nextTick(() => { - this.$refs.nameWrap.open('bottom') - }) - } - }); + methods: { + handleConfirmPhone(){ + if(!this.realName.trim()){ + uni.showModal({ + title:'提示', + content: '姓名不可为空', + }) + return + } + this.$http.req('/api/user/set_realname', { realname:this.realName}, 'POST').then(data => { + if (data == -1) return + this.$refs.nameWrap.close() + }); + }, + getPhoneNumber(e) { + if (e.detail.errMsg === 'getPhoneNumber:ok') { + this.$http.req('api/user/bind_phone', {phonecode:e.detail.code}, 'POST').then(data=>{ + if(data == -1) return + this.getDoctorInfo() + }); + } else { + + } + }, + async getDoctorInfo() { + this.$http.req('api/user/index_info', {}, 'GET').then(data=>{ + if(data == -1) return + + this.doctorInfo = data; + + if(!data.realname && data.aid) { + this.$nextTick(() => { + this.$refs.nameWrap.open('bottom') + }) + } + }); }, handleConfirm(sex){ this.sex = sex; @@ -238,7 +240,7 @@ export default { } -