48 lines
2.6 KiB
Plaintext
48 lines
2.6 KiB
Plaintext
<template name="pinrow">
|
|
<!-- 拼团 -->
|
|
<view class='pin-spec' wx:if="{{pinList.list&&pinList.list.length&&pinList.show==2}}">
|
|
<image class="pin-spec-img" mode="widthFix" src="{{pinList.img}}" wx:if="{{pinList.img}}" bindtap="goLink" data-link="/eaterplanet_ecommerce/moduleA/pin/index"></image>
|
|
<view class="pinrow-wrap">
|
|
<view class="border-bottom" wx:for="{{pinList.list}}" wx:key="id">
|
|
<i-router-link routerClass="spu-content" url="/eaterplanet_ecommerce/moduleA/pin/goodsDetail?&id={{item.actId}}">
|
|
<view class="item-top">
|
|
<i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="240" iClass="spu-img" lazyLoad="true" loadImage="{{item.bigImg?item.bigImg:item.skuImage}}" width="300"></i-img>
|
|
<view class="spu-play" wx:if="{{item.is_video}}"><image class="img" src="../../images/play.png"></image></view>
|
|
</view>
|
|
<view class="item-bottom">
|
|
<view class="spu-title">
|
|
<text class='span'>{{item.spuName}}</text>
|
|
</view>
|
|
<view class="spu-desc" wx:if="{{item.spuDescribe}}">
|
|
<text class="em">{{item.spuDescribe}}</text>
|
|
</view>
|
|
<view class="spu-count">
|
|
<text class="pin-tag" style="color:{{skin.color}};border-color:{{skin.color}}">{{item.pin_count}}人团</text>
|
|
<view>已拼{{item.soldNum}}{{goods_sale_unit}}</view>
|
|
</view>
|
|
<view class="spu-price">
|
|
<view class="sale-price">
|
|
<text class='span'>¥{{item.actPrice[0]}}</text>.{{item.actPrice[1]}}
|
|
</view>
|
|
<view class="market-price">¥{{item.marketPrice[0]}}.{{item.marketPrice[1]}}</view>
|
|
</view>
|
|
</view>
|
|
<block wx:if="{{!isPast}}">
|
|
<i-button class="add-cart-disabled" disabled="{{item.spuCanBuyNum==0}}" wx:if="{{item.spuCanBuyNum==0}}">
|
|
已抢光
|
|
</i-button>
|
|
<i-button bind:click="goLink" iClass="add-cart" class="add-cart" style="background: linear-gradient(90deg, {{skin.color}} 0%, {{skin.light}} 100%);" wx:else>
|
|
去拼团
|
|
</i-button>
|
|
</block>
|
|
<view class="mask" wx:if="{{spuItem.spuCanBuyNum==0?'disabled':''}}"></view>
|
|
<view class="act-end act-out" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
|
|
</i-router-link>
|
|
</view>
|
|
</view>
|
|
<view class="pin-more" bindtap="goLink" data-link="/eaterplanet_ecommerce/moduleA/pin/index">
|
|
查看全部 <text class="iconfont icon-youjiantou fsz-22"></text>
|
|
</view>
|
|
</view>
|
|
</template>
|