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-all.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/sub_pages/customer/coupon/coupon-all.vue b/sub_pages/customer/coupon/coupon-all.vue
index fb37cb1..02616b6 100644
--- a/sub_pages/customer/coupon/coupon-all.vue
+++ b/sub_pages/customer/coupon/coupon-all.vue
@@ -3,7 +3,7 @@
 		<view class="">
 			<no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
 
-			<view v-for="(item,index) of list" :key="index" class="coupont-item all">
+			<view v-for="(item,index) of list" :key="index" class="coupont-item all" :class="[item.getYetFlag]">
 				<view class="flex container img100">
 					<view class="info-price">
 						<view class="price1">
@@ -18,8 +18,11 @@
 						<view class="time">
 							领取后{{item.usageTimeNum||''}}{{item.usageTimeTypeName||''}}有效
 						</view>
-						<view class="button" @click="getCoupon(item)">
+						<view v-if="!item.getYetFlag" class="button" @click="getCoupon(item)">
 							立即领取
+						</view>
+						<view v-else class="button" >
+							已领取
 						</view>
 					</view>
 				</view>
@@ -79,5 +82,14 @@
 <style lang="scss" scoped>
 	@import './coupon.scss';
 
-	.coupon-container {}
+	.coupon-container {
+
+		.coupont-item.true {
+			filter: grayscale(100%);
+
+			.img-has {
+				display: unset;
+			}
+		}
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3