grouponPreList.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <view class="container">
  2. <image src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/ucenter/pre-bk.png?1" style="width: 100%;height: 320rpx;"/>
  3. <view class="b">
  4. <view class="coupon-form">
  5. <view class="input-box">
  6. <input class="coupon-sn" placeholder="请输入参团手机号" value="{{code}}" bindinput="bindExchange" />
  7. <van-icon name="close" class="clear-icon" wx:if="{{ code.length > 0 }}" catchtap="clearExchange" />
  8. </view>
  9. <view class="add-btn" bindtap='getCouponList'>查询</view>
  10. </view>
  11. <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" class="my-coupon-list">
  12. <view wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" class="my-coupon-item-valid">
  13. <view wx:if="{{item.exchangeTime}}" class="marker">已兑换</view>
  14. <view class="coupon-top">
  15. <view class="coupon-top-content">
  16. <view class="coupon-valid-name">{{item.pkName}}</view>
  17. <view>有效期至:{{item.endTime}}</view>
  18. </view>
  19. </view>
  20. <view class="coupon-bottom">
  21. <view><text wx:if="{{item.exchangeTime}}">兑换时间:{{item.exchangeTime}}</text></view>
  22. <view wx:if="{{!item.exchangeTime}}" class="coupon-top-right" data-id="{{item.pkCode}}" bindtap="goService">
  23. 立即兑换
  24. </view>
  25. <view wx:else="" class="coupon-top-right" data-id="{{item.pkCode}}" bindtap="goCouponList">
  26. 查看优惠券
  27. </view>
  28. </view>
  29. </view>
  30. <!-- <view class="page" wx:if="{{showPage}}">
  31. <view class="prev {{ page <= 1 ? 'disabled' : ''}}" bindtap="prevPage">上一页</view>
  32. <view class="next {{ (count / size) < page ? 'disabled' : ''}}" bindtap="nextPage">下一页</view>
  33. </view> -->
  34. </scroll-view>
  35. <view class="no-list" wx:if="{{couponList==0}}">没有团购券了</view>
  36. </view>
  37. </view>