<!--packageE/components/good-cell/good-cell.wxml-->
<view class="good-cell-components" catchtap="showGoodDetail">
    <view class="good-cell-left">
      <image src="{{item.thumb}}" alt="" mode="widthFix"/>
    </view>
    <view class="good-cell-right">
      <view class="good-cell-title">{{ item.title }}</view>
      <view>
        <view class="good-cell-sold">已售{{ item.show_sales + item.virtual_sales }}</view>
        <view class="good-cell-price-box">
          <view class="good-cell-price">
            <em style="font-size:10px;">￥</em
            >{{ item.price }}
          </view>
          <view class="good-cell-buy-btn" catchtap>
            <block wx:if="{{!item.has_option}}">
              <view class="good-cell-btn good-cell-btn-1" wx:if="{{!item.total}}" catchtap="addCart">
                <i class="iconfont icon-life-game-plus"></i>
              </view>
              <view class="good-cell-btn-3" wx:if="{{item.total && item.total > 0}}">
                <van-stepper
                  theme="round"
                  value="{{item.total}}"
                  integer
                  disabled="{{item.stock == 0}}"
                  button-size="24px"
                  min="0"
                  max="{{item.stock}}"
                  bind:change="onchange"
                />
              </view>
            </block>
            <view class="good-cell-btn good-cell-btn-2" wx:if="{{item.has_option}}" catchtap="addCart">
              选规格<em wx:if="{{item.total}}">{{ item.total }}</em>
            </view>
          </view>
        </view>
        <view class="good-cell-original-price">￥{{ item.market_price }}</view>
      </view>
    </view>
  </view>
