123456789101112131415161718192021222324252627282930313233343536 |
- <view class="coupon">
- <view class="tab" >
- <view class="{{status==item.id ? 'tab-item1' :'tab-item'}}" a:for="{{tabList}}" a:key='index' onTap="currentTab" data-id="{{item.id}}">{{item.name}}</view>
- </view>
- <view a:if="{{couponList.length>0}}">
- <!-- <view class="coupon-dui" onTap="couponCode" >兑换优惠券</view> -->
- <view class="coupon-list">
- <view class="coupon-item" a:for="{{couponList}}" a:key='index'>
- <view class="left">
- <text>¥</text>
- <text class="num">{{item.used_amount}}</text>
- </view>
- <view class="right">
- <view class="right-title">{{item.type_name}}</view>
- <view class="right-text" a:if="{{status==1}}">{{item.valid_end_time}}到期</view>
- <view class="right-text" a:else>{{status==0 ? '已过期' : '已使用'}}</view>
- </view>
- </view>
- </view>
-
- <!-- 兑换码弹框 -->
- <view class="frame" a:if="{{frameShow==true}}">
- <view class="frame-content">
- <view class="top" onTap="closeFrame"><text class="iconfont icon-cha"></text></view>
- <input type="text" placeholder="请输入兑换码" class="code-input" placeholder-class="no-input"/>
- <view class="sure-button" onTap="sureSubmit">确定</view>
- </view>
- </view>
- </view>
- <view class="no-card" a:if="{{couponList.length==0}}">
- <image src="../../img/nocard.png"></image>
- <view>暂无可用优惠券</view>
- </view>
- </view>
|