From a4b3ee325c7354579d495bc74a777e494e5ec38c Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 06 Feb 2026 18:18:44 +0800
Subject: [PATCH] 商品可以价格面议 选择走访时显示输入走访企业名 分会添加活动时要总会审核 分类添加人数限制,添加活动选择了填写人数限制的分类时活动名额下显示该分类人数限制为15 同一个企业30天内只能走访一次,在30天内走访同一个企业时提示该企业已被走访xx天后才可以从新走访
---
mobile/pages/user/my-coupon/my-coupon.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/mobile/pages/user/my-coupon/my-coupon.vue b/mobile/pages/user/my-coupon/my-coupon.vue
index 39f1862..a79b513 100644
--- a/mobile/pages/user/my-coupon/my-coupon.vue
+++ b/mobile/pages/user/my-coupon/my-coupon.vue
@@ -17,7 +17,7 @@
<view class="con_tit">{{item.name}}</view>
</view>
<view>
- <button v-if="item.shop_supplier_id>0" class="btn-red-border btn-to-shop" @click="gotoPage('/pages/shop/shop?shop_supplier_id=' + item.shop_supplier_id)">进店</button>
+ <button v-if="item.shop_supplier_id>0" class="btn-red-border btn-to-shop" @click="gotoShopPage(item.shop_supplier_id)">进店</button>
</view>
</view>
<view v-for="(sup_item,sup_index) in item.list" :key="sup_index" class="coupon_item"
@@ -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>
@@ -184,6 +184,10 @@
self.getSup();
});
},
+ gotoShopPage(shop_supplier_id) {
+ uni.setStorageSync('shop_supplier_id', shop_supplier_id)
+ this.gotoPage('/pages/shop/shop?shop_supplier_id=' + shop_supplier_id)
+ },
/* 优惠券分类 */
getSup() {
let self = this;
@@ -263,8 +267,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