Commit a3d2bd06 by 高淑倩

modify: 会员卡号

parent 17c099b7
...@@ -20,7 +20,8 @@ wxService.page({ ...@@ -20,7 +20,8 @@ wxService.page({
], ],
sexIndex:0, sexIndex:0,
date:'', date:'',
focus: false focus: false,
memberCardNo: ''
}, },
/** /**
...@@ -34,7 +35,11 @@ wxService.page({ ...@@ -34,7 +35,11 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
// 取会员卡号
const {memberCardNo} = wx.getStorageSync('_baseUserInfo')
this.setData({
memberCardNo
})
}, },
bindTextAreaBlur: function(e) { bindTextAreaBlur: function(e) {
console.log(e.detail.value) console.log(e.detail.value)
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<view class='user-name'> <view class='user-name'>
<open-data type="userNickName" class="userinfo-nickname" lang="zh_CN"></open-data> <open-data type="userNickName" class="userinfo-nickname" lang="zh_CN"></open-data>
</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'></image> <image src='/assets/imgs/qr-code.png'></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