activePage2.wxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <view class="box">
  2. <!-- 头部 -->
  3. <view class="top">
  4. <image class="top-bgc" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E5%BC%80%E4%B8%9A%E6%B4%BB%E5%8A%A8%E9%A1%B5%E9%9D%A2%E8%83%8C%E6%99%AF1%402x.png"></image>
  5. <image class="bottom-bgc" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E5%BC%80%E4%B8%9A%E6%B4%BB%E5%8A%A8%E9%A1%B5%E9%9D%A2%E8%83%8C%E6%99%AF3%402x%20%281%29.png"></image>
  6. <!-- 优惠券轮播 -->
  7. <!-- <swiper class="coupon" indicator-dots='true' indicator-color='#FFFFFF' indicator-active-color='#FF5459' circular='true' > -->
  8. <!-- 类型,1直接抵扣券,2满减券,3全额券,4卡券(即将作废) -->
  9. <!-- <swiper-item wx:for="{{activityList.new_user}}" wx:key="index">
  10. <view class="item-left">
  11. <view class="price" wx:if="{{item.type==2}}">
  12. <text>¥</text><view>{{item.price}}</view>
  13. </view>
  14. <view class="priceFree" wx:else>
  15. <text>全免</text>
  16. </view>
  17. <view class="type" wx:if="{{item.type==2}}">满{{item.full_price}}可用</view>
  18. <view class="type" wx:else>
  19. {{couponType[item.type-1]}}
  20. </view>
  21. </view>
  22. <view class="item-right">
  23. <view class="item-right-top">
  24. <view class="{{item.id==149?'title2':'title'}}">
  25. {{item.name}}
  26. </view>
  27. <view wx:if="{{item.id==149}}" class="title-detail">用于首次体验项目,单项目满 300 元以上即可使用 (次卡不参与抵扣)</view>
  28. </view>
  29. <view class="btn" bindtap="useCoupon" data-item="{{item}}">立即使用</view>
  30. </view>
  31. </swiper-item>
  32. </swiper> -->
  33. <!-- 项目活动 -->
  34. <!-- <view class="projectAct">
  35. <image mode="aspectFill" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220901/%E7%BC%96%E7%BB%84%203%402x.png"></image>
  36. </view> -->
  37. <!-- 权益活动 -->
  38. <view class="top-position">
  39. <!-- <view class="projectAct">
  40. <image mode="aspectFill" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220926/%E7%BC%96%E7%BB%84%202%402x.png"></image>
  41. </view> -->
  42. <!-- 充值折扣入口 -->
  43. <!-- <view class="recharge" bindtap="toStoreValue">
  44. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221013/%E7%BC%96%E7%BB%84%204%402x%402x%20%281%29.png"></image>
  45. </view> -->
  46. <!-- 多人同行 -->
  47. <!-- <view class="discount" bindtap="gotoSendCoupon">
  48. <image class="discount" src="{{activityList.project[0].main_url}}">
  49. </image>
  50. </view> -->
  51. </view>
  52. </view>
  53. <!-- 中间 -->
  54. <view class="center">
  55. <image class="center-bgc" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E5%BC%80%E4%B8%9A%E6%B4%BB%E5%8A%A8%E9%A1%B5%E9%9D%A2%E8%83%8C%E6%99%AF2%402x.png"></image>
  56. <!-- 拼团专区 -->
  57. <view class="joinGroup">
  58. <image class="joinGroup-top" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E6%8B%BC%E5%9B%A2%E4%B8%93%E5%8C%BA01%402x.png"></image>
  59. <image bindtap="goGroup" class="joinGroup-bottom" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E6%8B%BC%E5%9B%A2banner%402x.png"></image>
  60. </view>
  61. <!-- 项目分类 -->
  62. <!-- <view class="classify">
  63. <image wx:for="{{classifyList}}" data-index="{{index}}" bindtap="changeTab" wx:key="index" src="{{tabIndex==index?item[1]:item[0]}}"></image>
  64. </view> -->
  65. <!-- 项目分类商品 -->
  66. <!-- <view class="classifyProject">
  67. <view class="classifyProject-item" bindtap="projectDetail" wx:key="index" data-id="{{item.id}}" wx:for="{{activityList.project[tabIndex].list}}">
  68. <view class="classifyProject-item-top">
  69. <image src="{{item.cover_url}}"></image>
  70. </view>
  71. <view class="classifyProject-item-bottom">
  72. <view class="classifyProject-title">{{item.name}}</view>
  73. <view class="classifyProject-price">
  74. <view class="price">¥<text>{{item.price}}.00</text></view>
  75. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220901/%E5%8E%BB%E8%B4%AD%E4%B9%B0%402x.png"></image>
  76. </view>
  77. </view>
  78. </view>
  79. </view> -->
  80. <!-- 次卡活动 -->
  81. <view class="cardAct">
  82. <image class="cardAct-image" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E6%AC%A1%E5%8D%A1%E6%B4%BB%E5%8A%A802%402x.png"></image>
  83. </view>
  84. <!-- 次卡活动轮播图 -->
  85. <swiper class="cardImage" bindchange='changeSwiper' autoplay previous-margin='164rpx' next-margin='164rpx' circular='true' >
  86. <swiper-item class="cardImage-item " wx:for="{{activityList.card}}" wx:key="index">
  87. <image bindtap="cardDetail" data-index="{{index}}" data-id="{{item.card_id}}" class="imageSmall {{index==swiperIndex?'imageBig':''}}" src="{{item.main_url}}"></image>
  88. <button bindtap="cardDetail" data-index="{{index}}" wx:if="{{index==swiperIndex}}" data-id="{{item.card_id}}">立即查看</button>
  89. </swiper-item>
  90. </swiper>
  91. </view>
  92. <!-- 底部 -->
  93. <view class="bottom">
  94. <!-- 商品活动 -->
  95. <view class="commodity">
  96. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E5%95%86%E5%93%81%E6%B4%BB%E5%8A%A803%402x.png"></image>
  97. </view>
  98. <!-- 商品活动轮播图 -->
  99. <view class="commodity-swiper">
  100. <swiper interval='7000' autoplay circular='true' bindtap="toGoodsList" bindchange='changeGoodsList' current="0">
  101. <swiper-item wx:for="{{activityList.goods}}" wx:key="index">
  102. <image src="{{item.main_url}}"></image>
  103. </swiper-item>
  104. </swiper>
  105. </view>
  106. <!-- 商品活动商品(跟项目分类商品共用) -->
  107. <view class="classifyProject" style="margin-top: 20rpx;">
  108. <swiper interval='1500' circular next-margin='56rpx'>
  109. <swiper-item wx:for="{{goodsList}}" wx:key="index">
  110. <view class="classifyProject-item" wx:key="index" bindtap="productDetail" data-id="{{item.id}}" wx:for="{{item.length==2?item:item}}">
  111. <view class="classifyProject-item-top">
  112. <image src="{{item.cover_url}}"></image>
  113. </view>
  114. <view class="classifyProject-item-bottom">
  115. <view class="classifyProject-title">{{item.name}}</view>
  116. <view class="classifyProject-price">
  117. <view class="price">¥<text>{{item.price}}</text></view>
  118. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220901/%E5%8E%BB%E8%B4%AD%E4%B9%B0%402x.png"></image>
  119. </view>
  120. </view>
  121. </view>
  122. </swiper-item>
  123. </swiper>
  124. </view>
  125. </view>
  126. </view>