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.js                                   |   15 +---
 pages/cart/paymentPage/index.json                     |    4 -
 pages/cart/paymentPage/index.wxml                     |   17 ++++-
 pages/cart/paymentPage/index.wxss                     |    8 --
 pages/bibliographyList/index.wxml                     |   17 ++---
 pages/bookExhibitionDetails/index.json                |    3 
 pages/bibliographyList/index.wxss                     |   34 +++++-----
 pages/bookExhibitionList/index.js                     |    3 
 pages/bookExhibitionList/index.wxml                   |    2 
 packageBookService/pages/bookServices/detail/index.js |    7 ++
 pages/cart/index.wxss                                 |   16 +++--
 pages/cart/index.wxml                                 |   37 ++++-------
 12 files changed, 80 insertions(+), 83 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index 95921f9..180ae3b 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -849,6 +849,11 @@
         }
         const addRes = app.MG.store.addShoppingCart(query)
         this.showSuccessToast()
+        console.log(addRes, 'addRes');
+        wx.switchTab({
+          url: '/pages/cart/index',
+
+        })
 
       } else {
         Toast({
@@ -878,6 +883,7 @@
       theme: 'success',
       direction: 'column',
     });
+
   },
 
   async buyBook() {
@@ -1851,4 +1857,5 @@
       teach: tree
     })
   },
+
 })
\ No newline at end of file
diff --git a/pages/bibliographyList/index.wxml b/pages/bibliographyList/index.wxml
index 94cf918..07af9b7 100644
--- a/pages/bibliographyList/index.wxml
+++ b/pages/bibliographyList/index.wxml
@@ -41,22 +41,17 @@
       <view wx:else class="outsideHigherBox">
         <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
           <view class="outsideHigherImageBox">
-            <view bind:tap="downloadData" data-item="{{item}}">
-
-              <image class="higherImageBox" src="{{item.icon}}" mode="" />
+            <view class="higherImageBox" bind:tap="downloadData" data-item="{{item}}">
+              <image src="{{item.icon}}" mode="aspectFill" />
+              <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox">
+                <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" />
+                <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" />
+              </view>
             </view>
 
-            <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox">
-
-              <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="" />
-              <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="" />
-            </view>
           </view>
-
           <view class="higherTextBox">{{item.name}}</view>
         </view>
-
-
       </view>
       <view wx:if="{{higherList.length > 0}}" class="bottom-box">
         <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" />
diff --git a/pages/bibliographyList/index.wxss b/pages/bibliographyList/index.wxss
index 5ba4768..96fdbf2 100644
--- a/pages/bibliographyList/index.wxss
+++ b/pages/bibliographyList/index.wxss
@@ -10,7 +10,6 @@
   background-color: #fff;
   display: flex;
   align-items: center;
-
 }
 
 .navbar-title {
@@ -39,6 +38,12 @@
   width: 190rpx;
   height: 255rpx;
   margin: 15rpx;
+  position: relative;
+}
+
+.higherImageBox image {
+  width: 100%;
+  height: 100%;
 }
 
 .higherTextBox {
@@ -49,37 +54,32 @@
   margin-bottom: 10rpx;
 }
 
-.outsideHigherImageBox {
-  position: relative;
-}
+.outsideHigherImageBox {}
 
 .downloadIcon {
-  width: 34rpx;
-  height: 34rpx;
+  width: 30rpx;
+  height: 24rpx;
   border-radius: 5rpx 5rpx 5rpx 5rpx;
   background: rgba(0, 0, 0, 0.3);
   position: absolute;
-  top: 15rpx;
-  right: 15rpx;
+  top: 0rpx;
+  right: 0rpx;
   padding: 10rpx;
+  display: flex;
+  align-items: center;
 }
 
-
-.download {
-  /* background-color: #8bc34a; */
+.downloadIcon image {
   width: 100%;
   height: 100%;
 }
 
-.downloadshiftin {
-  width: 100%;
-  height: 100%;
-}
+
+
+
 
 .example-search {
   background-color: #fff;
-  /* padding: 16rpx 32rpx; */
-
 }
 
 
diff --git a/pages/bookExhibitionDetails/index.json b/pages/bookExhibitionDetails/index.json
index a17565a..02871f3 100644
--- a/pages/bookExhibitionDetails/index.json
+++ b/pages/bookExhibitionDetails/index.json
@@ -2,6 +2,5 @@
   "usingComponents": {
     "t-icon": "tdesign-miniprogram/icon/icon"
   },
-  "navigationStyle": "custom",
-  "disableScroll": true
+  "navigationStyle": "custom"
 }
\ No newline at end of file
diff --git a/pages/bookExhibitionList/index.js b/pages/bookExhibitionList/index.js
index 6e7bee3..e21b7df 100644
--- a/pages/bookExhibitionList/index.js
+++ b/pages/bookExhibitionList/index.js
@@ -465,5 +465,6 @@
     });
     console.log(e.detail.value, 'e.detail.value');
     this.bookExhibitionGet()
-  }
+  },
+ 
 })
\ No newline at end of file
diff --git a/pages/bookExhibitionList/index.wxml b/pages/bookExhibitionList/index.wxml
index 3b275c9..dc6ec50 100644
--- a/pages/bookExhibitionList/index.wxml
+++ b/pages/bookExhibitionList/index.wxml
@@ -13,7 +13,9 @@
       </view>
       <view class="example-search">
         <t-search model:value="{{value}}" placeholder="璇疯緭鍏ヤ功灞曞悕绉�" bind:submit="onSearchSubmit" />
+
       </view>
+
     </view>
   </view>
   <view class="outsideMenuBox">
