| | |
| | | </view> |
| | | </view> |
| | | <view class="cate"> |
| | | <view class="cate-item"> |
| | | <view class="cate-item" @click="jumpTo(1)"> |
| | | <text>{{objNum ? objNum.cartTypeNum : 0}}</text> |
| | | <text>购物车</text> |
| | | </view> |
| | | <view class="cate-item"> |
| | | <view class="cate-item" @click="jumpTo(2)"> |
| | | <text>{{objNum ? objNum.member.integral : 0}}</text> |
| | | <text>积分</text> |
| | | </view> |
| | | <view class="cate-item"> |
| | | <view class="cate-item" @click="jumpTo(3)"> |
| | | <text>{{objNum ? objNum.couponNum : 0}}</text> |
| | | <text>优惠券</text> |
| | | </view> |
| | | <view class="cate-item"> |
| | | <view class="cate-item" @click="jumpTo(4)"> |
| | | <text>{{objNum ? objNum.collectNum : 0}}</text> |
| | | <text>收藏</text> |
| | | </view> |
| | |
| | | this.ordersStatistics() |
| | | }, |
| | | methods: { |
| | | jumpTo(type) { |
| | | if (type === 1) { |
| | | uni.navigateTo({ |
| | | url: '/pages/shopping-cart/shopping-cart' |
| | | }) |
| | | } else if (type === 2) { |
| | | uni.navigateTo({ |
| | | url: '/pages/my-points/my-points' |
| | | }) |
| | | } else if (type === 3) { |
| | | uni.navigateTo({ |
| | | url: '/pages/coupon/coupon' |
| | | }) |
| | | } else if (type === 4) { |
| | | uni.navigateTo({ |
| | | url: '/pages/my-collection/my-collection' |
| | | }) |
| | | } |
| | | }, |
| | | jump() { |
| | | uni.navigateTo({ |
| | | url: '/pages/login/login' |