59 lines
3.3 KiB
Plaintext
59 lines
3.3 KiB
Plaintext
<view class="pinrow-wrap">
|
|
<i-router-link routerClass="spu-content" url="/eaterplanet_ecommerce/pages/goods/goodsDetail?id={{spuItem.actId}}&type=presale">
|
|
<view class="item-top">
|
|
<!-- 标签 -->
|
|
<view wx:if="{{spuItem.label_info && spuItem.label_info.type==0}}" class='item-tag'>
|
|
<image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
|
|
<view class='tag-name {{spuItem.label_info.len==2?"two-word":""}}'>{{spuItem.label_info.tagcontent}}</view>
|
|
</view>
|
|
<view wx:if="{{spuItem.label_info && spuItem.label_info.type==1}}" class='item-tag' style='background:url({{spuItem.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
|
|
<i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="240"
|
|
iClass="spu-img" lazyLoad="true" loadImage="{{spuItem.bigImg?spuItem.bigImg:spuItem.skuImage}}" width="300"></i-img>
|
|
<view class="spu-play" wx:if="{{spuItem.is_video}}">
|
|
<image class="img" src="../../images/play.png"></image>
|
|
</view>
|
|
<view class="act-end" wx:if="{{spuItem.spuCanBuyNum==0}}">已抢光</view>
|
|
<view class="act-end" wx:elif="{{saleStatus==2}}">已结束</view>
|
|
</view>
|
|
<view class="item-bottom">
|
|
<view class="spu-title">
|
|
<text class='span'>{{spuItem.spuName}}</text>
|
|
</view>
|
|
<view class="spu-desc" wx:if="{{spuItem.spuDescribe}}">
|
|
<text class="em">{{spuItem.spuDescribe}}</text>
|
|
</view>
|
|
<view class="spu-count">
|
|
<text class="pin-tag" style="color:{{skin.color}};border-color:{{skin.color}}">
|
|
<block wx:if="{{spuItem.presale_type==0}}">定金¥{{spuItem.presale_ding_money}}可抵¥{{spuItem.presale_deduction_money>0?spuItem.presale_deduction_money:spuItem.presale_ding_money}}</block>
|
|
<block wx:else>全款预售</block>
|
|
</text>
|
|
<view wx:if="{{spuItem.presale_type==0}}">尾款:¥{{weikuan}}</view>
|
|
<view>预售时间:{{spuItem.presale_ding_time_start}}-{{spuItem.presale_ding_time_end}}</view>
|
|
</view>
|
|
<view class="spu-price">
|
|
<block wx:if="{{spuItem.presale_type==0}}">
|
|
<view class="sale-price">
|
|
<text class='span'>¥{{dingArr[0]}}</text>.{{dingArr[1]}}
|
|
</view>
|
|
<view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
|
|
</block>
|
|
<block wx:else>
|
|
<view class="sale-price">
|
|
<text class='span'>¥{{spuItem.actPrice[0]}}</text>.{{spuItem.actPrice[1]}}
|
|
</view>
|
|
<view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<block wx:if="{{!isPast}}">
|
|
<i-button class="add-cart-disabled" disabled="{{saleStatus==0}}" wx:if="{{saleStatus==0}}">未开始</i-button>
|
|
<i-button class="add-cart-disabled" disabled="{{saleStatus==0}}" wx:elif="{{saleStatus==2}}">已结束</i-button>
|
|
<i-button class="add-cart-disabled" disabled="{{spuItem.spuCanBuyNum==0}}" wx:elif="{{spuItem.spuCanBuyNum==0}}">
|
|
已抢光
|
|
</i-button>
|
|
<view bind:click="goLink" class="add-cart" style="" wx:else>去抢购</view>
|
|
</block>
|
|
<view class="mask" wx:if="{{spuItem.spuCanBuyNum==0||saleStatus!=1?'disabled':''}}"></view>
|
|
</i-router-link>
|
|
</view>
|