<view class="product-card" bindtap="onTap">
  <image class="product-image" src="{{product.image}}" mode="aspectFill" lazy-load="{{true}}" binderror="onImageError" />
  <view class="product-info">
    <view class="product-name text-ellipsis-2">{{product.name}}</view>
    <view wx:if="{{product.subtitle}}" class="product-subtitle text-ellipsis">{{product.subtitle}}</view>
    <view class="product-bottom">
      <view class="product-price">
        <text class="price-symbol">¥</text>
        <text class="price-value">{{price}}</text>
      </view>
      <view wx:if="{{product.sales != undefined}}" class="product-sales">已售{{product.sales}}</view>
    </view>
    <view wx:if="{{product.original_price && product.original_price > product.price}}" class="product-original">
      原价 ¥{{origPrice}}
    </view>
    <view wx:if="{{showTag && product.tag}}" class="product-tag">{{product.tag}}</view>
  </view>
</view>
