discount-view.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <import src="../public-view.wxml" />
  2. <view class="bg-view" animation="{{bgAnimation}}">
  3. <scroll-view scroll-y class="bg-scroll-view" bindscrolltolower="uploadView">
  4. <view wx:if="{{type != 'choose' && unusedData.length != 0}}" style="width:100%;height:100rpx;"></view>
  5. <view class="header" wx:if="{{type == 'choose' && unusedData.length != 0}}">
  6. <text>{{tips[0]}}</text>
  7. <text>{{tips[1]}}</text>
  8. <text>{{tips[2]}}</text>
  9. </view>
  10. <template is="discount-item" wx:for="{{unusedData}}" wx:key="" data="{{...unusedData[index], id: index, type: type, chose: chose, canUse: '1', imagePath: '../../../icon/public/'}}"/>
  11. <view class="no-data" wx:if="{{unusedData.length == 0 && !isLoading}}">
  12. <image src="../../../icon/public/discount_empty.png"></image>
  13. <text>暂无可用的优惠券</text>
  14. <!-- <text>优惠券功能即将开放</text> -->
  15. </view>
  16. <view wx:else style="width:100%;height:20rpx;"></view>
  17. <view class="scroll-view-bottom-view{{adapter.suffix}}" wx:if="{{type == 'choose'}}"></view>
  18. </scroll-view>
  19. <scroll-view scroll-y class="bg-scroll-view" bindscrolltolower="uploadView">
  20. <view wx:if="{{type != 'choose' && usedData.length != 0}}" style="width:100%;height:100rpx;"></view>
  21. <template is="discount-item" wx:for="{{usedData}}" wx:key="" data="{{...usedData[index], id: index, type: type, chose: chose, canUse: '0', imagePath: '../../../icon/public/'}}"/>
  22. <view class="no-data" wx:if="{{usedData.length == 0 && !isLoading}}">
  23. <image src="../../../icon/public/discount_empty.png"></image>
  24. <text>暂无可用的优惠券</text>
  25. <!-- <text>优惠券功能即将开放</text> -->
  26. </view>
  27. <view wx:else style="width:100%;height:20rpx;"></view>
  28. </scroll-view>
  29. </view>
  30. <view class="tab-view" wx:if="{{type != 'choose'}}">
  31. <view>
  32. <view class="{{tab.id == '1' ? 'tab-text-s' : 'tab-text-n'}}" bindtap="tabChoose" id="1">未使用</view>
  33. <view class="{{tab.id == '1' ? 'tab-text-n' : 'tab-text-s'}}" bindtap="tabChoose" id="2">已失效</view>
  34. </view>
  35. <view>
  36. <view animation="{{tab.animation}}">
  37. <view></view>
  38. </view>
  39. </view>
  40. </view>
  41. <template is="bottom-view-botton" wx:if="{{type == 'choose' && unusedData.length != 0}}" data="{{t: '确定', suffix: adapter.suffix, action: 'confirmAction'}}" />