| | |
| | | <!-- 分层购物车 --> |
| | | <block wx:if="{{cartGroupData.isNotEmpty}}"> |
| | | <cart-group |
| | | store-goods="{{ cartGroupData.storeGoods }}" |
| | | invalid-good-items="{{ cartGroupData.invalidGoodItems }}" |
| | | bindselectgoods="onGoodsSelect" |
| | | bindselectstore="onStoreSelect" |
| | | bindchangequantity="onQuantityChange" |
| | | bindgocollect="goCollect" |
| | | bindgoodsclick="goGoodsDetail" |
| | | bindclearinvalidgoods="clearInvalidGoods" |
| | | binddelete="onGoodsDelete" |
| | | /> |
| | | |
| | | <view class="gap" /> |
| | | <!-- 商品小计以及结算按钮 --> |
| | | <cart-bar |
| | | is-all-selected="{{cartGroupData.isAllSelected}}" |
| | | total-amount="{{cartGroupData.totalAmount}}" |
| | | total-goods-num="{{cartGroupData.selectedGoodsCount}}" |
| | | total-discount-amount="{{cartGroupData.totalDiscountAmount}}" |
| | | fixed="{{true}}" |
| | | bottomHeight="{{112}}" |
| | | bindhandleSelectAll="onSelectAll" |
| | | bindhandleToSettle="onToSettle" |
| | | /> |
| | | </block> |
| | | <!-- 购物车空态 --> |
| | | <cart-empty wx:else bind:handleClick="onGotoHome" /> |
| | | <t-toast id="t-toast" /> |
| | | <t-dialog id="t-dialog" /> |
| | | <!--pages/cart/index.wxml--> |
| | | <text>购物车</text> |
| | | <t-swipe-cell> |
| | | <t-cell bordered="{{false}}" title="左滑大列表" description="一段很长很长的内容文字" note="辅助信息" image="https://tdesign.gtimg.com/mobile/demos/avatar1.png" /> |
| | | <view slot="right" class="btn delete-btn" bind:tap="onDelete">删除</view> |
| | | </t-swipe-cell> |