diySeckill.wxml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template name="diySeckill">
  2. <view class="seckill" style="margin-top:{{diyInfo.marginTop*2+'rpx'}};">
  3. <block wx:if="{{diyInfo.style==1}}">
  4. <view class="seckill-head i-flex" style="background:{{diyInfo.backgroundColor}}">
  5. <view class="tit">
  6. <view>整点</view>
  7. <view>秒杀</view>
  8. </view>
  9. <view class="i-flex-item i-flex">
  10. <view class="seckill-head-item {{secKillActiveIdx==index?'active':''}}" wx:for="{{scekillTimeList}}" wx:key="id"
  11. data-time="{{item.seckillTime}}" data-idx="{{index}}" bindtap="changeSecKillTime">
  12. <view class="time">{{item.timeStr}}</view>
  13. <view class="desc" style="{{secKillActiveIdx==index?('color:'+diyInfo.backgroundColor):''}}">{{item.desc}}</view>
  14. </view>
  15. </view>
  16. <view class="more" bindtap="goLink"
  17. data-link="/lionfish_comshop/moduleA/seckill/list?time={{scekillTimeList[secKillActiveIdx].seckillTime}}">
  18. 更多 <text class="iconfont icon-gengduo"></text>
  19. </view>
  20. </view>
  21. <view class="seckill-list" wx:if="{{secRushList.length}}">
  22. <swiper indicatorDots class="sec-swiper-content" autoplay duration="400" circular indicator-dots="{{false}}"
  23. bindchange="scrollSecKillGoodsChange">
  24. <swiper-item wx:for="{{secRushList}}" wx:key="id">
  25. <i-seckill-spu spuItem="{{item}}" begin="{{scekillTimeList[secKillActiveIdx].state==2?1:0}}"
  26. needAuth="{{needAuth}}"></i-seckill-spu>
  27. </swiper-item>
  28. </swiper>
  29. <text class="current" wx:if="{{secRushList.length}}">{{secKillGoodsIndex}}/{{secRushList.length}}</text>
  30. </view>
  31. </block>
  32. <block wx:if="{{diyInfo.style==2}}">
  33. <view class="seckill-head2 i-flex i-flex-alc u-p-t-40 u-p-l-30 u-p-r-30 u-p-b-10">
  34. <view class="i-flex-item">
  35. <image style="width:206rpx;height:32rpx" src="{{diyInfo.host+diyInfo.list[1].imageUrl}}"></image>
  36. <view style="color:rgba(255, 69, 68, .6);" class="u-font-28">
  37. <block wx:for="{{scekillTimeList}}" wx:key="id" wx:if="{{secKillActiveIdx==index}}">
  38. {{item.desc}} <text class="seckill-time-i">{{item.timeArr[0]}}</text>:<text class="seckill-time-i">{{item.timeArr[1]}}</text>
  39. </block>
  40. </view>
  41. </view>
  42. <view class="text-gray u-font-24" bindtap="goLink" data-link="/lionfish_comshop/moduleA/seckill/list?time={{scekillTimeList[secKillActiveIdx].seckillTime}}">
  43. 更多秒杀<text class="iconfont icon-youjiantou u-font-22"></text>
  44. </view>
  45. </view>
  46. <view class="seckill-list" wx:if="{{secRushList.length}}">
  47. <view wx:for="{{secRushList}}" wx:key="id">
  48. <i-seckill-spu spuItem="{{item}}" begin="{{scekillTimeList[secKillActiveIdx].state==2?1:0}}" needAuth="{{needAuth}}"></i-seckill-spu>
  49. </view>
  50. </view>
  51. </block>
  52. <block wx:if="{{diyInfo.style==3}}">
  53. <view class="seckill-head2 text-center u-p-t-50 u-p-l-30 u-p-r-30 u-p-b-10">
  54. <view><image style="width:348rpx;height:34rpx" src="{{diyInfo.host+diyInfo.list[2].imageUrl}}"></image></view>
  55. <view style="color:rgba(255, 69, 68, .6);" class="u-font-24 u-m-t-10">
  56. <block wx:for="{{scekillTimeList}}" wx:key="id" wx:if="{{secKillActiveIdx==index}}">
  57. {{item.desc}} <text class="seckill-time-i">{{item.timeArr[0]}}</text>:<text class="seckill-time-i">{{item.timeArr[1]}}</text>
  58. </block>
  59. </view>
  60. </view>
  61. <view class="seckill-list u-m-t-20" wx:if="{{secRushList.length}}">
  62. <view wx:for="{{secRushList}}" wx:key="id">
  63. <i-seckill-spu spuItem="{{item}}" begin="{{scekillTimeList[secKillActiveIdx].state==2?1:0}}" needAuth="{{needAuth}}"></i-seckill-spu>
  64. </view>
  65. </view>
  66. <view class="text-gray u-font-24 text-center border-top u-p-t-30 u-p-b-30 u-m-l-20 u-m-r-20" bindtap="goLink" data-link="/lionfish_comshop/moduleA/seckill/list?time={{scekillTimeList[secKillActiveIdx].seckillTime}}">
  67. 更多秒杀<text class="iconfont icon-youjiantou u-font-22"></text>
  68. </view>
  69. </block>
  70. </view>
  71. </template>