index.wxml 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='flash-sale'>
  3. <view class="saleBox"></view>
  4. <view class='header'>
  5. <image src='{{timeList[active].slide}}'></image>
  6. </view>
  7. <view class="seckillList acea-row row-between-wrapper">
  8. <view class="priceTag">
  9. <image src="/images/priceTag.png"></image>
  10. </view>
  11. <view class='timeLsit'>
  12. <scroll-view class="scroll-view_x" scroll-x scroll-with-animation scroll-left="{{scrollLeft}}" style="width:auto;overflow:hidden;height:106rpx;">
  13. <block wx:for="{{timeList}}" wx:key='index'>
  14. <view bindtap='settimeList' class='item {{active == index?"on":""}}' data-index="{{index}}" data-stop="{{item.stop}}">
  15. <view class='time'>{{item.time}}</view>
  16. <view class="state">{{item.state}}</view>
  17. </view>
  18. </block>
  19. </scroll-view>
  20. </view>
  21. </view>
  22. <!-- <view class='countDown font-color acea-row row-center-wrapper'>
  23. <view wx:if="{{status == 1}}">
  24. <text class='text'>距结束仅剩</text>
  25. <text class='num'>{{countDownHour}}</text>:
  26. <text class='num'>{{countDownMinute}}</text>:
  27. <text class='num'>{{countDownSecond}}</text>
  28. </view>
  29. <view wx:elif="{{status == 2}}"><text class='text'>即将开始</text></view>
  30. <view wx:if="{{status == 0}}"><text class='text'>已结束</text></view>
  31. </view> -->
  32. <view class='list'>
  33. <block wx:for="{{seckillList}}" wx:key='index'>
  34. <view class='item acea-row row-between-wrapper'>
  35. <view class='pictrue' data-id="{{item.id}}" bindtap='goDetails'>
  36. <image src='{{item.image}}'></image>
  37. </view>
  38. <view class='text acea-row row-column-around'>
  39. <view class='name line1' data-id="{{item.id}}" bindtap='goDetails'>{{item.title}}</view>
  40. <view class='money' data-id="{{item.id}}" bindtap='goDetails'>¥
  41. <text class='num font-color'>{{item.price}}</text>
  42. <text class="y_money">¥{{item.ot_price}}</text>
  43. </view>
  44. <view class="limit">限量 <text class="limitPrice">{{item.quota}}件</text></view>
  45. <view class="progress" data-id="{{item.id}}" catchtap='goDetails'>
  46. <view class='bg-reds' style="width:{{item.percent}}%;"></view>
  47. <view class='piece'>已抢{{item.percent}}%</view>
  48. </view>
  49. <!-- <view class="progress" wx:elif="{{status == 2}}" data-id="{{item.id}}" catchtap='goDetails'>
  50. <view class='bg-reds' style="width:0%;"></view>
  51. <view class='piece'>未开始</view>
  52. </view> -->
  53. <!-- <view class="progress" wx:else data-id="{{item.id}}" catchtap='goDetails'>
  54. <view class='bg-reds' style="width:100%;"></view>
  55. <view class='piece'>已抢完</view>
  56. </view> -->
  57. </view>
  58. <view class='grab bg-color' wx:if="{{status == 1}}" data-id="{{item.id}}" bindtap='goDetails'>马上抢</view>
  59. <view class='grab bg-color' wx:elif="{{status == 2}}" data-id="{{item.id}}" catchtap='goDetails'>未开始</view>
  60. <view class='grab bg-color-hui' wx:else data-id="{{item.id}}" catchtap='goDetails'>已结束</view>
  61. </view>
  62. </block>
  63. </view>
  64. </view>
  65. <view class='noCommodity' wx:if="{{seckillList.length == 0 && (page != 1 || active== 0)}}">
  66. <view class='pictrue'><image src='/images/noShopper.png'></image></view>
  67. </view>
  68. <home></home>
  69. <!-- <view class='list'>
  70. <block wx:for="{{seckillList}}" wx:key='index'>
  71. <view class='item acea-row row-between-wrapper'>
  72. <view class='pictrue' wx:if="{{status == 1}}" data-id="{{item.id}}" bindtap='goDetails'><image src='{{item.image}}'></image></view>
  73. <view class='pictrue' wx:else><image src='{{item.image}}'></image></view>
  74. <view class='text acea-row row-column-around'>
  75. <view class='line1' wx:if="{{status == 1}}" data-id="{{item.id}}" bindtap='goDetails'>{{item.title}}</view>
  76. <view class='line1' wx:else>{{item.title}}</view>
  77. <view class='money' wx:if="{{status == 1}}" data-id="{{item.id}}" bindtap='goDetails'>限时价<text class='num font-color'>¥{{item.price}}</text></view>
  78. <view class='money' wx:else>限时价<text class='num font-color'>¥{{item.price}}</text></view>
  79. <view class="progress cart-color" wx:if="{{status == 1}}" data-id="{{item.id}}" catchtap='goDetails'>
  80. <view class='bg-red' style="width:{{item.percent}}%;"></view>
  81. <view class='piece font-color'>仅剩{{item.stock}}件</view>
  82. </view>
  83. <view class="progress cart-color" wx:elif="{{status == 2}}">
  84. <view class='bg-red' style="width:0%;"></view>
  85. <view class='piece font-color'>未开始</view>
  86. </view>
  87. <view class="progress cart-color" wx:else>
  88. <view class='bg-red' style="width:100%;"></view>
  89. <view class='piece font-color'>已抢完</view>
  90. </view>
  91. </view>
  92. <view class='grab bg-color' wx:if="{{status == 1}}" data-id="{{item.id}}" bindtap='goDetails'>马上抢</view>
  93. <view class='grab bg-color' wx:elif="{{status == 2}}">未开始</view>
  94. <view class='grab bg-color' wx:else>已结束</view>
  95. </view>
  96. </block>
  97. </view> -->