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/build/mp-weixin/pages/user/coupon/coupon.wxml

1 line
2.5 KiB

4 years ago
<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="{{$root.l0}}" 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 class="carrier"><view class="left"><view class="title">{{''+row.$orig.highDiscount.discountName+''}}</view><view class="term">{{'截止时间:'+row.f0+''}}</view><view class="gap-top"></view><view class="gap-bottom"></view></view><view class="right"><view class="ticket"><view class="num">{{''+row.$orig.highDiscount.discountPrice+''}}</view><view class="unit">元</view></view><view class="criteria">{{''+row.$orig.highDiscount.discountName+''}}</view><view data-event-opts="{{[['tap',[['jumpcoupons',['$0'],[[['couponValidList','',index,'id']]]]]]]}}" class="use" bindtap="__e">去使用</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="{{$root.l1}}" 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 class="carrier"><view class="left"><view class="title">{{''+row.$orig.highDiscount.discountName+''}}</view><view class="term">{{'截止时间:'+row.f1+''}}</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.$orig.highDiscount.discountPrice+''}}</view><view class="unit">元</view></view><view class="criteria">{{''+row.$orig.highDiscount.discountName+''}}</view><view class="use">已失效</view></view></view></view></block></view></view></view>