50 lines
2.6 KiB
Plaintext
50 lines
2.6 KiB
Plaintext
<view class="list-title-btns">
|
|
<view bind:tap="doChangeStatus" data-value="1" class="{{currentStatus==1? 'btn-select':'btn-normal'}} border-left">
|
|
<view class="tab">
|
|
<text>可用</text>
|
|
<view class="{{currentStatus==1?'border-select':'border-normal'}}"></view>
|
|
</view>
|
|
</view>
|
|
<view bind:tap="doChangeStatus" data-value="2" class="{{currentStatus==2? 'btn-select':'btn-normal'}} border-right">
|
|
<view class="tab">
|
|
<text>已使用</text>
|
|
<view class="{{currentStatus==2?'border-select':'border-normal'}}"></view>
|
|
</view>
|
|
</view>
|
|
<view bind:tap="doChangeStatus" data-value="3" class="{{currentStatus==3? 'btn-select':'btn-normal'}} border-right">
|
|
<view class="tab">
|
|
<text>不可用</text>
|
|
<view class="{{currentStatus==3?'border-select':'border-normal'}}"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="margin-top: 60px;">
|
|
<container-loading loadingState="{{loadingState}}">
|
|
<scroll-view scroll-y style="height: 85vh;" bindrefresherrefresh="doRefreshList" refresher-enabled refresher-triggered="{{listRefreshTrig}}" bindscrolltolower="doLoadMore" lower-threshold='30'>
|
|
<view class="coupons-list-box">
|
|
<block wx:for="{{couponsList}}" wx:key="index">
|
|
<view class="tickets {{tools.boderStyle(currentStatus)}}">
|
|
<view class="l-tickets-box">
|
|
<view class="l-tickets {{tools.fontColor(currentStatus)}}">
|
|
<view class="l-icon">¥</view>
|
|
<view class="l-price">{{item.coupon.amount/100}}</view>
|
|
</view>
|
|
<view class="use-link" bind:tap="showRule">使用规则</view>
|
|
</view>
|
|
<!-- 虚线 -->
|
|
<view class="v-divide"></view>
|
|
<view class="r-tickets">
|
|
<view class="r-title">{{item.coupon.title}}</view>
|
|
<view class="r-time">{{tools.timeSplit(item.coupon.useGmtStart)}}-{{tools.timeSplit(item.coupon.useGmtEnd)}}</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<mp-loading show="{{isLoadMore}}" type="circle"></mp-loading>
|
|
<view wx:if="{{!hasMore}}" class="no-more">
|
|
<view class="no-more-dot"></view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</container-loading>
|
|
</view>
|
|
<wxs src="../../../../utils/comm.wxs" module="tools"></wxs> |