From 41426416bd250130129fb8a547bee874375768a8 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期四, 14 十一月 2024 09:47:15 +0800
Subject: [PATCH] 1.付款:改成15分钟,并使用服务器时间进行倒计时 2.优惠券中心:已经领取(达到最大次数),显示已领取且置灰,未领取根据创建时间放前面,已领取根据首次时间正序排序 3.购物车-提交订单:自动根据订单金额选择合适优惠券

---
 sub_pages/customer/coupon/coupon-self.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/sub_pages/customer/coupon/coupon-self.vue b/sub_pages/customer/coupon/coupon-self.vue
index 7db99a3..669b809 100644
--- a/sub_pages/customer/coupon/coupon-self.vue
+++ b/sub_pages/customer/coupon/coupon-self.vue
@@ -41,7 +41,7 @@
 						
 					</view>
 					
-					.
+			
 				</view>
 				<view class="tip">
 					<span
@@ -119,6 +119,7 @@
 					if (this.cache_coupon.id === item.id) {
 						await this.$message.confirm('是否取消使用此优惠券')
 						await this.$store.dispatch('cache_coupon_select', {})
+						await this.$store.dispatch('cache_coupon_select_cancel', 1)
 						uni.navigateBack()
 						return
 					}
@@ -150,6 +151,7 @@
 						}
 					}
 					await this.$store.dispatch('cache_coupon_select', item)
+					await this.$store.dispatch('cache_coupon_select_cancel', 0)
 					uni.navigateBack()
 				}
 			},
@@ -184,6 +186,9 @@
 				cache_goods: state => {
 					return state.cache.goods || []
 				},
+				cache_coupon_select_cancel: state => {
+					return state.cache.cache_coupon_select_cancel==1?1:0 
+				},
 			}),
 		}
 	}

--
Gitblit v1.9.3