From 0a8a18a11e6e9afb3714e5883232ac05bf28842c Mon Sep 17 00:00:00 2001 From: shaoshuai <975432984@qq.com> Date: Wed, 17 May 2023 14:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E5=AE=B6=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- woman/app.wxss | 27 +++++++- woman/pages/doctorList/doctorList.js | 32 ++++----- woman/pages/doctorList/doctorList.wxml | 32 +++++---- woman/pages/doctorList/doctorList.wxss | 117 ++++++++++++++++++++++++--------- woman/pages/home/home.js | 7 +- woman/pages/home/home.wxml | 2 +- 6 files changed, 156 insertions(+), 61 deletions(-) diff --git a/woman/app.wxss b/woman/app.wxss index 0afa2fb..b527d54 100644 --- a/woman/app.wxss +++ b/woman/app.wxss @@ -13,6 +13,9 @@ .margin-t5 { margin-top: 5rpx; } +.margin-l8 { + margin-left: 8rpx; +} .margin-t12{ margin-top: 12rpx; } @@ -693,6 +696,13 @@ font-weight: 400; line-height: 28rpx; } +.font-333-30 { + height: 30rpx; + font-size: 30rpx; + color: #333; + font-weight: 400; + line-height: 30rpx; +} .font-333-34 { height: 34rpx; font-size: 34rpx; @@ -1060,7 +1070,13 @@ color: #A0A0A0; line-height: 28rpx; } - +.font-BDBDBD-28 { + height: 28rpx; + font-size: 28rpx; + font-weight: 400; + color: #BDBDBD; + line-height: 28rpx; +} .font-red-28 { height: 28rpx; font-size: 28rpx; @@ -1459,3 +1475,12 @@ border-radius: 16rpx; background-color: #ffffff; } +.font-weight-bold{ + font-weight: bold; +} +.font-weight-500{ + font-weight: 500; +} +.font-weight-600{ + font-weight: 600; +} \ No newline at end of file diff --git a/woman/pages/doctorList/doctorList.js b/woman/pages/doctorList/doctorList.js index 395f7be..1ea4bcd 100644 --- a/woman/pages/doctorList/doctorList.js +++ b/woman/pages/doctorList/doctorList.js @@ -7,24 +7,25 @@ var hospitalName = '' Page({ data: { - doctorList: [{ - "account": "zt", + doctorList: [ + { + "account": "zcf", "areaId": "13", - "chartroomId": "211218461687809", + "chartroomId": "212756700659718", "cityId": "14", "dept": "产科", - "description": "空", + "description": "张春芳:副主任医师,从事医疗保健专业近30年,对于不同人群、各种疾病的营养能给予正确的指导,尤其对儿童、孕产妇的营养指导具有丰富的临床经验,擅长妊娠期糖尿病,围产期营养指导,产妇保健等。获省、市级科技进步奖2项,发表国家级、省级论文20篇。", "hospitalId": "216", "hospitalName": "秦皇岛市妇幼保健院", - "hxName": "mommydoctorwx99", - "id": 99, - "lastLoginTime": "2021-09-06 16:33:17", - "name": "张甜", - "openId": "o9UOB4uHqTHqgjujFDy0z3CxHV58", + "hxName": "mommydoctorwx20004", + "id": 20004, + "lastLoginTime": "2020-10-11 17:25:06", + "name": "张春芳", + "openId": "", "parentId": 1000, "phone": "", - "positional": "空", - "price": 2, + "positional": "副主任医师", + "price": 20, "provinceId": "1", "pwd": "E10ADC3949BA59ABBE56E057F20F883E", "status": 0, @@ -36,13 +37,13 @@ Page({ "chartroomId": "212756700659718", "cityId": "14", "dept": "产科", - "description": "张春芳:副主任医师,从事医疗保健专业近30年,对于不同人群、各种疾病的营养能给予正确的指导,尤其对儿童、孕产妇的营养指导具有丰富的临床经验,擅长妊娠期糖尿病,围产期营养指导,产妇保健等。获省、市级科技进步奖2项,发表国家级、省级论文20篇。", + "description": "李琦:副主任医师,从事医疗保健专业近30年,对于不同人群、各种疾病的营养能给予正确的指导,尤其对儿童、孕产妇的营养指导具有丰富的临床经验,擅长妊娠期糖尿病,围产期营养指导,产妇保健等。获省、市级科技进步奖2项,发表国家级、省级论文20篇。", "hospitalId": "216", "hospitalName": "秦皇岛市妇幼保健院", "hxName": "mommydoctorwx20004", "id": 20004, "lastLoginTime": "2020-10-11 17:25:06", - "name": "张春芳", + "name": "李琦", "openId": "", "parentId": 1000, "phone": "", @@ -52,14 +53,15 @@ Page({ "pwd": "E10ADC3949BA59ABBE56E057F20F883E", "status": 0, "type": 1 - }], + } + ], hospitalName: '', }, /*---------生命周期--------*/ onLoad: function(options) { // networkUtil.showLoading() - if (options.isAdvertisingPage) { + if (!!options.isAdvertisingPage) { } else { //this.requestData() diff --git a/woman/pages/doctorList/doctorList.wxml b/woman/pages/doctorList/doctorList.wxml index 2051d53..0b1d099 100644 --- a/woman/pages/doctorList/doctorList.wxml +++ b/woman/pages/doctorList/doctorList.wxml @@ -1,20 +1,30 @@ + + + + + + + + - - - + + + - - {{item.doctorName}} - - {{item.doctorTitle}} - - {{item.description}} + + + {{item.name}} + {{item.positional}} - - + {{item.dept}} + + {{item.description}} + + + diff --git a/woman/pages/doctorList/doctorList.wxss b/woman/pages/doctorList/doctorList.wxss index 663e1cf..d97cd42 100644 --- a/woman/pages/doctorList/doctorList.wxss +++ b/woman/pages/doctorList/doctorList.wxss @@ -2,36 +2,39 @@ .item{ position: relative; - height: 136px; display: flex; flex-direction: row; align-items: center; background: white; - margin-bottom:5px; + width: 670rpx; + height: 240rpx; + background: #FFFFFF; + box-shadow: 0rpx 4rpx 8rpx 5rpx rgba(245,33,84,0.1); + border-radius: 20rpx 20rpx 20rpx 20rpx; + opacity: 1; } /*item左边布局-----------------------*/ -.item-left{ - width: 18.67%; - height: 136px; +.item_left{ + + } -.item__logo{ - width: 45px; - height: 45px; - border-radius: 250px; - position: absolute; - top: 15px; - left: 10px; +.item__image{ + width: 153rpx; + height: 184rpx; + background: #D9D9D9; + border-radius: 20rpx 20rpx 20rpx 20rpx; + opacity: 1; } /*item中间布局----------------------*/ -.item-middle{ - width: 69.33%; - height: 136px; +.item_middle{ + + } -.item-middle__title{ +.item_middle__title{ color: #5e5e5e; font: medium; font-size: 17px; @@ -39,35 +42,35 @@ line-height: 17px; } -.item-middle__specialty{ - color: #ee7289; - font: normal; - font-size: 11px; - line-height: 11px; - margin-top: 8px; - +.item_middle_specialty{ + font-size: 20rpx; + font-weight: 500; + line-height: 22rpx; + background: linear-gradient(135deg, #FFB4B4 0%, #FF8EA9 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; display: flex; flex-direction: row; } -.item-middle__description{ - color: #858585; +.item_middle__description{ + color: #828282; font: lighter; font-size: 12px; line-height: 150%; - margin-top: 15px; + margin-top: 48rpx; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; - -webkit-line-clamp: 3; + -webkit-line-clamp: 2; } -.item-middle__specialty__middle{ +.item_middle__specialty__middle{ margin-left: 10px; } -.item-middle__specialty__right{ +.item_middle__specialty__right{ margin-left: 15px } @@ -77,10 +80,10 @@ } /*item右边布局--------------------------*/ -.item-right{ - width: 12%; +.item_right{ + } -.item-right__right{ +.item_right__right{ width: 17.5px; height: 17.5px; margin-left: 50%; @@ -89,5 +92,55 @@ margin-right: 2px; } +/* 搜索栏 */ +.searchBar_bg { + background: #fff; + width: 100%; + + +} + +.searchBar_bar { + background: #F3F3F3; + height: 34px; + margin-left: 15px; + margin-right: 15px; + display: flex; + align-items: center; + border-radius: 20rpx 20rpx 20rpx 20rpx; + margin-top: 10px; + margin-bottom: 10px; + +} + +.searchBar_icon { + height: 22px; + width: 22px; + margin-left: 6px; +} + +.searchBar_input { + height: 32px; + width: 90%; + margin-left: 6px; + font-size: 14px; + color: #9d9d9d; + line-height: 14px; +} +.searchBar_clear { + float: right; + height: 18px; + width: 18px; + transform: translateX(-6px); +} + +.searchBar_bar_cancle { + color: white; + font-size: 14px; + letter-spacing: 0; + float: right; + margin-right: 15px; + transform: translateY(-26px); +} diff --git a/woman/pages/home/home.js b/woman/pages/home/home.js index 7dd4c9d..173e140 100644 --- a/woman/pages/home/home.js +++ b/woman/pages/home/home.js @@ -945,5 +945,10 @@ Page({ index: swiperCurrent }) }, - + /* 菜单栏*/ + goMenu5(e) { + wx.navigateTo({ + url: '../doctorList/doctorList', + }) + }, }) diff --git a/woman/pages/home/home.wxml b/woman/pages/home/home.wxml index 7038084..c1786df 100644 --- a/woman/pages/home/home.wxml +++ b/woman/pages/home/home.wxml @@ -51,7 +51,7 @@ 叶酸领取 - + 专家团队 -- 1.8.3.1