123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <view class="container">
- <view class="b">
- <view wx:if="{{status == 0}}" class="coupon-switch-block">
- <view wx:for="{{typeList}}" wx:for-index="index" wx:for-item="item" wx:key="index" data-type="{{item.type}}"
- class="type-switch {{item.type===currentType?'active-switch':''}}" bindtap="switchType">
- {{item.name}}
- </view>
- </view>
- <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" class="my-coupon-list">
- <!-- 未使用 -->
- <view wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" class="my-coupon-item-valid">
- <view class="coupon-top">
- <view class="coupon-top-left">
- <view class="coupon-value">
- <text wx:if="{{item.voucherType==1}}" class="coupon-flag">¥</text>
- <text class="{{item.type==4?'coupon-value-member':'coupon-value-num'}}" wx:if="{{item.voucherType==1}}">{{item.discount}}</text>
- <text class="{{item.type==4?'coupon-value-member':'coupon-value-num'}}" wx:if="{{item.voucherType==2}}">{{item.discount/10}}</text>
- <text wx:if="{{item.voucherType==2}}" class="{{item.type==4?'coupon-unit-member':'coupon-unit'}}">折</text>
- </view>
- <view class="coupon-type">
- <text wx:if="{{item.voucherType==1}}" style="color:#555555">满{{item.min}}可用</text>
- <text wx:if="{{item.voucherType==2}}" style="color:#555555">满{{item.min}}可用</text>
- </view>
- </view>
- <view class="coupon-top-content">
- <view class="coupon-valid-name">{{item.name}}</view>
- <view wx:if="{{item.timeType==1}}">有效期至:{{item.endTime}}</view>
- <view wx:if="{{item.timeType==0}}">领券后:{{item.days}}天有效</view>
- </view>
- </view>
- <view class="coupon-bottom">
- <text wx:if="{{item.desc&&item.name!=item.desc}}" style="flex:1;">{{item.desc}}</text>
- <text wx:else=""></text>
- <view class="coupon-top-right" data-id="{{item.id}}" bindtap="goReceive">
- 领取并使用
- </view>
- </view>
- </view>
-
- </scroll-view>
- <view class="no-list" wx:if="{{couponList==0}}">没有更多可领优惠券了</view>
- </view>
- </view>
|