Commit 2b908196 by 高淑倩

modify: 卡包激活

parent f6f5a7d4
......@@ -40,9 +40,23 @@ Component({
handelPersonCenter() {
console.log('点击编辑')
},
handleTtoActiveMemebr() {
wxService.openCard()
},
handleGoWxCard() {
console.log('kabao')
// wxService.openCard()
// wechatCardId wechatCode
const {wechatCardId,wechatCode} = wx.getStorageSync('_baseUserInfo')
wx.openCard({
cardList: [{
cardId: wechatCardId,
code: wechatCode
}],
success (res) {
console.log('查看微信卡包中的卡券', res)
}
})
}
}
})
\ No newline at end of file
<!--component/personCenter/personCenter.wxml-->
<view class="activation-content activation-bg {{true ? 'user-content' : ''}}">
<button type="primary" plain='false' wx:if='{{!memberActivateStatus}}'>激活立享会员特权</button>
<button type="primary" plain='false' wx:if='{{!memberActivateStatus}}' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>
<view class='user-info' wx:if='{{memberActivateStatus}}'>
<view class="user-avatar">
<open-data type="userAvatarUrl"></open-data>
......
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