12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <view class="tab">
- <view id="tabWrap">
- <view s-for="ui" id="tabItem" class="{{current == index? 'selected':''}}" data-class="{{index}}"
- bindtap="ontab">{{item}}
- </view>
- </view>
- <view class="blueLine" animation="{{animationLine}}" style="left:{{lineLeft}}rpx"></view>
- </view>
- <view class="card" animation="{{animationData}}">
- <view class="col" s-for="list">
- <view class="contentNull" s-if="{{!item.length}}">
- <view>
- <image src="../../../../icon/public/discount_empty.png"></image>
- <text>暂无可用的优惠券哦</text>
- </view>
- </view>
- <scroll-view scroll-y class="content" s-else style="left:{{left}}rpx">
- <view class="tips" s-if="{{index==0&&choose}}">
- <view s-if="!chooesdCashCoupon">
- <text>您当前下了{{nums}}个月订单,可同时选</text>
- <text class="red">{{nums}}</text>
- <text>张优惠券</text>
- </view>
- <view s-else>
- <text>您已选中优惠券</text>
- <text class="red">{{cheapDataLength}}</text>
- <text>张,共可抵用</text>
- <text class="red">¥{{cheapMoney}}</text>
- </view>
- </view> <view class="cItem {{index==0?'use':'unuse'}}">
- <view class="cardItem" s-for="item2,index2 in item" id="{{index2}}"
- bindtap="{{choose?'choose':''}}">
- <view class="left">
- <view>
- <text>¥</text>
- <text>{{item2.coupon_price}}</text>
- </view>
- <text>
- {{item2.p}}
- </text>
- </view>
- <view class="right">
- <view>
- <text>{{item2.coupon_name}}</text>
- <text>说明:{{item2.coupon_desc}}</text>
- <text>有效期至:{{item2.end}}</text>
- </view>
- <view s-if="{{index==0}}">
- <image src="../../../../icon/public/filter_{{item2.isSelected?'s':'n'}}.png"
- s-if="{{choose}}"></image>
- </view>
- </view>
- </view>
- <view class="empty{{suffix}}"></view>
- </view>
- </scroll-view>
- </view>
- </view>
- <view class="btnBox{{suffix}}" s-if="{{choose}}">
- <view class="btn" bindtap="goBack">确定</view>
- </view>
|