You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
high-mini/unpackage/dist/dev/mp-weixin/pages/user/coupon/coupon.wxml

1 lines
2.9 KiB

<view><view class="tabr" style="{{'top:'+(headerTop)+';'}}"><view data-event-opts="{{[['tap',[['switchType',['valid']]]]]}}" class="{{[(typeClass=='valid')?'on':'']}}" bindtap="__e">{{"可用("+couponValidList.length+")"}}</view><view data-event-opts="{{[['tap',[['switchType',['invalid']]]]]}}" class="{{[(typeClass=='invalid')?'on':'']}}" bindtap="__e">已失效</view><view class="{{['border',typeClass]}}"></view></view><view class="place"></view><view class="list"><view class="{{['sub-list valid',subState]}}"><block wx:if="{{couponValidList.length==0}}"><view class="tis">没有数据~</view></block><block wx:for="{{couponValidList}}" wx:for-item="row" wx:for-index="index" wx:key="index"><view class="row"><view data-event-opts="{{[['tap',[['deleteCoupon',['$0','$1'],[[['couponValidList','',index,'id']],'couponValidList']]]]]}}" class="menu" catchtap="__e"><view class="icon shanchu"></view></view><view data-event-opts="{{[['touchstart',[['touchStart',[index,'$event']]]],['touchmove',[['touchMove',[index,'$event']]]],['touchend',[['touchEnd',[index,'$event']]]]]}}" class="{{['carrier',typeClass=='valid'?theIndex==index?'open':oldIndex==index?'close':'':'']}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"><view class="left"><view class="title">{{''+row.title+''}}</view><view class="term">{{''+row.termStart+" ~ "+row.termEnd+''}}</view><view class="gap-top"></view><view class="gap-bottom"></view></view><view class="right"><view class="ticket"><view class="num">{{''+row.ticket+''}}</view><view class="unit">元</view></view><view class="criteria">{{''+row.criteria+''}}</view><view class="use">去使用</view></view></view></view></block></view><view class="{{['sub-list invalid',subState]}}"><block wx:if="{{couponinvalidList.length==0}}"><view class="tis">没有数据~</view></block><block wx:for="{{couponinvalidList}}" wx:for-item="row" wx:for-index="index" wx:key="index"><view class="row"><view data-event-opts="{{[['tap',[['deleteCoupon',['$0','$1'],[[['couponinvalidList','',index,'id']],'couponinvalidList']]]]]}}" class="menu" catchtap="__e"><view class="icon shanchu"></view></view><view data-event-opts="{{[['touchstart',[['touchStart',[index,'$event']]]],['touchmove',[['touchMove',[index,'$event']]]],['touchend',[['touchEnd',[index,'$event']]]]]}}" class="{{['carrier',typeClass=='invalid'?theIndex==index?'open':oldIndex==index?'close':'':'']}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"><view class="left"><view class="title">{{''+row.title+''}}</view><view class="term">{{''+row.termStart+" ~ "+row.termEnd+''}}</view><view class="icon shixiao"></view><view class="gap-top"></view><view class="gap-bottom"></view></view><view class="right invalid"><view class="ticket"><view class="num">{{''+row.ticket+''}}</view><view class="unit">元</view></view><view class="criteria">{{''+row.criteria+''}}</view><view class="use">去查看</view></view></view></view></block></view></view></view>