
<!-- 分层购物车 -->
<block wx:if="{{cartItems.length !== 0}}">
  
  <cart-group cartItems="{{cartItems}}" bindselectgoods="onGoodsSelect" bindselectstore="onStoreSelect" bindchangequantity="onQuantityChange" bindgocollect="goCollect" bindgoodsclick="goGoodsDetail" bindclearinvalidgoods="clearInvalidGoods" binddelete="onGoodsDelete" />
  <view class="gap" />
  <!-- 商品小计以及结算按钮 -->
  <cart-bar is-all-selected="{{allSelected}}" total-amount="{{totalAmount * 100}}" total-goods-num="{{selectedCartItemNum}}" fixed="{{true}}" bottomHeight="{{112}}" bindhandleSelectAll="onSelectAll" bindhandleToSettle="onToSettle" />

 <!-- 广告图显示区域 -->
 <view class="cart-advertisement"  >
    <t-image src="https://via.placeholder.com/300x150" t-class="ad-image" mode="aspectFill" />
  </view>

</block>
<!-- 购物车空态 -->
<cart-empty wx:else bind:handleClick="onGotoHome" />
<t-toast id="t-toast" />
<t-dialog id="t-dialog" />
<view wx:if="{{loading}}">
  <loading-dialog show="{{loading}}" />
</view>
