Browse Source

Merge branch 'master' of http://47.92.161.104:10080/zkx/JP-ChargeTeam51 into master

zhupeng 3 năm trước cách đây
mục cha
commit
60e06b4499
1 tập tin đã thay đổi với 12 bổ sung1 xóa
  1. 12 1
      pages/user/index.vue

+ 12 - 1
pages/user/index.vue

@@ -16,7 +16,7 @@
 			<view class="line">
 				
 			</view>
-			<view class="userData-num" >
+			<view class="userData-num" @click="toMyCoupon">
 				<view class="userData-data">0</view>
 				<view class="userData-foot">优惠券</view>
 			</view>
@@ -250,6 +250,17 @@
 					})
 				}
 			},
+			toMyCoupon() {
+				if(this.userId) {
+					uni.navigateTo({
+						url: '/pages/user/coupon/myCoupon'
+					})
+				} else {
+					uni.navigateTo({
+						url: '/pages/login/login'
+					})
+				}
+			},
 			toRecharge() {	
 				if(this.userId) {
 					uni.navigateTo({