productListCell.wxml
1.52 KB
<!--component/productListCell.wxml-->
<view class="product" style="width:{{listWidth}}px;margin-left:{{listMarginHorizontal}}px" bindtap="productCellTapped" data-product-skn="{{item.product_skn}}">
<image mode="aspectFit" src="{{item.default_images}}" style="width:{{listImageWidth}}px;height:{{listImageHeight}}px;margin-top:{{listImageTop}}px;"/>
<!-- 促销类标签样式如下: -->
<!-- <view class='depositContainer'>
<image mode="aspectFit" src="{{item.default_images}}" style="width:{{listImageWidth}}px;height:{{listImageHeight}}px;" />
<view class='deposit' style="width:{{listImageWidth}}px; height: 40rpx;">
<image class='depositImage' src='../images/product_bottom_deposit_icon@3x.png' ></image>
<view class='depositText'>
<text class='title'></text>
<text class='detail'></text>
</view>
</view>
</view> -->
<text class="productTitle">{{item.product_name}}</text>
<view class='bottomContainerView'>
<view class="priceContainer">
<text class="price1" style="color:{{item.showOriginPrice ? '#d0021b' : '#444444'}}">{{item.salePriceStr}}</text>
<text class="price2">{{item.showOriginPrice ? item.originPriceStr : ''}}</text>
</view>
<!-- 加入购物车按钮需要上层传入是否展示 部分商品由于特殊性 在商品列表不展示购物车按钮 -->
<image wx:if="{{showAddShopCartBtn && (item.is_shop_cart_add == 'Y')}}" class='addToShopCartImage' src='images/jrgwc@2x.png' catchtap='addToShopCartAction' data-item='{{item}}'></image>
</view>
</view>