From 6c7fecf52405e132e3573b43a7206f99026a1fd8 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 04 八月 2025 18:13:05 +0800
Subject: [PATCH] 商家入驻同意协议,优惠卷领取状态

---
 pages/cart/coupon/myCoupon.vue |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/pages/cart/coupon/myCoupon.vue b/pages/cart/coupon/myCoupon.vue
index e367d75..afacc3b 100644
--- a/pages/cart/coupon/myCoupon.vue
+++ b/pages/cart/coupon/myCoupon.vue
@@ -97,12 +97,12 @@
               <image
                 class="no-icon"
                 v-if="navIndex == 1"
-                src="@/static/img/used.png"
+                src="@/pages/subComponents/static/img/used.png"
               ></image>
               <image
                 class="no-icon"
                 v-if="navIndex == 2"
-                src="@/static/img/overdue.png"
+                src="@/pages/subComponents/static/img/overdue.png"
               ></image>
               <view
                 class="receive"
@@ -123,13 +123,11 @@
 </template>
 
 <script>
-import UEmpty from '@/uview-components/uview-ui/components/u-empty/u-empty.vue';
-import UIcon from '@/uview-components/uview-ui/components/u-icon/u-icon.vue';
+import '@/components/uview-components/uview-ui';
 
 import { getMemberCoupons } from "@/api/members.js";
 
 export default {
-  components: {UEmpty,UIcon},
   data() {
     return {
       tabCurrentIndex: 0, //tab鏍忎笅鏍囬粯璁や负0 鏈娇鐢�
@@ -206,6 +204,7 @@
         title: "鍔犺浇涓�",
       });
       let index = this.tabCurrentIndex;
+	  console.log(this.navList[index].params)
       getMemberCoupons(this.navList[index].params).then((res) => {
         uni.stopPullDownRefresh();
         if (res.data.success) {
@@ -249,9 +248,18 @@
      * 绔嬪嵆浣跨敤浼樻儬鍒�
      */
     useItNow(item) {
-      uni.navigateTo({
-        url: `/pages/navigation/search/searchPage?promotionsId=${item.couponId}&promotionType=COUPON`,
-      });
+		
+		console.log('浼樻儬鍗疯鎯�--------------------->',JSON.stringify(item))
+      // uni.navigateTo({
+      //   url: `/pages/navigation/search/searchPage?promotionsId=${item.couponId}&promotionType=COUPON`,
+      // });
+	  if(item.scopeType ==='PORTION_GOODS'){
+		  //鑾峰彇浼樻儬鍗峰搴旂殑鍟嗗搧
+		  //鎸囧畾璺宠浆鍒板晢鍝佽鎯呴〉闈㈣繘琛岃喘涔�
+	  }
+	  uni.navigateTo({
+	  	url: `/pages/commodity-square/coups-goods-list?promotionsId=${item.couponId}&promotionType=COUPON`
+	  });
     },
 
     /**

--
Gitblit v1.8.0