Commit 7008ed97 by 高淑倩

modify: 手机号判断展示

parent 83fd299b
...@@ -19,7 +19,8 @@ Component({ ...@@ -19,7 +19,8 @@ Component({
observer(newVal){ observer(newVal){
this.setData({ this.setData({
memberActivateStatus: newVal && newVal.memberActivateStatus || false, 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({ ...@@ -47,7 +48,8 @@ Component({
couponNum: 0, couponNum: 0,
baseUrl: '/assets/imgs/0606.png', baseUrl: '/assets/imgs/0606.png',
isAuthorization: false, isAuthorization: false,
_token: '' _token: '',
currentMobile: ''
}, },
attached () { attached () {
this.setData({ this.setData({
......
...@@ -2,13 +2,11 @@ ...@@ -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)'}}"> <!--<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> <button type="primary" plain='false' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>
</view>--> </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> <text class="un-active-btn" >激活立享会员特权</text>
</view> </view>
<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 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 + ');'}}"> <view class='user-info' wx:if='{{currentMobile}}'>
<!-- <button type="primary" plain='false' wx:if='{{!memberActivateStatus}}' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>-->
<view class='user-info' wx:if='{{memberActivateStatus}}'>
<view class="user-avatar"> <view class="user-avatar">
<open-data type="userAvatarUrl"></open-data> <open-data type="userAvatarUrl"></open-data>
</view> </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