From 40810d8d6e5430401378590c1b9810f156e7a4e7 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 18 十二月 2024 09:51:22 +0800
Subject: [PATCH] 1.修改打印标签样式
---
sub_pages/customer/coupon/coupon-self.vue | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/sub_pages/customer/coupon/coupon-self.vue b/sub_pages/customer/coupon/coupon-self.vue
index cb9f53c..669b809 100644
--- a/sub_pages/customer/coupon/coupon-self.vue
+++ b/sub_pages/customer/coupon/coupon-self.vue
@@ -30,14 +30,22 @@
</view>
<view class="time">
- {{item.effectiveStart&&(item.effectiveStart+' 生效,') || ''}}
+ <!-- {{item.effectiveStart&&(item.effectiveStart+' 生效,') || ''}} -->
{{item.effectiveEnd&&('有效期至 '+item.effectiveEnd) || '长久有效'}}
</view>
</view>
+ <view class="img-out">
+
+ </view>
+ <view class="img-used">
+
+ </view>
+
+
</view>
<view class="tip">
<span
- class="t-red">*</span>{{item.couponDescription || '此券每人限领1张。仅限用于花满芜鲜花交易平台鲜切花花款满额使用,不可与其他优惠同享、不可叠加使用'}}
+ class="t-red">*</span>{{item.couponDescription || '此券每人限领1张。仅限用于花满芫鲜花交易平台鲜切花花款满额使用,不可与其他优惠同享、不可叠加使用'}}
</view>
</view>
</view>
@@ -111,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
}
@@ -142,6 +151,7 @@
}
}
await this.$store.dispatch('cache_coupon_select', item)
+ await this.$store.dispatch('cache_coupon_select_cancel', 0)
uni.navigateBack()
}
},
@@ -176,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
+ },
}),
}
}
@@ -195,6 +208,14 @@
display: unset;
}
}
+
+ .coupont-item.used {
+ filter: grayscale(100%);
+
+ .img-used {
+ display: unset;
+ }
+ }
.bottom-button {
--
Gitblit v1.9.3