Commit 314e35dc by 高淑倩

modify: 会员中心数据渲染

parent 21938ec6
......@@ -28,30 +28,19 @@ Component({
})
},
methods: {
toBonusDetails() {
wxService.router(`/pages/integralWater/integralWater`)
},
toCouponList() {
wxService.router(`/pages/coupons/coupons`)
},
// 点击编辑
handelPersonCenter() {
console.log('点击编辑')
},
handleGoWxCard() {
console.log('kabao')
if (wx.openCard) {
wx.openCard({
cardList: [{
cardId: '',
code: ''
}, {
cardId: '',
code: ''
}],
success (res) { }
})
} else {
// 如果希望用户在最新版本的客户端上体验您的小程序,可以这样子提示
wx.showModal({
title: '提示',
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
})
}
wxService.openCard()
}
}
})
\ No newline at end of file
......@@ -22,11 +22,11 @@
</view>
</view>
<view class='df tc'>
<view class='df-1 point person-right'>
<view class='df-1 point person-right' bindtap="toBonusDetails">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.bonus}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
</view>
<view class='df-1 point'>
<view class='df-1 point' bindtap="toCouponList">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view>
......
......@@ -37,6 +37,8 @@ wxService.page({
handlerDataOnPage = new utils.HandlerDataOnPage()
renderPage = require('../../utils/renderPage').getRenderPage()
handlerDataOnPage.init(this, 'pages')
this.initPage()
},
/**
......@@ -50,10 +52,13 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.initPage()
},
// page 信息
initPage(){
this.setData({
products: []
})
wx.showLoading({
title: '加载中'
})
......
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