From 4711bb8fb2fb16c4eb1cdf6c0314069d85e77a67 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 27 Nov 2025 14:47:00 +0800
Subject: [PATCH] 名片聊天

---
 mobile/pages/user/my-coupon/my-coupon.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/mobile/pages/user/my-coupon/my-coupon.vue b/mobile/pages/user/my-coupon/my-coupon.vue
index 39f1862..35cc6f3 100644
--- a/mobile/pages/user/my-coupon/my-coupon.vue
+++ b/mobile/pages/user/my-coupon/my-coupon.vue
@@ -78,7 +78,7 @@
 									<button type="default" v-if="sup_item.coupon_type.value == 10 && sup_item.use_permission !=1" class="btn-gray coupon-text mt10" v-on:click.stop="gotoPages(sup_item)">
 										查看券码
 									</button>
-									<button type="default" v-if="sup_item.state.value>0 && sup_item.use_permission !=2" class="btn-gray coupon-text mt10" v-on:click.stop="gotoPages(sup_item)">
+									<button type="default" v-if="sup_item.state.value>0 && sup_item.use_permission !=2" class="btn-gray coupon-text mt10" v-on:click.stop="gotoPages(sup_item,(sup_item.coupon_type.value == 30?0:1))">
 										{{sup_item.coupon_type.value == 30?'查看券码':'立即使用'}}
 									</button>
 									<button type="default" v-else class="btn-gray mt30" v-on:click.stop>
@@ -263,8 +263,10 @@
 			closeRule(item) {
 				item.rule = false;
 			},
-			gotoPages(sup_item) {
-				if (sup_item.apply_range != 10 || sup_item.coupon_type.value == 30) {
+			gotoPages(sup_item,type=0) {
+				if(type){
+					this.gotoPage('/pages/product/category');
+				}else if (sup_item.apply_range != 10 || sup_item.coupon_type.value == 30) {
 					this.gotoPage('/pages/user/my-coupon/my-detail?user_coupon_id='+ sup_item.user_coupon_id+'&apply_range='+sup_item.apply_range);
 				}else if (sup_item.use_permission != 1 || sup_item.coupon_type.value == 10) {
 					//满减券 具有线下核销权限 byyj 2024.1.16

--
Gitblit v1.9.2