|
@@ -24,30 +24,28 @@
|
|
|
<view class="coupon-list">
|
|
|
<view class="item"
|
|
|
:class="{disable:item.status==2,ifReceive:item.ifReceive==1}"
|
|
|
- :style="{backgroundImage:`url(${staticUrl}/img/coupon-active-bg.png)`}" v-for="item in dataList" :key="item.couponId">
|
|
|
+ :style="{backgroundImage:`url(${staticUrl}/img/coupon-active-bg-v2.png)`}" v-for="item in dataList" :key="item.couponId">
|
|
|
<view class="content u-flex">
|
|
|
<view class="left">
|
|
|
<view class="quota">
|
|
|
<text v-if="item.type == 1">¥</text>
|
|
|
- <text class="number" :class="{'small': String(item.quota).length>=3}">{{item.quota}}</text>
|
|
|
- <text v-if="item.type == 2">%</text>
|
|
|
- </view>
|
|
|
- <view class="condition" v-if="item.useThresholdType == 2">
|
|
|
- 消费满{{item.useThresholdAmount}}可用
|
|
|
+ <text class="number" :class="{'small': String(item.quota).length>=3}">{{item.type==1?item.quota:item.quota/10}}</text>
|
|
|
+ <text v-if="item.type == 2">折</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="center">
|
|
|
<view class="name" :class="{'small': String(item.couponName).length>=9}">{{item.couponName}}</view>
|
|
|
- <view class="tip">
|
|
|
+ <view class="condition" v-if="item.useThresholdType == 2">
|
|
|
+ 消费满{{item.useThresholdAmount}}可用
|
|
|
+ </view>
|
|
|
+ <!-- <view class="tip">
|
|
|
<view class="" v-if="item.useType==1">
|
|
|
- <!-- <view class="">{{item.useStartDate}}</view>
|
|
|
- <view class="">{{item.useEndDate}}</view> -->
|
|
|
有效期至 {{item.useEndDate}}
|
|
|
</view>
|
|
|
<view class="" v-if="item.useType==2">
|
|
|
领取后{{item.useDay}}天内有效
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="right">
|
|
|
<text class="btn" @click="receiveCoupon(item)" v-if="item.ifReceive!==1">立即领取</text>
|
|
@@ -58,6 +56,14 @@
|
|
|
</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="bottom-time">
|
|
|
+ <view class="" v-if="item.useType==1">
|
|
|
+ 有效期 {{item.useStartDate}} - {{item.useEndDate}}
|
|
|
+ </view>
|
|
|
+ <view class="" v-if="item.useType==2">
|
|
|
+ 领取后{{item.useDay}}天内有效
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="type" v-if="item.type == 1">满减券</view>
|
|
|
<view class="type" v-else-if="item.type == 2">折扣卷</view>
|
|
|
<!-- <image class="status-img" :src="staticUrl+'/img/coupon-status-shiyong.png'"></image> -->
|