diff --git a/pages/cart/index.js b/pages/cart/index.js
index d00cc4c..175bdd6 100644
--- a/pages/cart/index.js
+++ b/pages/cart/index.js
@@ -45,8 +45,6 @@
       selectedCount: 0,
       checkAll: false,
     })
-
-
   },
   onDelete(e) {
     const item = e.currentTarget.dataset.item;
@@ -63,12 +61,7 @@
         selectedCount: 0,
         checkAll: false,
       })
-
-
     });
-
-
-
   },
 
   shoppingCartGet() {
@@ -79,7 +72,7 @@
       searchList: []
     };
     app.MG.store.getShoppingCartProductList(query).then(res => {
-
+      console.log(res, 'res');
       this.setData({
         totalSize: res.totalSize
       })
@@ -91,14 +84,14 @@
         // })
         const type = item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product';
         item.type = type; // 灏唗ype璁剧疆涓篿tem瀵硅薄鐨勫睘鎬э紝鑰屼笉鏄娇鐢╯etData
-        // debugger
-
+        console.log(item.linkCmsItems[0].name);
+        item.name = item.linkCmsItems[0].name ? item.productMonWithLinkDto.product.name + ':' + item.linkCmsItems[0].name : item.productMonWithLinkDto.product.name
       });
 
       this.setData({
         shoppingCartData: res.datas
       });
-
+      console.log(this.data.shoppingCartData, 'shoppingCartData');
 
       if (this.data.shoppingCartData.length === 0) {
         this.setData({
diff --git a/pages/cart/index.wxml b/pages/cart/index.wxml
index 2dc5e3a..ae8e8ad 100644
--- a/pages/cart/index.wxml
+++ b/pages/cart/index.wxml
@@ -8,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>
@@ -26,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>
@@ -66,14 +57,14 @@
             </view>
             <view class="left-image">
               <image wx:if="{{item.imgUrl}}" src="{{item.imgUrl}}" class="imageStyle" mode="aspectFit" />
-              <image src="/static/images/default-book-img.png" 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>
diff --git a/pages/cart/index.wxss b/pages/cart/index.wxss
index 5fe8864..6c554dc 100644
--- a/pages/cart/index.wxss
+++ b/pages/cart/index.wxss
@@ -251,18 +251,22 @@
   font-weight: bold;
   font-size: 29rpx;
   margin: 0 10rpx;
-  /* 
+  display: -webkit-box;
+  -webkit-line-clamp: 2;
+  -webkit-box-orient: vertical;
+  overflow: hidden;
+
+
+}
+
+/* 
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 2; */
 
-  /* display: inline; */
-
-
-}
-
+/* display: inline; */
 .textBox {
   font-family: PingFang SC, PingFang SC;
   font-weight: 400;
diff --git a/pages/cart/paymentPage/index.json b/pages/cart/paymentPage/index.json
index f5655a6..7ff0ea1 100644
--- a/pages/cart/paymentPage/index.json
+++ b/pages/cart/paymentPage/index.json
@@ -1,11 +1,9 @@
 {
   "component": true,
-  
   "usingComponents": {
     "t-icon": "tdesign-miniprogram/icon/icon",
     "t-button": "tdesign-miniprogram/button/button",
     "t-dialog": "tdesign-miniprogram/dialog/dialog"
   },
-  "navigationStyle": "custom",
-  "disableScroll": true
+  "navigationStyle": "custom"
 }
\ No newline at end of file
diff --git a/pages/cart/paymentPage/index.wxml b/pages/cart/paymentPage/index.wxml
index 99f50af..e4bed5e 100644
--- a/pages/cart/paymentPage/index.wxml
+++ b/pages/cart/paymentPage/index.wxml
@@ -15,7 +15,8 @@
     <view class="shoppingCartList">
       <view class="cartList" wx:for="{{productList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
         <view class="imageBox">
-          <image src="{{item.paymentIcon }}" mode="aspectFill" />
+          <image wx:if="{{item.paymentIcon}}" src="{{item.paymentIcon }}" mode="aspectFill" />
+          <image wx:else src="/static/images/default-book-img.png" class="imageStyle" mode="aspectFit" />
         </view>
         <view class="cartListContent">
           <view class="cartListDetails">
@@ -31,16 +32,26 @@
 
             <view wx:if="{{item.type == 'product'}}" style="width: 386rpx;">
 
-              <view>
+              <!-- <view>
                 <text class="eBook">鐢靛瓙涔�</text> <text class="boosName">{{item.orderSaleMethod.product.name}}</text>
+              </view> -->
+
+              <view class="boosName">
+                <text class="eBook">鐢靛瓙涔�</text>
+                <text> {{item.orderSaleMethod.product.name}}</text>
               </view>
+
             </view>
 
 
             <view wx:if="{{item.type == 'item'}}" style="width: 386rpx;">
-
+              <!-- 
               <view>
                 <text class="cloudLearning">浜戝涔�</text> <text class="boosName">{{item.orderSaleMethod.product.name}}</text>
+              </view> -->
+              <view class="boosName">
+                <text class="cloudLearning">浜戝涔�</text>
+                <text> {{item.orderSaleMethod.product.name}}</text>
               </view>
             </view>
 
diff --git a/pages/cart/paymentPage/index.wxss b/pages/cart/paymentPage/index.wxss
index a8b707a..3357ef5 100644
--- a/pages/cart/paymentPage/index.wxss
+++ b/pages/cart/paymentPage/index.wxss
@@ -235,14 +235,10 @@
   font-weight: bold;
   font-size: 29rpx;
   margin: 0 10rpx;
-  /* 
-  overflow: hidden;
-  text-overflow: ellipsis;
   display: -webkit-box;
+  -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
-  -webkit-line-clamp: 2; */
-
-  /* display: inline; */
+  overflow: hidden;
 
 
 }

--
Gitblit v1.9.1