seckillItem.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <form bindsubmit="submit2" reportSubmit="true">
  2. <button hidden formType="submit" id="formId"></button>
  3. </form>
  4. <label class="spu" for="formId">
  5. <i-router-link routerClass="seckill-item" url="/lionfish_comshop/pages/goods/goodsDetail?id={{spuItem.actId}}">
  6. <view class='img'>
  7. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="120" iClass="img-class" lazyLoad="true" loadImage="{{spuItem.skuImage}}" width="120"></i-img>
  8. </view>
  9. <view class="item-right">
  10. <view class="item-right-top">
  11. <view class="title">{{spuItem.spuName}}</view>
  12. <view class="desc" wx:if="{{spuItem.spuDescribe}}">{{spuItem.spuDescribe}}</view>
  13. </view>
  14. <view class="progress-box" wx:if="{{theme==0}}">
  15. <progress class="progress-wrap" percent="{{precent}}" stroke-width="10" border-radius="5" backgroundColor="#fba29b" activeColor="#ff5041" />
  16. <view>已抢{{spuItem.soldNum}}{{goods_sale_unit}}</view>
  17. </view>
  18. <view class="progress-box flex" wx:else>
  19. <progress class="progress-wrap" percent="{{precent}}" stroke-width="10" border-radius="5" backgroundColor="#fba29b" activeColor="#ff5041" />
  20. <view>仅剩{{spuItem.spuCanBuyNum}}{{goods_sale_unit}}</view>
  21. </view>
  22. <view class="spu-price">
  23. <view class="sale-price">
  24. <text class='span'>¥{{spuItem.actPrice[0]}}</text>.{{spuItem.actPrice[1]}}
  25. </view>
  26. <view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
  27. </view>
  28. </view>
  29. <view class="add-cart disabled" wx:if="{{spuItem.spuCanBuyNum==0}}">已抢光</view>
  30. <view class="add-cart disabled" wx:elif="{{begin==1}}">即将开始</view>
  31. <view class="act-end" wx:elif="{{actEnd}}">已结束</view>
  32. <i-button bind:click="openSku" iClass="add-cart" style="background: linear-gradient(90deg, {{skin.color}} 0%, {{skin.light}} 100%);" wx:else>马上抢</i-button>
  33. <view class="mask" wx:if="{{isPast||disabled||spuItem.spuCanBuyNum==0?'disabled':''}}"></view>
  34. <view class="act-end act-out" wx:if="{{spuItem.spuCanBuyNum==0}}">已抢光</view>
  35. <view class="act-end" wx:elif="{{actEnd}}">已结束</view>
  36. </i-router-link>
  37. </label>