index.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <view class="white-bg content">
  2. <swiper class="swiper" next-margin="{{swiper.next}}rpx" previous-margin="{{swiper.previous}}rpx" bindchange="swiperChange" easing-function="easeInOutCubic">
  3. <swiper-item wx:for="{{swiperList}}" wx:key="unique">
  4. <view class="slide-item">
  5. <image mode="aspectFill" src="{{item.cardImg}}" class="slide-image {{swiperList.length<=1?'slide-ones':swiperIndex==index?'slide-active':swiperIndex!=0&&index<swiperIndex?'slide-last':''}}"/>
  6. <view class="slide-give">
  7. <button class="button {{item.giveStatus==0?'button-white':'button-gray'}}" open-type="share" disabled="{{item.giveStatus==1}}" data-cardNo="{{item.cardNo}}" data-cardImg="{{item.cardImg}}">{{item.giveStatus==0?"赠好友":"不可赠"}}</button>
  8. <text class="icon icon-question font25" bindtap="questionClick"></text>
  9. </view>
  10. <text class="gray slide-time">
  11. No.{{item.cardNo}}
  12. 有效期:{{item.expireTime}}
  13. </text>
  14. </view>
  15. </swiper-item>
  16. </swiper>
  17. <view class="content-box-pad">
  18. <view class="title">我的权益</view>
  19. <view class="subtitle">权益一:799冬夏令营券</view>
  20. <view class="vouche vouche-pink" wx:if="{{equity.equityOne}}">
  21. <view class="vouche-info">
  22. <text class="font30 {{equity.equityOne.status==1?'subtitleColor':'black'}}">{{equity.equityOne.price}}<text class="font14">元</text></text>
  23. <view class="font14 black" style="padding-top:10rpx;">{{equity.equityOne.description}}</view>
  24. </view>
  25. <view class="vouche-button">
  26. <button class="button {{equity.equityOne.status==1?'button-warn':'button-gray'}}" bindtap="vouche" data-status="{{equity.equityOne.status}}" data-vid="{{equity.equityOne.vid}}">
  27. {{equity.equityOne.status==1?'立即使用':equity.equityOne.status==2?'已使用':equity.equityOne.status==3?'占用未付款':equity.equityOne.status==4?'已过期':equity.equityOne.status==6?'已无效':''}}
  28. </button>
  29. </view>
  30. </view>
  31. <view class="subtitle">权益二:400元免单券</view>
  32. <view class="vouche" wx:for="{{equity.equityTwo}}" wx:key="unique">
  33. <view class="vouche-info">
  34. <text class="font30 {{item.status==1?'subtitleColor':'black'}}">{{item.price}}<text class="font14">元</text></text>
  35. <view class="font14 black" style="padding-top:10rpx;">{{item.description}}</view>
  36. </view>
  37. <view class="vouche-button">
  38. <button class="button {{item.status==1? 'button-warn' : 'button-gray'}}" bindtap="vouche" data-status="{{item.status}}" data-vid="{{item.vid}}">{{item.status==1?'立即使用':item.status==2?'已使用':item.status==3?'占用未付款':item.status==4?'已过期':item.status==6?'已无效':''}}</button>
  39. </view>
  40. </view>
  41. <view class="subtitle">权益三:提前10分钟抢购活动</view>
  42. <navigator hover-class="none" url="/pages/product/activity/index?aid={{item.aid}}" class="activity{{index == 0 ? ' mTop5':''}}" wx:for="{{equity.equityThree}}" wx:key="unique" wx:if="{{equity.equityThree}}">
  43. <image src="{{item.logo}}" mode="aspectFill" lazy-load="true" binderror="binderror" data-index="{{index}}"/>
  44. <view class="activity-info">
  45. <view class="activity-info-title">{{item.title}}</view>
  46. <view class="activity-info-time gray" wx:if="{{item.updateTime}}">距抢购<text class="subtitleColor">{{item.updateTime}}</text></view>
  47. </view>
  48. </navigator>
  49. <view class="noData" style="padding:40rpx 0;" wx:if="{{!equity.equityThree}}">
  50. <text class="icon icon-info" style="font-size:120rpx;"></text><text class="font12">暂无抢购活动</text>
  51. </view>
  52. <view class="subtitle">权益四:《正面管教》家长课堂</view>
  53. <view class="font12 mTop5">请联系本城宝大大微信邀您学习</view>
  54. <view class="subtitle">权益五:生日定制福利</view>
  55. <view class="font12 m-top5">请联系本城宝大大微信获取福利</view>
  56. </view>
  57. </view>