1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <view class="container">
- <scroll-view class="coupon-list" scroll-y="true" scroll-top="{{scrollTop}}">
- <view class="unselect" bindtap='unselectCoupon'>不选择优惠券</view>
- <view class="my-coupon-list">
- <view wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" class="my-coupon-item" bindtap="selectCoupon" data-id="{{item.id}}" data-cid="{{item.cid}}">
- <view class="coupon-left">
- <view wx:if="{{item.voucherType==1}}">¥<text class="coupon-amount">{{item.discount}}</text></view>
- <view wx:if="{{item.voucherType==2}}"><text class="coupon-amount">{{item.discount/10}}</text>折</view>
- <view class="coupon-type">
- <!-- {{item.name}} -->
- <span wx:if="{{item.voucherType==1}}">立减券</span>
- <span wx:if="{{item.voucherType==2}}">折扣券</span>
- </view>
- <view class="coupon-btn active-btn" data-goodsvalue="{{item.goodsValue}}" bindtap="goService">立即使用</view>
- </view>
- <view class="coupon-content">
- <view class="coupon-name">{{item.name}}</view>
- <view class="coupon-date">有效期开始:{{item.startTime}}</view>
- <view class="coupon-date">有效期结束:{{item.endTime}}</view>
- </view>
-
- </view>
- </view>
- <!-- <view class="item" wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" bindtap="selectCoupon" data-id="{{item.id}}" data-cid="{{item.cid}}">
- <view class="tag">{{item.tag}}</view>
- <view class="content">
- <view class="left">
- <view class="discount">{{item.discount}}元</view>
- <view class="min"> 满{{item.min}}元使用</view>
- </view>
- <view class="right">
- <view class="name">{{item.name}}</view>
- <view class="time"> 有效期:{{item.startTime}} - {{item.endTime}}</view>
- </view>
- </view>
- <view class="condition">
- <text class="txt">{{item.desc}}</text>
- <image src="{{item.pic}}" class="icon"></image>
- </view>
- </view> -->
- <view class="no-list" wx:if="{{couponList==0}}">暂无优惠券</view>
- </scroll-view>
- </view>
|