Commit ac0b3c418553ec62e10e79e63fa1ada24f0bd960
1 parent
a9ac9f6f87
Exists in
master
and in
2 other branches
no
Showing 4 changed files with 24 additions and 7 deletions
littleApp_child/pages/CheckReport/CheckReport.js
View file @
ac0b3c4
| ... | ... | @@ -33,14 +33,20 @@ |
| 33 | 33 | // 获取到的所以patent数据 |
| 34 | 34 | allPatient:[], |
| 35 | 35 | // 当前的pid |
| 36 | - currentPID:'' | |
| 36 | + currentPID:'', | |
| 37 | + tourist:false | |
| 37 | 38 | }, |
| 38 | 39 | onLoad: function (option) { |
| 39 | 40 | this.setData({ |
| 40 | 41 | userData: getApp().globalData.userInfo |
| 41 | 42 | }) |
| 42 | - networkUtil.showLoading() | |
| 43 | - this.getCheckList() | |
| 43 | + | |
| 44 | + if (!getApp().globalData.tourist){ | |
| 45 | + networkUtil.showLoading() | |
| 46 | + this.getCheckList() | |
| 47 | + } else { | |
| 48 | + this.setData({ noData: false, tourist:true}) | |
| 49 | + } | |
| 44 | 50 | }, |
| 45 | 51 | // 是否显示更多诊断信息 |
| 46 | 52 | isShowMore: function (e) { |
littleApp_child/pages/home/home.wxml
View file @
ac0b3c4
| ... | ... | @@ -14,12 +14,13 @@ |
| 14 | 14 | <view class="top_name" wx:if="{{babys.length > 1}}"> |
| 15 | 15 | <view class="userName {{currentBabyIndex == 0 ? 'userName_selected' : ''}}" data-index="0" bindtap="changeBaby">{{userData.username}}</view> |
| 16 | 16 | <view class="top_name_line"></view> |
| 17 | - <view class="userName {{currentBabyIndex == 1 ? 'userName_selected' : ''}}" data-index="1" bindtap="changeBaby">儿童2</view> | |
| 17 | + <view class="userName {{currentBabyIndex == 1 ? 'userName_selected' : ''}}" data-index="1" bindtap="changeBaby">-</view> | |
| 18 | 18 | </view> |
| 19 | 19 | <view class="top_name" wx:if="{{babys.length < 2}}"> |
| 20 | 20 | <view class="userName" data-index="0">{{userData.username}}</view> |
| 21 | 21 | </view> |
| 22 | - <view class="tourist_age">月龄:{{userData.monthage ? userData.monthage : '0'}}</view> | |
| 22 | + <view class="tourist_age" wx:if="{{tourist == true}}">月龄:{{userData.monthage ? userData.monthage : '0'}}</view> | |
| 23 | + <image class="vip_icon" wx:if="{{tourist == true}}" src="../../source/VIP_gray.png"></image> | |
| 23 | 24 | <!--下方黑色横条--> |
| 24 | 25 | <view class="infoBar" wx:if="{{tourist == false}}"> |
| 25 | 26 | <view class="infoView"> |
littleApp_child/pages/home/home.wxss
View file @
ac0b3c4
| ... | ... | @@ -52,8 +52,18 @@ |
| 52 | 52 | float: right; |
| 53 | 53 | text-align: right; |
| 54 | 54 | margin-right: 20px; |
| 55 | - color: white; | |
| 56 | - font-size: 15px; | |
| 55 | + font-family: PingFangSC-Regular; | |
| 56 | + font-size: 14px; | |
| 57 | + color: #FFFFFF; | |
| 58 | + letter-spacing: 0; | |
| 59 | +} | |
| 60 | + | |
| 61 | +.vip_icon { | |
| 62 | + width: 27px; | |
| 63 | + height: 27px; | |
| 64 | + position: absolute; | |
| 65 | + top: 65px; | |
| 66 | + left: calc(50% + 10px); | |
| 57 | 67 | } |
| 58 | 68 | |
| 59 | 69 | .top_name_line { |
littleApp_child/source/VIP_gray.png
View file @
ac0b3c4
2.47 KB