Browse Source

feat(coupon): C3 coupons.vue 空状态文案改为跳转领券中心真实页面

E2E Test Bot 3 weeks ago
parent
commit
66abf1bb0c
1 changed files with 12 additions and 1 deletions
  1. 12 1
      cfc-frontend/pages/profile-extra/coupons.vue

+ 12 - 1
cfc-frontend/pages/profile-extra/coupons.vue

@@ -52,7 +52,7 @@
       <view v-else-if="filteredList.length === 0" class="empty-state">
       <view v-else-if="filteredList.length === 0" class="empty-state">
         <text class="empty-icon">🎫</text>
         <text class="empty-icon">🎫</text>
         <text class="empty-text">{{ tabIndex === 0 ? '暂无可用优惠券' : tabIndex === 1 ? '暂无已使用优惠券' : '暂无已过期优惠券' }}</text>
         <text class="empty-text">{{ tabIndex === 0 ? '暂无可用优惠券' : tabIndex === 1 ? '暂无已使用优惠券' : '暂无已过期优惠券' }}</text>
-        <text class="empty-hint" v-if="tabIndex === 0">去领券中心看看有哪些优惠吧</text>
+        <view class="empty-hint empty-hint-link" v-if="tabIndex === 0" @click="goToCouponCenter">去领券中心看看有哪些优惠吧 ›</view>
       </view>
       </view>
       <view v-else class="coupon-list">
       <view v-else class="coupon-list">
         <view
         <view
@@ -276,6 +276,9 @@ export default {
     },
     },
     goToMembership() {
     goToMembership() {
       uni.navigateTo({ url: '/pages/membership/index' })
       uni.navigateTo({ url: '/pages/membership/index' })
+    },
+    goToCouponCenter() {
+      uni.navigateTo({ url: '/pages/profile-extra/coupon-center' })
     }
     }
   }
   }
 }
 }
@@ -360,6 +363,14 @@ export default {
   margin-top: 12rpx;
   margin-top: 12rpx;
 }
 }
 
 
+.empty-hint-link {
+  color: $brand-primary;
+}
+
+.empty-hint-link:active {
+  opacity: 0.8;
+}
+
 .coupon-list {
 .coupon-list {
   padding: 20rpx;
   padding: 20rpx;
 }
 }