| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!--index.wxml-->
- <view class="wrap">
- <view class="cate_list">
- <van-tabs active="{{ status }}" line-width="59rpx" line-height="4rpx" title-active-color="#D54C43" title-inactive-color="#333333" bind:change="onChange">
- <van-tab title="全部" name="{{ -1 }}"></van-tab>
- <van-tab title="可使用" name="{{ 1 }}"></van-tab>
- <van-tab title="已使用" name="{{ 2 }}"></van-tab>
- <van-tab title="已失效" name="{{ 0 }}"></van-tab>
- </van-tabs>
- </view>
- <view class="coupon_list">
- <view class="{{ item.status == 1 ? 'coupon_item' : 'coupon_item unable' }}" style="background-image: url({{ item.status == 1 ? couponBg : couponUnBg }})" wx:for="{{ dataList }}" wx:key="index">
- <view class="item_l" wx:if="{{ item.type == 1 }}">
- <view class="price"><text class="unit">¥</text>{{ item.price }}</view>
- <view class="tips">满{{ item.base_price }}元可用</view>
- </view>
- <view class="item_l" wx:if="{{ item.type == 2 }}">
- <view class="price"><text class="unit">¥</text>{{ item.price }}</view>
- <view class="tips">无门槛</view>
- </view>
- <view class="item_l" wx:if="{{ item.type == 3 }}">
- <view class="price">{{ item.discount }}折</view>
- <!-- <view class="tips">折扣{{ item.discount }}</view> -->
- </view>
- <view class="item_r">
- <view class="item_r_l">
- <view class="quan_name">{{ item.type == 3 ? '折扣优惠券' : item.type == 2 ? '金额优惠券' : '满减券' }}</view>
- <view class="quan_time">有效期至{{ item.due_time }}</view>
- </view>
- </view>
- <view class="item_status" wx:if="{{item.status == 1}}" bind:tap="goGoodsIndex">去使用</view>
- <view class="item_status" wx:if="{{item.status == 2}}">已使用</view>
- <view class="item_status" wx:if="{{item.status == 0}}">已失效</view>
- </view>
- <!-- <view class="coupon_item unable" style="background-image: url({{ couponBg }})">
- <view class="item_l">
- <view class="price"><text class="unit">¥</text>15</view>
- <view class="tips">无门槛</view>
- </view>
- <view class="item_r">
- <view class="item_r_l">
- <view class="quan_name">新意商城代金券</view>
- <view class="quan_time">有效期至2021-12-31</view>
- </view>
- </view>
- <view class="item_status">已使用</view>
- </view>-->
- </view>
- </view>
- <!-- loading -->
- <!-- <van-overlay show="{{ loading }}" z-index="100">
- <van-loading custom-class="custom_loading" />
- </van-overlay> -->
|