Browse Source

修复优惠券BUG

master
邓平艺 4 years ago
parent
commit
2d762c0187
  1. 11
      pages/coupon/index/index.vue

11
pages/coupon/index/index.vue

@ -9,7 +9,8 @@
<scroll-view :style="{height: autoHeight}" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="isRefresher" <scroll-view :style="{height: autoHeight}" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="isRefresher"
@scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh"> @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
<view class="coupon-wrap"> <view class="coupon-wrap">
<view class="coupon-card lf-m-b-30" :class="{'invalid-bg': item.ifpast == true,'lf-bg-haveuse': item.used_at != ''}" v-for="(item, index) in tab.list" :key="index">
<!-- <view class="coupon-card lf-m-b-30" :class="{'invalid-bg': item.ifpast == true,'lf-bg-haveuse': item.used_at != ''}" v-for="(item, index) in tab.list" :key="index"> -->
<view class="coupon-card lf-m-b-30" :class="{'invalid-bg': item.ifpast, 'lf-bg-haveuse': item.used_at != ''}" v-for="(item, index) in tab.list" :key="index">
<view class="coupon-circle-top"> <view class="coupon-circle-top">
<view class="coupon-circle1"></view> <view class="coupon-circle1"></view>
</view> </view>
@ -29,10 +30,10 @@
<view class="coupon-tag" v-if="item.used_at != ''"> <view class="coupon-tag" v-if="item.used_at != ''">
已使用 已使用
</view> </view>
<view class="coupon-tag" v-if="item.ifpast">
<view class="coupon-tag" v-else-if="item.ifpast">
已过期 已过期
</view> </view>
<view class="coupon-tag" v-if="!item.ifpast && item.used_at == ''">
<view class="coupon-tag" v-else-if="!item.ifpast && item.used_at == ''">
待使用 待使用
</view> </view>
</view> </view>
@ -205,7 +206,9 @@
<style scoped lang="scss"> <style scoped lang="scss">
.lf-bg-haveuse { .lf-bg-haveuse {
background-color: rgba(255, 255, 255, 1)!important;
opacity: .5 !important;
background-color: #15716E !important;
// background-color: rgba(255, 255, 255, 1)!important;
} }
.coupon-circle1 { .coupon-circle1 {
width: 40rpx; width: 40rpx;

Loading…
Cancel
Save