From 057199d5c5284a71e5d04e091492873ced412fa5 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 21 三月 2024 09:28:54 +0800
Subject: [PATCH] 代码合并

---
 pages/cart/index.wxml |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/pages/cart/index.wxml b/pages/cart/index.wxml
index 931b46a..7642960 100644
--- a/pages/cart/index.wxml
+++ b/pages/cart/index.wxml
@@ -1,12 +1,39 @@
 <view class="outsideContentBox">
   <!-- <checkbox-group bindchange="HandelItemChange"> -->
+  <view wx:if="{{shoppingCartData.length <= 0}}" class="noDataBox">
+    <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" font-size="80" />
+  </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>
         </view> -->
     <view class="itemWarp">
-      <t-cell bordered="{{false}}" title="{{item.productMonWithLinkDto.product.name}}" description="锟{item.saleMethod.price}}">
+      <t-cell bordered="{{false}}">
+        <view slot="title" class="titleBox">
+          <view class="labelBox">
+            <view class="eBook" wx:if="{{type == 'product'}}">鐢靛瓙涔�</view>
+            <view wx:if="{{type == 'item'}}" class="cloudLearning">浜戝涔�</view>
+          </view>
+          <view class="boosName">
+            {{item.productMonWithLinkDto.product.name}}
+          </view>
+        </view>
+        <view slot="description" class="descriptionBox">
+          <view>
+            <view class="textBox" wx:if="{{type == 'product'}}">鍥句功鏈嶅姟-鐢靛瓙涔�</view>
+            <view class="textBox" wx:if="{{type == 'item'}}">鍥句功鏈嶅姟-浜戝涔�</view>
+          </view>
+          <view wx:if="{{item.saleMethod.price != 0}}">
+            锟{item.saleMethod.price}}
+          </view>
+          <view wx:else class="descriptionBox"> 绔嬪嵆棰嗗彇</view>
+        </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" />
@@ -17,10 +44,9 @@
         </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="bottomBox">
@@ -35,4 +61,6 @@
       <t-button class="tButtonBox" size="small" shape="round" bind:tap="goPaymentPage">鍘荤粨绠�({{selectedCount}})</t-button>
     </view>
   </view>
-</view>
\ No newline at end of file
+</view>
+
+<t-toast id="t-toast" />
\ No newline at end of file

--
Gitblit v1.9.1