| | |
| | | <!-- loading |
| | | hidden --> |
| | | <view hidden="{{hidden}}"> |
| | | <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower"> |
| | | <scroll-view |
| | | scroll-y="{{true}}" |
| | | class="outsideContentBox" |
| | | bindscrolltolower="onScrollToLower" |
| | | > |
| | | <view> |
| | | <!-- <checkbox-group bindchange="HandelItemChange"> --> |
| | | <view wx:if="{{shoppingCartData.length <= 0}}" class="noDataBox"> |
| | |
| | | <empty /> |
| | | </view> |
| | | <!-- <button bind:tap="onLogin"> 去登录</button> --> |
| | | <t-swipe-cell wx:for="{{shoppingCartData}}" wx:key="index" wx:for-item="item" wx:for-index="index" opened="{{swipeOpened}}"> |
| | | <t-swipe-cell |
| | | wx:for="{{shoppingCartData}}" |
| | | wx:key="index" |
| | | wx:for-item="item" |
| | | wx:for-index="index" |
| | | opened="{{swipeOpened}}" |
| | | > |
| | | <view class="itemWarp"> |
| | | <t-cell bordered="{{false}}"> |
| | | <view slot="title" class="titleBox"> |
| | |
| | | </view> |
| | | <view slot="description" class="descriptionBox"> |
| | | <view> |
| | | <view class="textBox" wx:if="{{item.type == 'product'}}">图书服务-电子书</view> |
| | | <view class="textBox" wx:if="{{item.type == 'item'}}">图书服务-云学习</view> |
| | | <!-- <view class="textBox" wx:if="{{item.type == 'product'}}">图书服务-电子书</view> |
| | | <view class="textBox" wx:if="{{item.type == 'item'}}">图书服务-云学习</view> --> |
| | | <view class="textBox"> {{item.productType}} </view> |
| | | </view> |
| | | <view wx:if="{{item.saleMethod.price != 0}}" class="price-box"> |
| | | ¥{{item.saleMethod.price }} |
| | |
| | | </view> |
| | | <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" /> |
| | | <t-checkbox |
| | | icon="rectangle" |
| | | value=" {{item.id}}" |
| | | data-item="{{item}}" |
| | | checked="{{item.checked}}" |
| | | bindchange="HandelItemChange" |
| | | /> |
| | | </view> |
| | | <view class="left-image" data-item="{{item}}" bind:tap="onBook"> |
| | | <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" /> |
| | | <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> |
| | | <view |
| | | slot="right" |
| | | class="btn delete-btn" |
| | | bind:tap="onDelete" |
| | | data-item="{{item}}" |
| | | >删除</view |
| | | > |
| | | </t-swipe-cell> |
| | | <view wx:if="{{shoppingCartData.length > 0}}" class="bottom-box"> |
| | | <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> |
| | | <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 disabled="{{onDisabled}}" value="全选" checked="{{checkAll}}" |
| | | >全选</checkbox |
| | | > |
| | | </checkbox-group> |
| | | </view> |
| | | <view class="settlementBox"> |
| | | <view class="totalPrice">总价:<text class="totalPriceText">¥{{totalPrice}}</text></view> |
| | | <view class="totalPrice" |
| | | >总价:<text class="totalPriceText">¥{{totalPrice}}</text></view |
| | | > |
| | | <view class="buttonBox"> |
| | | <t-button class="tButtonBox" size="small" shape="round" bind:tap="goPaymentPage"> |
| | | <t-button |
| | | class="tButtonBox" |
| | | size="small" |
| | | shape="round" |
| | | bind:tap="goPaymentPage" |
| | | > |
| | | <view>去结算({{selectedCount}})</view> |
| | | </t-button> |
| | | </view> |