Initial commit
This commit is contained in:
52
miniprogram/pages/cart/index.wxml
Normal file
52
miniprogram/pages/cart/index.wxml
Normal file
@@ -0,0 +1,52 @@
|
||||
<!-- 下拉刷新容器 -->
|
||||
<scroll-view
|
||||
class="cart-scroll-view"
|
||||
scroll-y="{{true}}"
|
||||
refresher-enabled="{{true}}"
|
||||
refresher-threshold="{{45}}"
|
||||
refresher-default-style="black"
|
||||
refresher-background="white"
|
||||
refresher-triggered="{{refresherTriggered}}"
|
||||
bindrefresherrefresh="onRefresh"
|
||||
bindrefresherpulling="onRefresherPulling"
|
||||
bindrefresherrestore="onRefresherRestore"
|
||||
bindrefresherabort="onRefresherAbort"
|
||||
>
|
||||
<!-- 分层购物车 -->
|
||||
<block wx:if="{{cartGroupData.isNotEmpty}}">
|
||||
<cart-group
|
||||
store-goods="{{ cartGroupData.storeGoods }}"
|
||||
invalid-good-items="{{ cartGroupData.invalidGoodItems }}"
|
||||
bindselectgoods="onGoodsSelect"
|
||||
bindselectstore="onStoreSelect"
|
||||
bindchangequantity="onQuantityChange"
|
||||
bindchangesku="onSkuChange"
|
||||
bindgocollect="goCollect"
|
||||
bindgoodsclick="goGoodsDetail"
|
||||
bindclearinvalidgoods="clearInvalidGoods"
|
||||
binddelete="onGoodsDelete"
|
||||
/>
|
||||
|
||||
<view class="gap" />
|
||||
</block>
|
||||
<!-- 购物车空态 -->
|
||||
<cart-empty wx:else bind:handleClick="onGotoHome" />
|
||||
|
||||
<!-- 底部占位,避免被底部栏遮挡 -->
|
||||
<view class="bottom-placeholder"></view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 商品小计以及结算按钮 -->
|
||||
<cart-bar
|
||||
wx:if="{{cartGroupData.isNotEmpty}}"
|
||||
is-all-selected="{{cartGroupData.isAllSelected}}"
|
||||
total-amount="{{cartGroupData.totalAmount}}"
|
||||
total-goods-num="{{cartGroupData.selectedGoodsCount}}"
|
||||
total-discount-amount="{{cartGroupData.totalDiscountAmount}}"
|
||||
fixed="{{true}}"
|
||||
bottomHeight="{{110}}"
|
||||
bindhandleSelectAll="onSelectAll"
|
||||
bindhandleToSettle="onToSettle"
|
||||
/>
|
||||
<t-toast id="t-toast" />
|
||||
<t-dialog id="t-dialog" />
|
||||
Reference in New Issue
Block a user