|
|
|
@ -35,12 +35,16 @@
|
|
|
|
|
<view class="coupon-left"> |
|
|
|
|
<image class="left-bg" src="@/static/images/coupon-bg2.png" mode=""></image> |
|
|
|
|
<view class="text-box"> |
|
|
|
|
<view class="money">¥{{ item.couponPrice }}</view> |
|
|
|
|
<view v-if="item.image.length>0" class="wrapper acea-row row-middle"> |
|
|
|
|
<image class="img" :src="img" mode="" v-for="(img,imgIndex) in item.image.slice(0,3)" :key="imgIndex"></image> |
|
|
|
|
</view> |
|
|
|
|
<view v-else class="money">¥{{ item.couponPrice }}</view> |
|
|
|
|
<!-- <view class="money">¥{{ item.couponPrice }}</view> --> |
|
|
|
|
<!-- <view class="money">7<text>折</text></view> --> |
|
|
|
|
<view class="line"></view> |
|
|
|
|
<view class="tip acea-row row-between"> |
|
|
|
|
<view class="tip acea-row row-middle row-between"> |
|
|
|
|
<!-- <view class="">{{item.ctype?'仅限定品牌可用':'全部商品可用'}}</view> --> |
|
|
|
|
<view class="">全部商品可用</view> |
|
|
|
|
<view class="">{{item.cname}}</view> |
|
|
|
|
<view v-if="item.endTime === 0">不限时</view> |
|
|
|
|
<view v-else>{{ item.startTime }}-{{ item.endTime }}</view> |
|
|
|
|
</view> |
|
|
|
@ -48,7 +52,7 @@
|
|
|
|
|
</view> |
|
|
|
|
<view class="coupon-right acea-row row-center-column"> |
|
|
|
|
<image v-if="item.isUse === true" class="tag" src="../../../../static/images/gotCoupon-icon.png" mode=""></image> |
|
|
|
|
<view class="type">{{'满减券' || '折扣券'}}</view> |
|
|
|
|
<view class="type">{{(item.image.length>0?(item.couponPrice)+'元' :'满减券') || '折扣券'}}</view> |
|
|
|
|
<view class="tip">满{{ item.useMinPrice }}可用</view> |
|
|
|
|
<!-- <view v-if="item._msg == '已过期'" class="btn btn-fail">不可用</view> --> |
|
|
|
|
<view v-if="item.isUse === true" class="btn btn-white" @click="goBrands">去使用</view> |
|
|
|
@ -201,6 +205,24 @@ export default {
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
.coupon-list{ |
|
|
|
|
.wrapper{ |
|
|
|
|
padding: 0 15rpx; |
|
|
|
|
box-sizing: content-box; |
|
|
|
|
height: 100%; |
|
|
|
|
.img{ |
|
|
|
|
width: 110rpx; |
|
|
|
|
height: 110rpx; |
|
|
|
|
border-radius: 16rpx; |
|
|
|
|
margin:33rpx 37rpx 14rpx 0; |
|
|
|
|
background-color: #fff; |
|
|
|
|
} |
|
|
|
|
.img:nth-child(3){ |
|
|
|
|
margin-right: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.header { |
|
|
|
|
.tab-title { |
|
|
|
|
font-size: 32rpx; |
|
|
|
|