Przeglądaj źródła

feat:个人中心界面添加我的积分入口

xyh 6 miesięcy temu
rodzic
commit
10c5d1ea0d
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11 0
      src/pages/my/my.vue

+ 11 - 0
src/pages/my/my.vue

@@ -83,6 +83,10 @@
 				<image class="img" src="/static/other/collect.png" mode="" />
 				<view class="val">收藏 <text>{{ collectNum }}</text> 人</view>
 			</view>
+      <view class="item" @click="goPoints">
+        <image class="img" src="/static/other/collect.png" mode="" />
+        <view class="val">积分 <text>{{ collectNum }}</text> 分</view>
+      </view>
 			<view class="item" @click="goCoupon">
 				<image class="img" src="/static/other/coupon.png" mode="" />
 				<view class="val">优惠券 <text>{{ couponNum }}</text> 张</view>
@@ -295,6 +299,13 @@ export default {
 				url: '/pages/my/collect'
 			});
 		},
+    //跳转至我的积分
+    goPoints(){
+      if (!this.$utils.checkLogin({ type: 'modal' })) return;
+      uni.navigateTo({
+        url: '/points/home/index'
+      });
+    },
 		onLogin() {
 			if (this.$utils.checkLogin()) return;
 			uni.navigateTo({