Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
7008ed97
Commit
7008ed97
authored
Jun 15, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 手机号判断展示
parent
83fd299b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
personCenter.js
src/component/personCenter/personCenter.js
+4
-2
personCenter.wxml
src/component/personCenter/personCenter.wxml
+3
-5
No files found.
src/component/personCenter/personCenter.js
View file @
7008ed97
...
...
@@ -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
({
...
...
src/component/personCenter/personCenter.wxml
View file @
7008ed97
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment