| | |
| | | <!-- 分层购物车 --> |
| | | <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="outsideContentBox"> |
| | | <!-- <checkbox-group bindchange="HandelItemChange"> --> |
| | | <t-swipe-cell wx:for="{{shoppingCartData}}" wx:key="index" wx:for-item="item" wx:for-index="index"> |
| | | <!-- <view class="contentBox"> --> |
| | | <!-- <view class="contentCheckbox"> |
| | | <checkbox value="{{item.id}}" checked="{{item.checked}}"></checkbox> |
| | | </view> --> |
| | | <view class="itemWarp"> |
| | | <t-cell bordered="{{false}}" title="{{item.productMonWithLinkDto.product.name}}" description="¥{{item.saleMethod.price}}"> |
| | | <view slot="left-icon" class="left-icon"> |
| | | <view class="contentCheckbox"> |
| | | <t-checkbox icon="rectangle" value=" {{item.id}}" data-item="{{item}}" checked="{{item.checked}}" bindchange="HandelItemChange" /> |
| | | </view> |
| | | <view class="left-image"> |
| | | <image src="{{item.imgUrl}}" class="imageStyle" mode="" /> |
| | | </view> |
| | | </view> |
| | | </t-cell> |
| | | </view> |
| | | <!-- </view> --> |
| | | <view slot="right" class="btn delete-btn" bind:tap="onDelete" data-item="{{item}}">删除</view> |
| | | </t-swipe-cell> |
| | | <!-- </checkbox-group> --> |
| | | </view> |
| | | |
| | | <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" /> |
| | | <view class="bottomBox"> |
| | | <view class="checkGroupBox"> |
| | | <checkbox-group bindchange="bottomChange"> |
| | | <checkbox value="全选" checked="{{checkAll}}">全选</checkbox> |
| | | </checkbox-group> |
| | | </view> |
| | | <view class="settlementBox"> |
| | | <view class="totalPrice">总价:<text class="totalPriceText">¥{{totalPrice}}</text></view> |
| | | <view class="buttonBox"> |
| | | <t-button class="tButtonBox" size="small" shape="round" bind:tap="goPaymentPage">去结算({{selectedCount}})</t-button> |
| | | </view> |
| | | </view> |
| | | </view> |