list.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. <view class="wrap">
  2. <view class="fixed-top">
  3. <scroll-view class="scroll-wrapper" scroll-x scroll-with-animation="true" scroll-into-view="item{{currentTab < 4 ? 0 : currentTab - 3}}" style="background:{{seckill_bg_color}}" wx:if="{{scekillTimeList.length}}">
  4. <view class="navigate-item {{currentTab===index?'active':''}}" id="item{{index}}" wx:for="{{scekillTimeList}}" wx:key="index" data-index="{{index}}" bindtap="handleClick">
  5. <view class="names">{{item.timeStr}}</view>
  6. <text class="desc" style="{{currentTab==index?('color:'+seckill_bg_color):''}}">{{item.desc}}</text>
  7. </view>
  8. </scroll-view>
  9. <!-- 倒计时 -->
  10. <view class="counttime i-flex i-flex-spb">
  11. <view style="color: {{seckill_bg_color?seckill_bg_color:'#ea474e;'}}">限时抢购 先到先得</view>
  12. <view>
  13. <i-count-down countdownClass="count-down" itemClass="item-time" showDay="true" target="{{endTime}}" clearTimer="{{clearTimer}}" wx:if="{{scekillTimeList[currentTab].state>0}}" bind:callback="endCurSeckill">
  14. <span class="count-down-left-text">距离本场{{scekillTimeList[currentTab].state==1?'结束':'开始'}}</span>
  15. </i-count-down>
  16. </view>
  17. </view>
  18. </view>
  19. <!-- 列表 -->
  20. <view class="list bg-f">
  21. <view class="list-item" wx:for="{{list}}" wx:key="id">
  22. <i-seckill-spu spuItem="{{item}}" needAuth="{{needAuth}}" theme="{{2}}" begin="{{scekillTimeList[currentTab].state==2?1:0}}"></i-seckill-spu>
  23. </view>
  24. <i-empty wx:if="{{showEmpty}}">暂时没有商品</i-empty>
  25. </view>
  26. </view>
  27. <i-tabbar currentIdx='2' cartNum='{{cartNum}}' wx:if="{{showTabbar}}" class="tabbar {{isIpx?'pb20':''}}" />
  28. <i-new-auth needAuth="{{needAuth&&showAuthModal}}" bind:authSuccess="authSuccess" bind:cancel="authModal" needPosition="{{true}}"></i-new-auth>