seckill.wxml 1.5 KB

123456789101112131415161718192021222324252627
  1. <template name="seckill">
  2. <view class="seckill">
  3. <view class="seckill-head i-flex" style="background:{{seckill_bg_color}}">
  4. <view class="tit">
  5. <view>整点</view>
  6. <view>秒杀</view>
  7. </view>
  8. <view class="i-flex-item i-flex">
  9. <view class="seckill-head-item {{secKillActiveIdx==index?'active':''}}" wx:for="{{scekillTimeList}}" wx:key="id" data-time="{{item.seckillTime}}" data-idx="{{index}}" bindtap="changeSecKillTime">
  10. <view class="time">{{item.timeStr}}</view>
  11. <view class="desc" style="{{secKillActiveIdx==index?('color:'+seckill_bg_color):''}}">{{item.desc}}</view>
  12. </view>
  13. </view>
  14. <view class="more" bindtap="goLink" data-link="/lionfish_comshop/moduleA/seckill/list?time={{scekillTimeList[secKillActiveIdx].seckillTime}}">
  15. 更多 <text class="iconfont icon-gengduo"></text>
  16. </view>
  17. </view>
  18. <view class="seckill-list" wx:if="{{secRushList.length}}">
  19. <swiper indicatorDots class="sec-swiper-content" autoplay duration="400" circular indicator-dots="{{false}}" bindchange="scrollSecKillGoodsChange">
  20. <swiper-item wx:for="{{secRushList}}" wx:key="id">
  21. <i-seckill-spu spuItem="{{item}}" begin="{{scekillTimeList[secKillActiveIdx].state==2?1:0}}" needAuth="{{needAuth}}"></i-seckill-spu>
  22. </swiper-item>
  23. </swiper>
  24. <text class="current" wx:if="{{secRushList.length}}">{{secKillGoodsIndex}}/{{secRushList.length}}</text>
  25. </view>
  26. </view>
  27. </template>