1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <import src="../public-view.wxml" />
- <view class="bg-view" animation="{{bgAnimation}}">
- <scroll-view scroll-y class="bg-scroll-view" bindscrolltolower="uploadView">
- <view wx:if="{{type != 'choose' && unusedData.length != 0}}" style="width:100%;height:100rpx;"></view>
- <view class="header" wx:if="{{type == 'choose' && unusedData.length != 0}}">
- <text>{{tips[0]}}</text>
- <text>{{tips[1]}}</text>
- <text>{{tips[2]}}</text>
- </view>
- <template is="discount-item" wx:for="{{unusedData}}" wx:key="" data="{{...unusedData[index], id: index, type: type, chose: chose, canUse: '1', imagePath: '../../../icon/public/'}}"/>
- <view class="no-data" wx:if="{{unusedData.length == 0 && !isLoading}}">
- <image src="../../../icon/public/discount_empty.png"></image>
- <text>暂无可用的优惠券</text>
- <!-- <text>优惠券功能即将开放</text> -->
- </view>
- <view wx:else style="width:100%;height:20rpx;"></view>
- <view class="scroll-view-bottom-view{{adapter.suffix}}" wx:if="{{type == 'choose'}}"></view>
- </scroll-view>
- <scroll-view scroll-y class="bg-scroll-view" bindscrolltolower="uploadView">
- <view wx:if="{{type != 'choose' && usedData.length != 0}}" style="width:100%;height:100rpx;"></view>
- <template is="discount-item" wx:for="{{usedData}}" wx:key="" data="{{...usedData[index], id: index, type: type, chose: chose, canUse: '0', imagePath: '../../../icon/public/'}}"/>
- <view class="no-data" wx:if="{{usedData.length == 0 && !isLoading}}">
- <image src="../../../icon/public/discount_empty.png"></image>
- <text>暂无可用的优惠券</text>
- <!-- <text>优惠券功能即将开放</text> -->
- </view>
- <view wx:else style="width:100%;height:20rpx;"></view>
- </scroll-view>
- </view>
- <view class="tab-view" wx:if="{{type != 'choose'}}">
- <view>
- <view class="{{tab.id == '1' ? 'tab-text-s' : 'tab-text-n'}}" bindtap="tabChoose" id="1">未使用</view>
- <view class="{{tab.id == '1' ? 'tab-text-n' : 'tab-text-s'}}" bindtap="tabChoose" id="2">已失效</view>
- </view>
- <view>
- <view animation="{{tab.animation}}">
- <view></view>
- </view>
- </view>
- </view>
- <template is="bottom-view-botton" wx:if="{{type == 'choose' && unusedData.length != 0}}" data="{{t: '确定', suffix: adapter.suffix, action: 'confirmAction'}}" />
|