Commit 37db3a58 by 高淑倩

add: 会员中心优惠券数量

parent d86494de
...@@ -57,15 +57,15 @@ Component({ ...@@ -57,15 +57,15 @@ Component({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) })
// wxService.post(`/member/memberPoint/getMyPointInfo`).then(res => { wxService.post(`/coupon/coupon/memberCouponCount`).then(res => {
// const { result, data } = res.data const { result, data } = res.data
// if (result == 0) { if (result == 0) {
// wx.hideLoading() wx.hideLoading()
// this.setData({ this.setData({
// couponNum: data.point couponNum: data[1] || 0
// }) })
// } }
// }) })
}, },
toBonusDetails() { toBonusDetails() {
wxService.router(`/pages/integralWater/integralWater`) wxService.router(`/pages/integralWater/integralWater`)
......
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
</view> </view>
</view> </view>
<view class='df tc' wx:if='{{memberActivateStatus}}'> <view class='df tc' wx:if='{{memberActivateStatus}}'>
<view class='df-1 point person-right' bindtap="toBonusDetails"> <view class='df-1 point person-right' bindtap="toBonusDetails" wx:if="{{personCenter.bonus == 0}}">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.bonus}}</view> <view class='point-number' style="color:{{personCenter.fontColor}};">{{integralNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view> <view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
</view> </view>
<view class='df-1 point' bindtap="toCouponList"> <view class='df-1 point' bindtap="toCouponList" wx:if="{{personCenter.coupon == 0}}">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view> <view class='point-number' style="color:{{personCenter.fontColor}};">{{couponNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view> <view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view> </view>
</view> </view>
......
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