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
1964c97f
Commit
1964c97f
authored
Jun 03, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 会员卡号字段
parent
376d3a6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
58 deletions
+8
-58
personCenter.js
src/component/personCenter/personCenter.js
+7
-57
personCenter.wxml
src/component/personCenter/personCenter.wxml
+1
-1
No files found.
src/component/personCenter/personCenter.js
View file @
1964c97f
...
...
@@ -14,12 +14,18 @@ Component({
* 页面的初始数据
*/
data
:
{
personCenter
:
{}
personCenter
:
{},
memberCardNo
:
""
},
attached
()
{
this
.
setData
({
personCenter
:
this
.
data
.
personData
})
// 取会员卡号
const
{
memberCardNo
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
this
.
setData
({
memberCardNo
})
},
methods
:
{
// 点击编辑
...
...
@@ -47,60 +53,5 @@ Component({
})
}
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
})
\ No newline at end of file
src/component/personCenter/personCenter.wxml
View file @
1964c97f
...
...
@@ -14,7 +14,7 @@
<image class='icon-edit' src='/assets/imgs/icon-edit.png' bindtap="handelPersonCenter"></image>
</navigator>
</view>
<view class='user-id'>
34765736454
</view>
<view class='user-id'>
{{memberCardNo}}
</view>
</view>
<view class='qr-code pr'>
<image src='/assets/imgs/qr-code.png' bindtap="handleGoWxCard"></image>
...
...
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