coupon.axml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <view class="coupon">
  2. <view class="tab" >
  3. <view class="{{status==item.id ? 'tab-item1' :'tab-item'}}" a:for="{{tabList}}" a:key='index' onTap="currentTab" data-id="{{item.id}}">{{item.name}}</view>
  4. </view>
  5. <view a:if="{{couponList.length>0}}">
  6. <!-- <view class="coupon-dui" onTap="couponCode" >兑换优惠券</view> -->
  7. <view class="coupon-list">
  8. <view class="coupon-item" a:for="{{couponList}}" a:key='index'>
  9. <view class="left">
  10. <text>¥</text>
  11. <text class="num">{{item.used_amount}}</text>
  12. </view>
  13. <view class="right">
  14. <view class="right-title">{{item.type_name}}</view>
  15. <view class="right-text" a:if="{{status==1}}">{{item.valid_end_time}}到期</view>
  16. <view class="right-text" a:else>{{status==0 ? '已过期' : '已使用'}}</view>
  17. </view>
  18. </view>
  19. </view>
  20. <!-- 兑换码弹框 -->
  21. <view class="frame" a:if="{{frameShow==true}}">
  22. <view class="frame-content">
  23. <view class="top" onTap="closeFrame"><text class="iconfont icon-cha"></text></view>
  24. <input type="text" placeholder="请输入兑换码" class="code-input" placeholder-class="no-input"/>
  25. <view class="sure-button" onTap="sureSubmit">确定</view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="no-card" a:if="{{couponList.length==0}}">
  30. <image src="../../img/nocard.png"></image>
  31. <view>暂无可用优惠券</view>
  32. </view>
  33. </view>