Commit 7008ed97 by 高淑倩

modify: 手机号判断展示

parent 83fd299b
......@@ -19,7 +19,8 @@ Component({
observer(newVal){
this.setData({
memberActivateStatus: newVal && newVal.memberActivateStatus || false,
memberCardNo: newVal && newVal.memberCardNo || ''
memberCardNo: newVal && newVal.memberCardNo || '',
currentMobile: newVal && newVal.member && newVal.member.mobile || '',
})
}
},
......@@ -47,7 +48,8 @@ Component({
couponNum: 0,
baseUrl: '/assets/imgs/0606.png',
isAuthorization: false,
_token: ''
_token: '',
currentMobile: ''
},
attached () {
this.setData({
......
......@@ -2,13 +2,11 @@
<!--<view wx:if='{{!memberActivateStatus}}' class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{'background-image: url(../../assets/imgs/user-bg.png)'}}">
<button type="primary" plain='false' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>
</view>-->
<view wx:if='{{!memberActivateStatus}}' class="member-unActive" bindtap="handleTtoActiveMemebr">
<view wx:if='{{!currentMobile}}' class="member-unActive" bindtap="handleTtoActiveMemebr">
<text class="un-active-btn" >激活立享会员特权</text>
</view>
<view wx:if='{{memberActivateStatus}}' catchtap="handleToMemberOfOwn" class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(' + baseUrl + ');'}}">
<!-- <button type="primary" plain='false' wx:if='{{!memberActivateStatus}}' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>-->
<view class='user-info' wx:if='{{memberActivateStatus}}'>
<view wx:if='{{currentMobile}}' catchtap="handleToMemberOfOwn" class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(' + baseUrl + ');'}}">
<view class='user-info' wx:if='{{currentMobile}}'>
<view class="user-avatar">
<open-data type="userAvatarUrl"></open-data>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment