From 32a5fb39cdf86310181081680622d5250a9bce83 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Thu, 11 Apr 2024 15:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E5=88=97=E8=A1=A8=E6=8A=BD?= =?UTF-8?q?=E7=A6=BB=E6=88=90=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/preBookList.vue | 161 ++++++++++++++++++++++++++++++++++++ pages.json | 16 ++-- pages/index/index.vue | 84 +++++++++---------- pages/prebook_list/prebook_list.vue | 140 ++----------------------------- 4 files changed, 215 insertions(+), 186 deletions(-) create mode 100644 components/preBookList.vue diff --git a/components/preBookList.vue b/components/preBookList.vue new file mode 100644 index 0000000..8b2a911 --- /dev/null +++ b/components/preBookList.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/pages.json b/pages.json index 3d116b1..f97d048 100644 --- a/pages.json +++ b/pages.json @@ -1,5 +1,13 @@ { "pages": [ + { + "path" : "pages/prebook_list/prebook_list", + "style" : + { + "navigationBarTitleText": "预约列表", + "enablePullDownRefresh": false + } + }, { "path": "pages/index/index", "style": { @@ -15,14 +23,6 @@ } }, { - "path" : "pages/prebook_list/prebook_list", - "style" : - { - "navigationBarTitleText": "预约列表", - "enablePullDownRefresh": false - } - }, - { "path" : "pages/user_modify/user_modify", "style" : { diff --git a/pages/index/index.vue b/pages/index/index.vue index 50c9595..21854ae 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -3,19 +3,19 @@ - 李静 - - 中医针灸科 + {{doctorInfo.name}} + + {{doctor_dept}} - - 北京中医药大学硕士 从业10年 + + {{doctorInfo.brief}} - + - + 医生简介 @@ -24,20 +24,20 @@ - 北京中医药大学硕士研究生,中国针灸学会会员,中国中医药信息学会专科专病诊疗分会理事,擅长针药并用治疗内科疾病。取穴少,用药精。擅长月经不调、痛经、带下症、妇科炎症、胃炎 + {{doctorInfo.intro}} - - + + - 中国中医科学院 + {{item.hospital_name}} - - 出诊:周三下午、周六上午 + + 出诊:{{item.visit_day_text}} @@ -54,35 +54,9 @@ 预约看诊 - - - - - - 中国中医科学院 - - - - 出诊:周三下午、周六上午 - - - - - - - 导航 - - - - - - - 预约看诊 - - - + @@ -134,7 +108,11 @@ cssUrl:this.cssUrl, code:'', pageShow:false, - doctor_id:'' + doctor_id:'', + doctorInfo:false, + doctor_dept:false, + hospitals:false, + recentAppoint:false, } }, components:{ @@ -180,6 +158,18 @@ if(data == -1) return this.pageShow = true this.keywords = data + this.doctorInfo = data + if(this.doctorInfo.visit_hospital && this.doctorInfo.visit_hospital.length>0){ + this.doctor_dept = this.doctorInfo.visit_hospital[0].hospital_dept_name + } + + if(this.doctorInfo.visit_hospital && this.doctorInfo.visit_hospital.length>0){ + this.hospitals = this.doctorInfo.visit_hospital + } + + if(this.doctorInfo.appoint_record && this.doctorInfo.appoint_record.length>0){ + this.recentAppoint = this.doctorInfo.appoint_record + } }); }, enlargePicture(imgUrl) { @@ -230,10 +220,11 @@ view{ width: auto; padding: 0 15rpx; + min-width: 125rpx; margin-top: 14rpx; line-height: 42rpx; + text-align: center; font-size: 28rpx; - text-align: left; background: linear-gradient( 288deg, #FFEED2 0%, #FED9A6 100%); border-radius: 8rpx; color: #7D501F; @@ -271,7 +262,7 @@ font-size: 30rpx; line-height: 50rpx; .con{ - height: 200rpx; + height: auto; } } .title-wrapper{ @@ -318,12 +309,10 @@ font-size: 28rpx; color: #666666; margin-top: 14rpx; - margin-bottom: 16rpx; } } .right{ - width: 300rpx; - width: 300rpx; + width: 200rpx; height: 100%; img{ width: 52rpx; @@ -344,6 +333,9 @@ } } } + .bot{ + margin-top: 16rpx; + } } } .visit-wrapper{ diff --git a/pages/prebook_list/prebook_list.vue b/pages/prebook_list/prebook_list.vue index 942aa4a..2d2ca61 100644 --- a/pages/prebook_list/prebook_list.vue +++ b/pages/prebook_list/prebook_list.vue @@ -18,30 +18,20 @@ 张小宇 刘大琪 - - - - - 上官梓涵 - 2024.01.09 周二 09:30-12:00 - 广安门医院西单门诊部 - - - 候诊 - 前方40 - - - + -