solitaireGood.wxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <view class="spu" wx:if="{{type==0}}">
  2. <view class="thumb">
  3. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="160" width="160" iClass="img-class" lazyLoad="true" loadImage="{{spuItem.skuImage}}"></i-img>
  4. <view class="mask" wx:if="{{isPast||disabled||spuItem.spuCanBuyNum==0?'disabled':''}}"></view>
  5. <view class="act-end" wx:if="{{spuItem.spuCanBuyNum==0}}">已抢光</view>
  6. <view class="act-end" wx:elif="{{actEnd}}">已结束</view>
  7. </view>
  8. <view class="item-m">
  9. <view class="spu-title">
  10. <text class='span'>{{spuItem.spuName}}</text>
  11. </view>
  12. <view class="spu-desc" wx:if="{{spuItem.spuDescribe}}">
  13. <text class="em">{{spuItem.spuDescribe}}</text>
  14. </view>
  15. <view class="spu-price">
  16. <view class="sale-price">
  17. <text class='span'>¥{{spuItem.actPrice[0]}}.{{spuItem.actPrice[1]}}</text>
  18. </view>
  19. <view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
  20. </view>
  21. </view>
  22. <view class="item-r" wx:if="{{hasIpt}}">
  23. <view class="count">已售{{spuItem.soldNum}}</view>
  24. <block wx:if="{{state==1}}">
  25. <view class="num" style="margin-top:auto;">
  26. <!-- 单规格 -->
  27. <block wx:if="{{specs==0}}">
  28. <!-- wx:if="{{number>0}}" -->
  29. <i-input-number value="{{number}}" bind:change="changeNumber" bind:outOfMax="outOfMax" addImage="../../images/icon-add-2.png" reduceImage="../../images/icon-reduce-2.png" max="{{spuItem.spuCanBuyNum}}" iClassNumberText="input-number-text"></i-input-number>
  30. <!-- <view class="addBtn" wx:else>
  31. <image class="img" src="../../images/icon-add-shopCart-disabled.png" wx:if="{{disabled||spuItem.spuCanBuyNum==0}}"></image>
  32. <image class="img" src="../../images/icon-add-shopCart.png" wx:else catchtap="openSku"></image>
  33. </view> -->
  34. </block>
  35. <view wx:else>
  36. <!-- 多规格 -->
  37. <view wx:if="{{number>0}}" class="i-flex-center">
  38. <view class="addBtn" catchtap="showTip">
  39. <image class="img" src="../../images/icon-input-reduce.png"></image>
  40. </view>
  41. <view class="cartNum">{{number|0}}</view>
  42. <view class="addBtn" wx:if="{{spuItem.spuCanBuyNum==0}}">
  43. <image class="img" src="../../images/icon-spu-add-disabled.png"></image>
  44. </view>
  45. <view class="addBtn" catchtap="openSku" wx:else>
  46. <image class="img" src="../../images/icon-spu-add.png"></image>
  47. </view>
  48. </view>
  49. <view class="addBtn" wx:else>
  50. <view class="optBtn disabled" wx:if="{{disabled||spuItem.spuCanBuyNum==0}}">选购</view>
  51. <view class="optBtn" wx:else catchtap="openSku">选购</view>
  52. <!-- <image class="img" src="../../images/icon-add-shopCart-disabled.png" wx:if="{{disabled||spuItem.spuCanBuyNum==0}}"></image>
  53. <image class="img" src="../../images/icon-add-shopCart.png" wx:else catchtap="openSku"></image> -->
  54. </view>
  55. </view>
  56. </view>
  57. </block>
  58. </view>
  59. </view>
  60. <!-- 订单列表 -->
  61. <view class="spu" wx:elif="{{type==3}}">
  62. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="160" width="160" iClass="img-class" lazyLoad="true" loadImage="{{spuItem.goods_images}}"></i-img>
  63. <view class="item-m">
  64. <view class="spu-title">
  65. <text class='span'>{{spuItem.name}}</text>
  66. </view>
  67. <view class="spu-desc">
  68. <text class="em"><block wx:if="{{spuItem.option_str}}">{{spuItem.option_str}} </block>x{{spuItem.quantity}}</text>
  69. </view>
  70. <view class="spu-price">
  71. <view class="sale-price">
  72. <text class='span'>¥{{spuItem.price}}</text>
  73. </view>
  74. <view class="market-price">¥{{spuItem.orign_price}}</view>
  75. </view>
  76. </view>
  77. <view class="item-r" wx:if="{{hasIpt}}">
  78. <view class="count">已售{{spuItem.soldNum}}</view>
  79. <block wx:if="{{state==1}}">
  80. <view class="num" style="margin-top:auto;">
  81. <!-- 单规格 -->
  82. <block wx:if="{{specs==0}}">
  83. <i-input-number wx:if="{{number>0}}" value="{{number}}" bind:change="changeNumber" bind:outOfMax="outOfMax" addImage="../../images/icon-add-2.png" reduceImage="../../images/icon-reduce-2.png" max="{{spuItem.spuCanBuyNum}}" iClassNumberText="input-number-text"></i-input-number>
  84. <view class="addBtn" wx:else>
  85. <image class="img" src="../../images/icon-add-shopCart-disabled.png" wx:if="{{disabled||spuItem.spuCanBuyNum==0}}"></image>
  86. <image class="img" src="../../images/icon-add-shopCart.png" wx:else catchtap="openSku"></image>
  87. </view>
  88. </block>
  89. <view wx:else>
  90. <!-- 多规格 -->
  91. <view wx:if="{{number>0}}" class="i-flex-center">
  92. <view class="addBtn" catchtap="showTip">
  93. <image class="img" src="../../images/icon-input-reduce.png"></image>
  94. </view>
  95. <view class="cartNum">{{number|0}}</view>
  96. <view class="addBtn" catchtap="openSku">
  97. <image class="img" src="../../images/icon-spu-add.png"></image>
  98. </view>
  99. </view>
  100. <view class="addBtn" wx:else>
  101. <image class="img" src="../../images/icon-add-shopCart-disabled.png" wx:if="{{disabled||spuItem.spuCanBuyNum==0}}"></image>
  102. <image class="img" src="../../images/icon-add-shopCart.png" wx:else catchtap="openSku"></image>
  103. </view>
  104. </view>
  105. </view>
  106. </block>
  107. </view>
  108. </view>
  109. <view class="spu" wx:else>
  110. <view class="thumb">
  111. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="160" width="160" iClass="img-class" lazyLoad="true" loadImage="{{spuItem.thumb}}"></i-img>
  112. <view class="mask" wx:if="{{spuItem.is_over==1||disabled||spuItem.total==0?'disabled':''}}"></view>
  113. <view class="act-end" wx:if="{{spuItem.total==0}}">已抢光</view>
  114. <view class="act-end" wx:elif="{{spuItem.is_over==1}}">已结束</view>
  115. </view>
  116. <view class="item-m" style="width:0;">
  117. <view class="spu-title">
  118. <text class='span'>{{spuItem.goodsname}}</text>
  119. </view>
  120. <view class="spu-desc" wx:if="{{spuItem.subtitle}}">
  121. <text class="em">{{spuItem.subtitle}}</text>
  122. </view>
  123. <view class="spu-price">
  124. <view class="sale-price">
  125. <text class='span'>¥{{spuItem.price}}</text>
  126. </view>
  127. <view class="market-price">¥{{spuItem.productprice}}</view>
  128. </view>
  129. </view>
  130. <view class="item-r">
  131. <view class="btn" wx:if="{{type==1}}" bindtap="handleSelect">选择</view>
  132. <view class="btn" wx:elif="{{type==2}}" bindtap="handleDelete">删除</view>
  133. </view>
  134. </view>