home.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="special">
  2. <image class='topic-img' src="{{info.banner}}" mode="aspectFill" wx:if="{{info.banner}}"></image>
  3. <view class='like'>
  4. <view class='like-list' wx:if="{{list.length}}">
  5. <i-router-link routerClass="new-comers-item" url="/lionfish_comshop/pages/goods/goodsDetail?id={{item.actId}}" wx:for="{{list}}" wx:key="actId">
  6. <i-img defaultImage="../../images/placeholder-refund.png" height="200" width="180" iClass="new-img" loadImage="{{item.skuImage}}"></i-img>
  7. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  8. <view class='title'>{{item.spuName}}</view>
  9. <view class='new-bot'>
  10. <view class='price'>¥{{item.actPrice[0]}}.{{item.actPrice[1]}}</view>
  11. <block wx:if="{{item.car_count<=0}}">
  12. <i-button iClass="add-cart disabled" wx:if="{{disabled||item.spuCanBuyNum==0}}">已抢光</i-button>
  13. <view catchtap="openSku" data-idx="{{index}}" class="add-cart" style="background:{{skin.color}}" wx:else>立即抢购</view>
  14. </block>
  15. <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" value="{{item.car_count}}" idx="{{index}}"></i-input-number>
  16. </view>
  17. </i-router-link>
  18. </view>
  19. <view class="none-rush-list" wx:if="{{noData}}">
  20. <image class="img-block" src="../../images/icon-index-empty.png"></image>
  21. <view class="h1">暂时没有商品</view>
  22. <view class="h2">我们正在为您准备更优惠的商品</view>
  23. </view>
  24. </view>
  25. <i-aside-btn showShare="{{true}}" showHome="{{true}}"></i-aside-btn>
  26. <i-cart-btn cartNum="{{cartNum}}" showHome="{{true}}"></i-cart-btn>
  27. </view>
  28. <i-new-auth needAuth="{{needAuth&&showAuthModal}}" bind:authSuccess="authSuccess" bind:cancel="authModal" navBackUrl="{{navBackUrl}}"></i-new-auth>
  29. <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>
  30. <i-vip-modal visible="{{showVipModal}}" imgUrl="{{pop_vipmember_buyimage}}" />