Commit 9d1d8f19700d271c4b69d406cb63d4a405927132
1 parent
bbc9c360e5
Exists in
master
and in
2 other branches
no message
Showing 4 changed files with 49 additions and 21 deletions
littleApp_child/pages/articleLists/articleLists.wxml
View file @
9d1d8f1
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | <view class="content_item"> |
21 | 21 | <view style="margin-left:15px;margin-right:75px;"> |
22 | 22 | <view class="content_title">{{item.title}}</view> |
23 | - <view class="content_content">{{item.introduction}}</view> | |
23 | + <view class="content_content">sdfkjshdkfjhsdkjfhsdkfhksdjhfksdhfkjsdhk1111111</view> | |
24 | 24 | <view class="zar_box"> |
25 | 25 | <image class="zar_img" src="../../source/zar.png"></image> |
26 | 26 | <view class="content_zar">{{item.likeCount ? item.likeCount : 0}}</view> |
littleApp_child/pages/home/home.wxml
View file @
9d1d8f1
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | <view class="infoBar"> |
17 | 17 | <view class="infoView"> |
18 | 18 | <text class="titleText">出生日期</text> |
19 | - <text class="timeText">{{userData.checkhospital}}</text> | |
19 | + <text class="timeText">{{userData.birth}}</text> | |
20 | 20 | </view> |
21 | 21 | <view class="infoView"> |
22 | 22 | <text class="titleText">月龄</text> |
littleApp_child/pages/hospitalDetail/hospitalDetail.js
View file @
9d1d8f1
... | ... | @@ -7,10 +7,38 @@ |
7 | 7 | Page({ |
8 | 8 | data: { |
9 | 9 | hosiptalInfo: {}, |
10 | + isShowOne: false, | |
11 | + isShowTwo: false, | |
12 | + isShowThree: false, | |
10 | 13 | }, |
11 | 14 | onLoad: function (option) { |
12 | 15 | |
13 | 16 | }, |
17 | + isShowMore:function(e){ | |
18 | + var self=this | |
19 | + console.log(e) | |
20 | + var index =e.currentTarget.dataset.index | |
21 | + console.log(index) | |
22 | + if(index==1){ | |
23 | + self.setData({ | |
24 | + isShowOne: !self.data.isShowOne, | |
25 | + isShowTwo: false, | |
26 | + isShowThree: false, | |
27 | + }) | |
28 | + } if (index == 2) { | |
29 | + self.setData({ | |
30 | + isShowOne: false , | |
31 | + isShowTwo: !self.data.isShowTwo, | |
32 | + isShowThree: false, | |
33 | + }) | |
34 | + } if (index == 3) { | |
35 | + self.setData({ | |
36 | + isShowOne: false, | |
37 | + isShowTwo: false, | |
38 | + isShowThree: !self.data.isShowThree, | |
39 | + }) | |
40 | + } | |
41 | + } | |
14 | 42 | |
15 | 43 | |
16 | 44 | }) |
littleApp_child/pages/hospitalDetail/hospitalDetail.wxml
View file @
9d1d8f1
... | ... | @@ -3,44 +3,44 @@ |
3 | 3 | <view class="check_result_main"> |
4 | 4 | <view class="check_result_text">检查结果</view> |
5 | 5 | <view class="check_result_doctoe_line"> |
6 | - <view class="check_result_doctoe_line1" > | |
6 | + <view class="check_result_doctoe_line1"> | |
7 | 7 | <label class="docotr_name">李医生</label> |
8 | 8 | <label class="docotr_type">/儿童门诊</label> |
9 | 9 | </view> |
10 | 10 | |
11 | 11 | <label class="check_result_time">1995-09</label> |
12 | 12 | </view> |
13 | - <view class="check_diagnosis"> | |
14 | - <view style="display:flex;width:100%" bindtap=""> | |
13 | + <view class="check_diagnosis" style="{{isShowOne==false ? 'background: #ffffff;border: 1px solid #E6E6E6;': 'background: #f9fffa;border: 1px solid #CEE2D5;'}}"> | |
14 | + <view style="display:flex;width:100%" bindtap="isShowMore" data-index="1"> | |
15 | 15 | <label class="check_diagnosis_name">检查诊断</label> |
16 | - <image class="icon_more" src="../../source/more_top.png"></image> | |
16 | + <image class="icon_more" src="{{isShowOne==false ? '../../source/more_bottom.png': '../../source/more_top.png'}}"></image> | |
17 | 17 | </view> |
18 | - <label class="check_diagnosis_content_1_line">检查诊断检查诊断检查诊断检断</label> | |
19 | - <view style="display:flex;width:100%"> | |
18 | + <label wx:if="{{!isShowOne}}" class="check_diagnosis_content_1_line">检查诊断检查诊断检查诊断检断</label> | |
19 | + <view wx:if="{{isShowOne}}" style="display:flex;width:100%"> | |
20 | 20 | <label class="check_diagnosis_content_lines">检查诊断检查诊断检查诊断检断检查诊断检查诊断检查诊断检断检查诊断检查诊断检查诊断检断</label> |
21 | - <label class="high_risk_bg">高危</label> | |
21 | + <label class="high_risk_bg">高危</label> | |
22 | 22 | </view> |
23 | 23 | </view> |
24 | - <view class="check_diagnosis"> | |
25 | - <view style="display:flex;width:100%"> | |
24 | + <view class="check_diagnosis" style="{{isShowTwo==false ? 'background: #ffffff;border: 1px solid #E6E6E6;': 'background: #f9fffa;border: 1px solid #CEE2D5;'}}"> | |
25 | + <view style="display:flex;width:100%" bindtap="isShowMore" data-index="2"> | |
26 | 26 | <label class="check_diagnosis_name">处理意见</label> |
27 | - <image class="icon_more" src="../../source/more_top.png"></image> | |
27 | + <image class="icon_more" src="{{isShowTwo==false ? '../../source/more_bottom.png': '../../source/more_top.png'}}"></image> | |
28 | 28 | </view> |
29 | - <label class="check_diagnosis_content_1_line">检查诊断检查诊断检查诊断检断</label> | |
30 | - <view style="display:flex;width:100%"> | |
29 | + <label wx:if="{{!isShowTwo}}" class="check_diagnosis_content_1_line">检查诊断检查诊断检查诊断检断</label> | |
30 | + <view wx:if="{{isShowTwo}}" style="display:flex;width:100%"> | |
31 | 31 | <label class="check_diagnosis_content_lines">检查诊断检查诊断检查诊断检断检查诊断检查诊断检查诊断检断检查诊断检查诊断检查诊断检断</label> |
32 | - | |
32 | + | |
33 | 33 | </view> |
34 | 34 | </view> |
35 | -<view class="check_diagnosis"> | |
36 | - <view style="display:flex;width:100%"> | |
35 | + <view class="check_diagnosis" style="{{isShowThree==false ? 'background: #ffffff;border: 1px solid #E6E6E6;': 'background: #f9fffa;border: 1px solid #CEE2D5;'}}"> | |
36 | + <view style="display:flex;width:100%" bindtap="isShowMore" data-index="3"> | |
37 | 37 | <label class="check_diagnosis_name">指导意见</label> |
38 | - <image class="icon_more" src="../../source/more_top.png"></image> | |
38 | + <image class="icon_more" src="{{isShowThree==false ? '../../source/more_bottom.png': '../../source/more_top.png'}}"></image> | |
39 | 39 | </view> |
40 | - <label class="check_diagnosis_content_1_line">检查诊断检查诊断检查诊断检断</label> | |
41 | - <view style="display:flex;width:100%"> | |
40 | + <label wx:if="{{!isShowThree}}" class="check_diagnosis_content_1_line">检查诊断检查诊断检查诊断检断</label> | |
41 | + <view wx:if="{{isShowThree}}" style="display:flex;width:100%"> | |
42 | 42 | <label class="check_diagnosis_content_lines">检查诊断检查诊断检查诊断检断检查诊断检查诊断检查诊断检断检查诊断检查诊断检查诊断检断</label> |
43 | - | |
43 | + | |
44 | 44 | </view> |
45 | 45 | </view> |
46 | 46 |