activePage2.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!-- 头部 -->
  2. <view class="box">
  3. <view class="top">
  4. <image class="top-bgc" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20230209/2%E6%9C%88%E6%B4%BB%E5%8A%A8%E9%A1%B5%E9%9D%A2%402x.png"></image>
  5. </view>
  6. <view class="bottom-bgc">
  7. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20230209/2%E6%9C%88%E6%B4%BB%E5%8A%A8%E9%A1%B5%E9%9D%A2%402x%281%29.png"></image>
  8. </view>
  9. <!-- 中间 -->
  10. <view class="center">
  11. <!-- 次卡活动 -->
  12. <view class="cardAct">
  13. <image class="cardAct-image" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20230209/%E6%AC%A1%E5%8D%A1%E6%B4%BB%E5%8A%A8%402x.png"></image>
  14. <!-- 次卡活动轮播图 -->
  15. <swiper class="cardImage" indicator-dots='true' autoplay indicator-color='#FFFFFF' indicator-active-color='#59C0C4' bindchange='changeSwiper' previous-margin='90rpx' next-margin='90rpx' current="0" circular='true'>
  16. <swiper-item class="cardImage-item " wx:for="{{activityList.card}}" wx:key="index">
  17. <image bindtap="cardDetail" class="imageSmall" src="{{item.main_url}}"></image>
  18. </swiper-item>
  19. </swiper>
  20. </view>
  21. </view>
  22. <!-- 底部 -->
  23. <view class="bottom">
  24. <!-- 商品活动 -->
  25. <view class="commodity">
  26. <image class="commodity-image" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20230209/%E5%95%86%E5%93%81%E6%B4%BB%E5%8A%A8%402x.png"></image>
  27. <!-- 商品活动背景图 -->
  28. <view class="commodity-bgc">
  29. <!-- 商品活动轮播图 -->
  30. <swiper class="commodity-swiper" indicator-dots='true' indicator-color='#FFFFFF' indicator-active-color='#59C0C4' interval='7000' circular='true' bindtap="toGoodsList" bindchange='changeGoodsList' current="0">
  31. <swiper-item wx:for="{{activityList.goods}}" wx:key="index">
  32. <image src="{{item.main_url}}"></image>
  33. </swiper-item>
  34. </swiper>
  35. </view>
  36. </view>
  37. <!-- 商品活动商品(跟项目分类商品共用) -->
  38. <view class="classifyProject">
  39. <swiper interval='1500' circular next-margin='56rpx'>
  40. <swiper-item wx:for="{{goodsList}}" wx:key="index">
  41. <view class="classifyProject-item" wx:key="index" bindtap="productDetail" data-id="{{item.id}}" wx:for="{{item.length==2?item:item}}">
  42. <view class="classifyProject-item-top">
  43. <image src="{{item.cover_url}}"></image>
  44. </view>
  45. <view class="classifyProject-item-bottom">
  46. <view class="classifyProject-title">{{item.name}}</view>
  47. <view class="classifyProject-price">
  48. <view class="price">¥<text>{{item.price}}</text></view>
  49. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220901/%E5%8E%BB%E8%B4%AD%E4%B9%B0%402x.png"></image>
  50. </view>
  51. </view>
  52. </view>
  53. </swiper-item>
  54. </swiper>
  55. </view>
  56. </view>
  57. </view>