Files
JayuCloud/WeChatProgram/components/product-card/product-card.wxml
T

22 lines
1013 B
Plaintext

<view class="product-card" bindtap="handleTap">
<view class="product-cover-wrap">
<image class="product-cover" src="{{item.coverUrl}}" mode="aspectFill"></image>
<view class="product-cover-shadow"></view>
<view wx:if="{{showMeta && item.metaText}}" class="product-meta-badge">{{item.metaText}}</view>
</view>
<view class="product-body">
<view class="product-title">{{item.displayTitle}}</view>
<view wx:if="{{!showMeta && item.metaText}}" class="product-meta">{{item.metaText}}</view>
<view wx:if="{{item.tagsPreview && item.tagsPreview.length}}" class="product-tags">
<text wx:for="{{item.tagsPreview}}" wx:key="*this" class="tag-item">{{item}}</text>
</view>
<view class="product-footer">
<view class="product-price-wrap">
<text class="product-price">{{item.priceText}}</text>
<text wx:if="{{showStats}}" class="product-stats">{{item.statsText}}</text>
</view>
<view class="product-arrow">查看</view>
</view>
</view>
</view>