From 7231b5929a66bb1ec3b832be85f5e3f6ce40ad9f Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 15 三月 2024 16:01:52 +0800
Subject: [PATCH] feat: 十大

---
 pages/cart/index.wxml |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/pages/cart/index.wxml b/pages/cart/index.wxml
index 931b46a..32e95b2 100644
--- a/pages/cart/index.wxml
+++ b/pages/cart/index.wxml
@@ -1,12 +1,31 @@
 <view class="outsideContentBox">
   <!-- <checkbox-group bindchange="HandelItemChange"> -->
+  <view wx:if="{{!shoppingCartData}}" class="noDataBox">
+    <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" font-size="80" />
+
+  </view>
   <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" wx:if="{{item.saleMethod.price != 0}}"> 锟{item.saleMethod.price}}</view>
+        <view wx:else slot="description" class="descriptionBox"> 绔嬪嵆棰嗗彇</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" />
@@ -35,4 +54,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