<view class="sc-goods theme-goods">
  <!-- 瀑布流特殊处理 -->
  <block wx:if="{{ layout === 1 && sizeType === 1 }}">
    <view class="sc-goods__container sc-goods__container--waterfall">
      <view
        wx:for="{{ waterfallGoodsList }}"
        wx:for-item="listCols"
        wx:for-index="listIndex"
        wx:key="{{ listIndex }}-{{ listCols.length }}"
        class="sc-goods__items">
        <block
          wx:for="{{ listCols }}"
          wx:for-item="goodsInfo"
          wx:for-index="goodsIndex"
          wx:key="{{ listIndex }}-{{ goodsIndex }}-{{ goodsInfo.alias }}">
          <goods-item
            item-index="{{ goodsIndex }}"
            goods-info="{{ goodsInfo }}"
            layout="{{ layout }}"
            size-type="{{ sizeType }}"
            buy-button-type="{{ buyButtonType }}"
            buy-button-express="{{ buyBtnExpress }}"
            show-title="{{ showTitle }}"
            show-sub-title="{{ showSubTitle }}"
            show-price="{{ showPrice }}"
            show-buy-button="{{ showBuyButton }}"
            show-corner-mark="{{ showCornerMark }}"
            corner-mark-type="{{ cornerMarkType }}"
            corner-mark-image="{{ cornerMarkImage }}"
            image-ratio="{{ imageRatio }}"
            image-fill-style="{{ imageFillStyle }}"
            button-text="{{ buttonText }}"
            bindbuy="handleGoodsBuy"
            bindgoosclick="handleGoodsClick"
          />
        </block>
      </view>
    </view>
  </block>

  <!-- 其余直接循环 -->
  <block wx:else>
    <view
      class="sc-goods__container {{ containerClass }}">
      <view
        wx:for="{{ list }}"
        wx:for-index="goodsIndex"
        wx:for-item="goodsInfo"
        wx:key="{{ goodsIndex }}-{{ goodsInfo.alias }}"
        class="sc-goods__wrapper {{ goodsInfo.itemClass }}">
        <goods-item
          goods-item-index="{{ goodsIndex }}"
          goods-info="{{ goodsInfo }}"
          layout="{{ layout }}"
          size-type="{{ sizeType }}"
          show-title="{{ showTitle }}"
          show-sub-title="{{ showSubTitle }}"
          show-price="{{ showPrice }}"
          show-buy-button="{{ showBuyButton }}"
          buy-button-type="{{ buyButtonType }}"
          buy-button-express="{{ buyBtnExpress }}"
          show-corner-mark="{{ showCornerMark }}"
          corner-mark-type="{{ cornerMarkType }}"
          corner-mark-image="{{ cornerMarkImage }}"
          image-ratio="{{ imageRatio }}"
          image-fill-style="{{ imageFillStyle }}"
          button-text="{{ buttonText }}"
          item-index="{{ itemIndex }}"
          bindbuy="handleGoodsBuy"
          bindgoosclick="handleGoodsClick"
        />
      </view>
    </view>
  </block>
</view>
