<wrapper>
  <!-- 左右布局 -->
  <view class="style-hot-container">
    <!-- unit -->
    <view class="unit-and-stock">
      <view
        class="unit"
        style="font-size: {{styleConfig.unitFontSize}}"
      >{{goodsItem.specDesc}}</view>
      <!-- 库存 -->
      <view
        class="{{goodsItem.stock ? 'stock' : 'stock red'}}"
        style="font-size: {{styleConfig.stockFontSize}};visibility: {{goodsItem.stockStatus === 'Y' ? 'visible' : 'hidden' }}"
      >库存: {{goodsItem.stock || 0}}</view>
    </view>
    <!-- price -->
    <view class="price-container">
      <view class="price">
        <view class="price-icon">¥</view>
        <view
          class="price-text"
          style="font-size: {{styleConfig.priceFontSize}}"
        >{{goodsItem.sellPrice}}</view>
      </view>
      <view
        class="pre-price"
        a:if="{{goodsItem.price !== goodsItem.sellPrice}}"
      >¥{{goodsItem.price}}</view>
    </view>
  </view>

</wrapper>