menuGoodsItem.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="spu-content" url="/lionfish_comshop/pages/goods/goodsDetail?&id={{spuItem.actId}}">
  6. <view class="item-top">
  7. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="100" iClass="img-class" lazyLoad="true" loadImage="{{spuItem.bigImg?spuItem.bigImg:spuItem.skuImage}}" width="100"></i-img>
  8. <view class="spu-play" wx:if="{{spuItem.is_video}}">
  9. <image class="img" src="../../images/play.png"></image>
  10. </view>
  11. </view>
  12. <view class="item-bottom">
  13. <view class="item-right-top">
  14. <view class="spu-title text-overflow1">
  15. <text class='span'>{{spuItem.spuName}}</text>
  16. </view>
  17. <view class="spu-desc text-overflow1" wx:if="{{spuItem.spuDescribe}}">
  18. <em>{{spuItem.spuDescribe}}</em>
  19. </view>
  20. </view>
  21. <i-vip-price wx:if="{{is_open_vipcard_buy==1&&spuItem.is_take_vipcard==1}}" price="{{spuItem.card_price}}"></i-vip-price>
  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. <block wx:if="{{!isPast}}">
  30. <block wx:if="{{number<=0}}">
  31. <i-button iClass="add-cart" wx:if="{{disabled||spuItem.spuCanBuyNum==0||actEnd}}">
  32. <image class='img' src="../../images/icon-add-shopCart-disabled.png"></image>
  33. </i-button>
  34. <i-button bind:click="openSku" iClass="add-cart" wx:else>
  35. <i-addcart iClass='img' fontsize="28" />
  36. </i-button>
  37. </block>
  38. <i-input-number wx:else addImage="../../images/icon-add-2.png" bind:change="changeNumber" bind:outOfMax="outOfMax" iNumberView="input-number-view" iNumberImg="input-number-img" iClassNumberText="input-number-input" max="{{spuItem.spuCanBuyNum}}" min="0" reduceImage="../../images/icon-reduce-2.png" value="{{number}}" class="col-input-number"></i-input-number>
  39. </block>
  40. <view class="mask" wx:if="{{isPast||disabled||spuItem.spuCanBuyNum==0?'disabled':''}}"></view>
  41. <view class="act-end act-out" wx:if="{{spuItem.spuCanBuyNum==0}}">已抢光</view>
  42. <view class="act-end" wx:elif="{{actEnd}}">已结束</view>
  43. </i-router-link>
  44. </label>