From f0229b7c6801f6429dec75e208192b61053b8c7d Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期三, 03 四月 2024 09:46:02 +0800 Subject: [PATCH] 书目 --- pages/cart/index.wxml | 75 +++++++++++++++---------------------- 1 files changed, 31 insertions(+), 44 deletions(-) diff --git a/pages/cart/index.wxml b/pages/cart/index.wxml index 0da4120..ae8e8ad 100644 --- a/pages/cart/index.wxml +++ b/pages/cart/index.wxml @@ -1,10 +1,4 @@ -<scroll-view scroll-y="{{true}}" class="outsideContentBox"> - - - - - - +<scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower"> <view> @@ -14,10 +8,6 @@ </view> <!-- <button bind:tap="onLogin"> 鍘荤櫥褰�</button> --> <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> @@ -32,29 +22,24 @@ <view class="boosName"> {{item.productMonWithLinkDto.product.name}} </view> --> - <view wx:if="{{item.type == 'product'}}" style="width: 386rpx;"> - - <view> - <text class="eBook">鐢靛瓙涔�</text> <text class="boosName">{{item.productMonWithLinkDto.product.name}}</text> + <!-- <view> + <text class="eBook">鐢靛瓙涔�</text> <text class="boosName">{{item.name}}</text> + </view> --> + <view class="boosName"> + <text class="eBook">浜戝涔�</text> + <text> {{item.name}}</text> </view> </view> - - <view wx:if="{{item.type == 'item'}}" style="width: 386rpx;"> - - <view> - <text class="cloudLearning">浜戝涔�</text> <text class="boosName">{{item.productMonWithLinkDto.product.name}}</text> + <!-- <view> + <text class="cloudLearning">浜戝涔�</text> <text class="boosName"> {{item.name}}</text> + </view> --> + <view class="boosName"> + <text class="cloudLearning">浜戝涔�</text> + <text> {{item.name}}</text> </view> </view> - - - - - - - - </view> <view slot="description" class="descriptionBox"> <view> @@ -71,32 +56,34 @@ <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="aspectFit" /> + <image wx:if="{{item.imgUrl}}" src="{{item.imgUrl}}" class="imageStyle" mode="aspectFit" /> + <image wx:else src="/static/images/default-book-img.png" class="imageStyle" mode="aspectFit" /> </view> </view> </t-cell> </view> <view slot="right" class="btn delete-btn" bind:tap="onDelete" data-item="{{item}}">鍒犻櫎</view> </t-swipe-cell> - <view class="bottom-box"> + <view wx:if="{{shoppingCartData.length > 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">娌℃湁鏇村浜�</text> </view> </view> - <view class="bottomBox"> - <view class="checkGroupBox"> - <checkbox-group bindchange="bottomChange"> - <checkbox disabled="{{onDisabled}}" 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> + <t-toast id="t-toast" /> -</scroll-view> \ No newline at end of file +</scroll-view> +<view class="bottomBox"> + <view class="checkGroupBox"> + <checkbox-group bindchange="bottomChange"> + <checkbox disabled="{{onDisabled}}" 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