index.wxml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <view class="special" style="background: {{info.bg_color?info.bg_color:'#f6f6f6f'}};">
  2. <image class='topic-img' src="{{info.special_cover}}" mode="widthFix" wx:if="{{info.special_cover}}"></image>
  3. <view class='like' wx:if="{{list.length}}">
  4. <view class='like-list' wx:if="{{info.show_type==0}}">
  5. <i-router-link routerClass="new-comers-item" url="/lionfish_comshop/pages/goods/goodsDetail?id={{item.actId}}" wx:for="{{list}}" wx:key="id">
  6. <view wx:if="{{item.label_info && item.label_info.type==0}}" class='item-tag'>
  7. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  8. <view class='tag-name {{item.label_info.len==2?"two-word":""}}'>{{item.label_info.tagcontent}}</view>
  9. </view>
  10. <view wx:if="{{item.label_info && item.label_info.type==1}}" class='item-tag' style='background:url({{item.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  11. <i-img defaultImage="../../images/placeholder-refund.png" height="200" width="200" iClass="new-img" loadImage="{{item.skuImage}}"></i-img>
  12. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  13. <view class="act-end" wx:if="{{item.actEnd}}">已结束</view>
  14. <view class="spu-active" wx:if="{{reduction.is_open_fullreduction==1&&item.is_take_fullreduction==1}}">
  15. <view class="tag">满{{reduction.full_money}}减{{reduction.full_reducemoney}}</view>
  16. <view class="tag tag-green" wx:if="{{item.isLimit}}">限购</view>
  17. </view>
  18. <!-- <view class="spu-play" wx:if="{{item.is_video}}">
  19. <image class="img" src="../../images/play.png"></image>
  20. </view> -->
  21. <view class='title'>{{item.spuName}}</view>
  22. <view class='new-bot'>
  23. <view>
  24. <view class='price'>¥{{item.actPrice[0]}}.{{item.actPrice[1]}}</view>
  25. <view class="market-price">¥{{item.marketPrice[0]}}.{{item.marketPrice[1]}}</view>
  26. </view>
  27. <block wx:if="{{item.car_count<=0}}">
  28. <i-button iClass="add-cart disabled" wx:if="{{disabled||item.spuCanBuyNum==0}}">已抢光</i-button>
  29. <i-button iClass="add-cart disabled" wx:elif="{{disabled||item.actEnd}}">已结束</i-button>
  30. <i-button bind:click="openSku" data-idx="{{index}}" iClass="add-cart" wx:else>立即抢购</i-button>
  31. </block>
  32. <i-input-number wx:else addImage="../../images/icon-add-2.png" bind:change="changeNumber" bind:outOfMax="outOfMax" iClass="index-input-number" iClassNumberText="input-number-text" max="{{item.spuCanBuyNum}}" min="0" reduceImage="../../images/icon-reduce-2.png"
  33. value="{{item.car_count}}" idx="{{index}}"></i-input-number>
  34. </view>
  35. </i-router-link>
  36. </view>
  37. <view class="spu" wx:elif="{{info.show_type==1}}">
  38. <i-router-link routerClass="spu-content" url="/lionfish_comshop/pages/goods/goodsDetail?&id={{item.actId}}" wx:for="{{list}}" wx:key="id">
  39. <view class="item-top">
  40. <view wx:if="{{item.label_info && item.label_info.type==0}}" class='item-tag'>
  41. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  42. <view class='tag-name {{item.label_info.len==2?"two-word":""}}'>{{item.label_info.tagcontent}}</view>
  43. </view>
  44. <view wx:if="{{item.label_info && item.label_info.type==1}}" class='item-tag' style='background:url({{item.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  45. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="400" iClass="img-class" lazyLoad="true" loadImage="{{item.bigImg?item.bigImg:item.skuImage}}" width="710"></i-img>
  46. <view class="spu-active" wx:if="{{reduction.is_open_fullreduction==1&&item.is_take_fullreduction==1}}">
  47. <view class="tag">满{{reduction.full_money}}减{{reduction.full_reducemoney}}</view>
  48. <view class="tag tag-green" wx:if="{{item.isLimit}}">限购</view>
  49. </view>
  50. <!-- <view class="spu-play" wx:if="{{item.is_video}}">
  51. <image class="img" src="../../images/play.png"></image>
  52. </view> -->
  53. </view>
  54. <view class="item-bottom">
  55. <view class="item-right-top">
  56. <view class="spu-title">
  57. <text class='span'>{{item.spuName}}</text>
  58. </view>
  59. <view class="spu-desc" wx:if="{{item.spuDescribe}}">
  60. <em>{{item.spuDescribe}}</em>
  61. </view>
  62. </view>
  63. <view class="spu-price">
  64. <view class="sale-price">
  65. <text class='span'>¥{{item.actPrice[0]}}</text>.{{item.actPrice[1]}}
  66. </view>
  67. <view class="market-price">¥{{item.marketPrice[0]}}.{{item.marketPrice[1]}}</view>
  68. </view>
  69. </view>
  70. <block wx:if="{{item.car_count<=0}}">
  71. <i-button iClass="add-cart-disabled" disabled="{{item.spuCanBuyNum==0}}" wx:if="{{item.spuCanBuyNum==0}}">
  72. 已抢光
  73. </i-button>
  74. <i-button iClass="add-cart-disabled" disabled="{{item.actEnd}}" wx:elif="{{item.actEnd}}">
  75. 已结束
  76. </i-button>
  77. <i-button bind:click="openSku" data-idx="{{index}}" iClass="add-cart" wx:else>
  78. 立即抢购
  79. </i-button>
  80. </block>
  81. <i-input-number wx:else addImage="../../images/icon-add-2.png" bind:change="changeNumber" bind:outOfMax="outOfMax" iClass="index-input-number" iClassNumberText="input-number-text" max="{{item.spuCanBuyNum}}" min="0" reduceImage="../../images/icon-reduce-2.png"
  82. value="{{item.car_count}}" idx="{{index}}"></i-input-number>
  83. <view class="mask" wx:if="{{item.spuCanBuyNum==0?'disabled':''}}"></view>
  84. <view class="act-end act-out" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  85. <view class="act-end act-out" wx:if="{{item.actEnd}}">已结束</view>
  86. </i-router-link>
  87. </view>
  88. <view class="spu col-3" wx:elif="{{info.show_type==2}}">
  89. <i-router-link routerClass="w250" url="/lionfish_comshop/pages/goods/goodsDetail?id={{item.actId}}" wx:for="{{list}}" wx:key="id">
  90. <!-- 标签 -->
  91. <view wx:if="{{item.label_info && item.label_info.type==0}}" class='item-tag'>
  92. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  93. <view class='tag-name {{item.label_info.len==2?"two-word":""}}'>{{item.label_info.tagcontent}}</view>
  94. </view>
  95. <view wx:if="{{item.label_info&&item.label_info.type==1}}" class='item-tag' style='background:url({{item.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  96. <!-- 图片 -->
  97. <i-img defaultImage="../../images/placeholder-refund.png" height="236" width="236" iClass="new-img" loadImage="{{item.skuImage}}"></i-img>
  98. <!-- 限购 -->
  99. <view class="spu-active" wx:if="{{reduction.is_open_fullreduction==1&&item.is_take_fullreduction==1}}">
  100. <view class="tag">满{{reduction.full_money}}减{{reduction.full_reducemoney}}</view>
  101. <view class="tag tag-green" wx:if="{{spuItem.isLimit}}">限购</view>
  102. </view>
  103. <view class="spu-play" wx:if="{{item.is_video}}">
  104. <image class="img" src="../../images/play.png"></image>
  105. </view>
  106. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  107. <view class='title'>{{item.spuName}}</view>
  108. <i-vip-price wx:if="{{is_open_vipcard_buy==1&&item.is_take_vipcard==1}}" price="{{item.card_price}}" class="vip"></i-vip-price>
  109. <i-vip-price wx:elif="{{canLevelBuy&&item.is_mb_level_buy==1}}" type="1" price="{{item.levelprice}}" class="vip"></i-vip-price>
  110. <view class='new-bot'>
  111. <view class='price'>¥{{item.actPrice[0]}}.{{item.actPrice[1]}}</view>
  112. <i-button iClass="add-cart" wx:if="{{disabled||item.spuCanBuyNum==0||actEnd}}">
  113. <image class='img' src="../../images/icon-add-shopCart-disabled.png"></image>
  114. </i-button>
  115. <i-button bind:click="openSku" iClass="add-cart" data-idx="{{index}}" wx:else>
  116. <i-addcart iClass="addbtn" fontsize="24" />
  117. </i-button>
  118. </view>
  119. </i-router-link>
  120. </view>
  121. </view>
  122. <view class="none-rush-list" wx:if="{{noData}}">
  123. <image class="img-block" src="../../images/icon-index-empty.png"></image>
  124. <view class="h1">暂时没有商品</view>
  125. <view class="h2">我们正在为您准备更优惠的商品</view>
  126. </view>
  127. <i-aside-btn showShare="{{ishowShareBtn==1}}" showHome="{{true}}"></i-aside-btn>
  128. <i-cart-btn cartNum="{{cartNum}}" showHome="{{true}}"></i-cart-btn>
  129. </view>
  130. <i-new-auth needAuth="{{needAuth&&showAuthModal}}" bind:authSuccess="authSuccess" bind:cancel="authModal"></i-new-auth>
  131. <sku visible="{{visible}}" skuList="{{skuList}}" cur_sku_arr="{{cur_sku_arr}}" bind:cancel="closeSku" sku_val="{{sku_val}}" sku="{{sku}}" goodsid="{{addCar_goodsid}}" bind:changeCartNum="changeCartNum" bind:vipModal="vipModal"></sku>
  132. <i-vip-modal visible="{{showVipModal}}" imgUrl="{{pop_vipmember_buyimage}}" />