From 687b9b208bb70cfa52fc97e3be01cdaa0bece373 Mon Sep 17 00:00:00 2001 From: luoye <397379429@qq.com> Date: Thu, 10 Aug 2017 13:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- littleApp_child/app.json | 5 +- .../pages/articleDetail/articleDetail.wxml | 50 ++++++---- .../pages/articleDetail/articleDetail.wxss | 106 ++++++++++++++------- .../pages/articleLists/articleLists.wxml | 2 +- .../childcare_knowledge/childcare_knowledge.wxml | 2 +- littleApp_child/pages/home/home.wxml | 6 +- littleApp_child/pages/home/home.wxss | 33 +++---- 7 files changed, 118 insertions(+), 86 deletions(-) diff --git a/littleApp_child/app.json b/littleApp_child/app.json index 2d16359..4dba3c4 100644 --- a/littleApp_child/app.json +++ b/littleApp_child/app.json @@ -1,11 +1,12 @@ { "pages": [ - + "pages/articleDetail/articleDetail", + "pages/home/home", "pages/articleLists/articleLists", "pages/hospitalList/hospitalList", - "pages/articleDetail/articleDetail", + "pages/SearchPage/SearchPage", diff --git a/littleApp_child/pages/articleDetail/articleDetail.wxml b/littleApp_child/pages/articleDetail/articleDetail.wxml index 9400e1c..dc6c709 100644 --- a/littleApp_child/pages/articleDetail/articleDetail.wxml +++ b/littleApp_child/pages/articleDetail/articleDetail.wxml @@ -1,25 +1,33 @@ - - - - - - - {{userData.username}} - - - - 体检医院 - {{userData.checkhospital}} + + + + + + + + 7月1日 + 2017 - - 月龄 - {{userData.monthage ? userData.monthage : '-'}} - - - - 健康状况 - {{userData.hstatus}} + + {{userData.username}} + + + + 出生日期 + {{userData.checkhospital}} + + + 月龄 + {{userData.monthage ? userData.monthage : '0'}} + + + + 健康状况 + {{userData.hstatus}} + + - + + {{userData.checkhospital}} \ No newline at end of file diff --git a/littleApp_child/pages/articleDetail/articleDetail.wxss b/littleApp_child/pages/articleDetail/articleDetail.wxss index 131c086..b07d0dc 100644 --- a/littleApp_child/pages/articleDetail/articleDetail.wxss +++ b/littleApp_child/pages/articleDetail/articleDetail.wxss @@ -2,6 +2,8 @@ .TopBar { width:100%; height:202px; + background: white; + position: relative; } .promptText { @@ -12,23 +14,43 @@ color: white; } -.TopBgImage { - width:100%; - height:202px; - position: absolute; - background: #48C17B; -} - -.avatar { - width:70px; - height:70px; +.circle_bg { + width:118px; + height:118px; border-radius: 50%; - position: absolute; - top: 15px; - left: 50%; + margin-top: 12px; + margin-left: 50%; transform: translateX(-50%); - border: 3px solid white; - box-shadow: 0 2px 4px 0 rgba(186,70,70,0.50); + border: 1px solid #ededed; + box-shadow: 0 2px 4px 0 rgba(186,70,70,0.5); + + display: flex; + flex-direction: column; + align-items: center; + justify-content: flex-start; + box-sizing: border-box; +} + +.circle_bg image { + height: 42.6px; + width: 42.6px; + background: rebeccapurple; + margin-top: 13px; +} + +.circle_bg text{ + font-size: 18px; + color: #222222; + letter-spacing: 0; + margin-top: 7.4px; + display: inline-block; + line-height: 18px; + border-bottom: 1px solid #dcdcdc; +} + +.circle_year { + font-size: 13px; + margin-top: 0px; } .userName { @@ -40,54 +62,64 @@ /*居中*/ left: 50%; transform: translateX(-50%); + color: white; } -.documentView { +/*上方信息条部分*/ +.lineView { + width: 100%; + border-right: solid rgba(255, 255, 255, 0.7) 0.5px; + border-left: solid rgba(255, 255, 255, 0.7) 0.5px; + height: 40px; position: absolute; - top: 0px; - left: 0px; - right: 0px; - bottom: 0px; + top: 10px; } -/*上方信息条部分*/ .infoBar { width: 100%; - height: 60px; - top: 142px; + min-height: 60px; + /* top: 142px; */ + bottom: 0px; position: absolute; + display: flex; + justify-content: space-between; + background: rgba(255, 255, 255, 0.2); } .infoView { text-align: center; width: 33.3%; height: 100%; - display:inline-block; - box-sizing: border-box; position: relative; - background-color: rgba(255, 255, 255, 0.1); -} - -.lineView { - width: 100%; - border-right: solid rgba(255, 255, 255, 0.7) 0.5px; - border-left: solid rgba(255, 255, 255, 0.7) 0.5px; - height: 40px; - position: absolute; - top: 10px; } .titleText { margin-top: 12px; display:block; font-size: 11px; -color: #D8FCE7; + color: #787878; } .timeText { font-family: PingFangSC-Medium; font-size: 12px; - color: #FFFFFF; + color: #4a4a4a; display:block; margin-top: 2px; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} + +.hospitalName { + width: 100%; + height: 30px; + background-color: white; + color: #ee7289; + font-size: 11px; + font: medium; + text-align: center; + line-height: 30px; } \ No newline at end of file diff --git a/littleApp_child/pages/articleLists/articleLists.wxml b/littleApp_child/pages/articleLists/articleLists.wxml index 0cf7ee8..64428a8 100644 --- a/littleApp_child/pages/articleLists/articleLists.wxml +++ b/littleApp_child/pages/articleLists/articleLists.wxml @@ -16,7 +16,7 @@ --> - + {{item.title}} diff --git a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml index d847eec..7f4754d 100644 --- a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml +++ b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml @@ -22,7 +22,7 @@ --> - + {{item.title}} diff --git a/littleApp_child/pages/home/home.wxml b/littleApp_child/pages/home/home.wxml index e98e2d5..03562b0 100644 --- a/littleApp_child/pages/home/home.wxml +++ b/littleApp_child/pages/home/home.wxml @@ -5,7 +5,7 @@ - + @@ -15,7 +15,7 @@ - 体检医院 + 出生日期 {{userData.checkhospital}} @@ -31,7 +31,7 @@ - {{hospitalName}} + {{userData.checkhospital}}