From 42cc31916c043f681c271efeb73394260e7d77aa Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期二, 05 三月 2024 18:53:11 +0800 Subject: [PATCH] 合并 --- pages/cart/index.wxml | 67 ++++++++++++++++++--------------- 1 files changed, 37 insertions(+), 30 deletions(-) diff --git a/pages/cart/index.wxml b/pages/cart/index.wxml index 8828092..4219ccc 100644 --- a/pages/cart/index.wxml +++ b/pages/cart/index.wxml @@ -1,31 +1,38 @@ -<!-- 鍒嗗眰璐墿杞� --> -<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> \ No newline at end of file -- Gitblit v1.9.1