Commit 1964c97f by 高淑倩

modify: 会员卡号字段

parent 376d3a6d
...@@ -14,12 +14,18 @@ Component({ ...@@ -14,12 +14,18 @@ Component({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
personCenter: {} personCenter: {},
memberCardNo: ""
}, },
attached () { attached () {
this.setData({ this.setData({
personCenter: this.data.personData personCenter: this.data.personData
}) })
// 取会员卡号
const {memberCardNo} = wx.getStorageSync('_baseUserInfo')
this.setData({
memberCardNo
})
}, },
methods: { methods: {
// 点击编辑 // 点击编辑
...@@ -47,60 +53,5 @@ Component({ ...@@ -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
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<image class='icon-edit' src='/assets/imgs/icon-edit.png' bindtap="handelPersonCenter"></image> <image class='icon-edit' src='/assets/imgs/icon-edit.png' bindtap="handelPersonCenter"></image>
</navigator> </navigator>
</view> </view>
<view class='user-id'>34765736454</view> <view class='user-id'>{{memberCardNo}}</view>
</view> </view>
<view class='qr-code pr'> <view class='qr-code pr'>
<image src='/assets/imgs/qr-code.png' bindtap="handleGoWxCard"></image> <image src='/assets/imgs/qr-code.png' bindtap="handleGoWxCard"></image>
......
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