From 0dabf05bfe9df453ffd394e2f280f878c848942a Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期三, 04 十二月 2024 13:19:32 +0800 Subject: [PATCH] 1.客服电话 2.订单优惠券自动选择 3.合伙人送货详情等 --- sub_pages/customer/coupon/coupon-all.vue | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/sub_pages/customer/coupon/coupon-all.vue b/sub_pages/customer/coupon/coupon-all.vue index f5c6d16..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,13 +18,16 @@ <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> <view class="tip"> - <span class="t-red">*</span>此券每人限领1张。仅限用于花满芜鲜花交易平台鲜切花花款满额使用,不可与其他优惠同享、不可叠加使用 + <span class="t-red">*</span>{{item.couponDescription || '此券每人限领1张。仅限用于花满芫鲜花交易平台鲜切花花款满额使用,不可与其他优惠同享、不可叠加使用'}} </view> </view> </view> @@ -39,13 +42,13 @@ query: { status: '' }, - list: [{}] + list: [] } }, async onLoad() { this.listApi = '/api/v2/coupon/app' + `/center/list` - // this.getList() + this.getList() }, methods: { @@ -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