From 5e649be819c7297c79c21c6dc120b4b6b362db9e Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 03 四月 2024 17:23:39 +0800
Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master

---
 packagePersonal/pages/userSetting/index.wxml                            |    2 
 pages/study/index.wxss                                                  |    0 
 pages/study/index.wxml                                                  |    0 
 pages/cart/paymentPage/index.wxss                                       |    3 
 packageBookService/pages/bookServices/detail/index.wxml                 |    8 
 pages/bookExhibitionList/index.wxml                                     |    2 
 packageDomain/pages/resourceDetails/myAudio/index.js                    |    3 
 pages/retrievalPage/index.wxml                                          |   17 -
 pages/retrievalPage/index.wxss                                          |   23 +-
 custom-tab-bar/data.js                                                  |    7 
 app.json                                                                |    4 
 pages/study/index.js                                                    |   37 +++
 packageBookService/pages/bookServices/detail/components/tree/index.wxml |  167 +++--------------
 pages/cart/index.js                                                     |   30 ++
 packageBookService/pages/bookServices/detail/components/tree/index.js   |   32 ++-
 pages/bibliographyList/index.wxml                                       |    5 
 pages/bibliographyList/index.wxss                                       |    6 
 packageBookService/pages/bookServices/detail/index.js                   |  143 +++++++--------
 pages/study/index.json                                                  |    0 
 pages/cart/index.wxss                                                   |   18 -
 pages/cart/index.wxml                                                   |   27 --
 21 files changed, 237 insertions(+), 297 deletions(-)

diff --git a/app.json b/app.json
index 5d3f411..8e696a3 100644
--- a/app.json
+++ b/app.json
@@ -4,7 +4,7 @@
     "pages/home/digitalRead/index",
     "pages/retrievalPage/index",
     "pages/cart/paymentPage/index",
-    "pages/student/index",
+    "pages/study/index",
     "pages/cart/index",
     "pages/bookExhibitionList/index",
     "pages/bookExhibitionDetails/index",
@@ -79,7 +79,7 @@
         "selectedIconPatn": "/static/images/home/service-click@2x.png"
       },
       {
-        "pagePath": "pages/student/index",
+        "pagePath": "pages/study/index",
         "text": "瀛︿範",
         "iconPath": "/static/images/home/learn@2x.png",
         "selectedIconPatn": "/static/images/home/learn-click@2x.png"
diff --git a/custom-tab-bar/data.js b/custom-tab-bar/data.js
index 16a0b78..36dabc8 100644
--- a/custom-tab-bar/data.js
+++ b/custom-tab-bar/data.js
@@ -1,5 +1,4 @@
-export default [
-  {
+export default [{
     id: 0,
     text: '棣栭〉',
     url: 'pages/home/home',
@@ -17,7 +16,7 @@
   {
     id: 2,
     text: '瀛︿範',
-    url: 'pages/student/index',
+    url: 'pages/study/index',
     icon: '/static/images/home/learn@2x.png',
     activeIcon: '/static/images/home/learn-click@2x.png'
   },
@@ -35,4 +34,4 @@
     icon: '/static/images/home/my@2x.png',
     activeIcon: '/static/images/home/my-click@2x.png'
   },
-];
+];
\ No newline at end of file
diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js
index 8010c50..679d5e5 100644
--- a/packageBookService/pages/bookServices/detail/components/tree/index.js
+++ b/packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -1,5 +1,7 @@
 const util = require("./components/util"); // 寮曞叆灏佽杩囩殑鍔犺浇鎻愮ず
-import { loginInfo } from "../../../../../../assets/js/login";
+import {
+  loginInfo
+} from "../../../../../../assets/js/login";
 const app = getApp();
 Component({
   // checked: false,
@@ -87,8 +89,7 @@
     handleList(tree) {
       for (let index = 0; index < tree.length; index++) {
         const item = tree[index];
-        if (item.sysType == "CmsItem" && !item.checked) {
-        }
+        if (item.sysType == "CmsItem" && !item.checked) {}
         if (item.children && item.children.length > 0) {
           this.handleList(item.children);
         }
@@ -425,6 +426,8 @@
       });
       if (shoppingCartGetId.includes(saleMethodId)) {
         console.log(111);
+        // this.data.updateShoppingCartHidden();
+        // this.data.updateCloudLearning();
 
         wx.showToast({
           icon: "error",
@@ -435,13 +438,11 @@
         });
       } else {
         let query = {
-          requests: [
-            {
-              saleMethodId: saleMethodId,
-              storeEventId: null,
-              // agentCode: '鐢靛瓙涔�'
-            },
-          ],
+          requests: [{
+            saleMethodId: saleMethodId,
+            storeEventId: null,
+            // agentCode: '鐢靛瓙涔�'
+          }, ],
         };
         const addRes = await app.MG.store.addShoppingCart(query);
         console.log(addRes, "addRes");
@@ -451,7 +452,14 @@
         });
       }
     },
+    sadd() {
+      this.triggerEvent('updateShoppingCartHidden');
+      this.triggerEvent('updateCloudLearning');
+      console.log(789);
+    },
+
   },
 
-  catchtap() {},
-});
+
+  catchtap() {}
+})
\ No newline at end of file
diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.wxml b/packageBookService/pages/bookServices/detail/components/tree/index.wxml
index f5271b2..bfe83f3 100644
--- a/packageBookService/pages/bookServices/detail/components/tree/index.wxml
+++ b/packageBookService/pages/bookServices/detail/components/tree/index.wxml
@@ -1,66 +1,27 @@
 <view class="tree">
+
   <t-collapse default-value="{{openIds}}" catchchange="handleChange">
-    <t-collapse-panel
-      wx:for="{{treeList}}"
-      wx:for-item="item"
-      wx:for-index="index"
-      wx:key="id"
-      value="{{item.id}}"
-    >
+    <t-collapse-panel wx:for="{{treeList}}" wx:for-item="item" wx:for-index="index" wx:key="id" value="{{item.id}}">
       <view slot="header" class="header-title">
         <view class="title-checkBox" catchtap="catchTap">
-          <t-checkbox
-            icon="rectangle"
-            checked="{{item.checked}}"
-            data-item="{{item}}"
-            catchchange="checkResourceTitle"
-            wx:if="{{isShowCheck}}"
-          />
+          <t-checkbox icon="rectangle" checked="{{item.checked}}" data-item="{{item}}" catchchange="checkResourceTitle" wx:if="{{isShowCheck}}" />
           <!-- 绔犺妭鍚� -->
           <view style="width: 100%">
-            <text>{{item.name}} </text
-            ><text wx:if="{{item.sysType =='CmsFolder'}}"
-              >锛坽{item.children ? item.children.length : 0}}锛�</text
-            >
+            <text>{{item.name}} </text><text wx:if="{{item.sysType =='CmsFolder'}}">锛坽{item.children ? item.children.length : 0}}锛�</text>
           </view>
         </view>
       </view>
-      <view
-        class="list"
-        wx:for="{{item.children}}"
-        wx:for-item="citem"
-        wx:for-index="cindex"
-        wx:key="cindex"
-      >
+      <view class="list" wx:for="{{item.children}}" wx:for-item="citem" wx:for-index="cindex" wx:key="cindex">
         <!-- // 鍒ゆ柇 鏃犲瓙椤� 涓斾负鍟嗗搧item 鐩存帴鏄剧ず -->
-        <view
-          class="listItems"
-          wx:if="{{citem.childrenFolderCount <= 0 && citem.sysType == 'CmsItem'}}"
-        >
-          <view
-            class="itemsInfo"
-            wx:if="{{citem.name}}"
-            data-item="{{citem}}"
-            data-index="{{cindex}}"
-          >
-            <view
-              class="contentBox"
-              bind:tap="goPlayer"
-              data-item="{{citem}}"
-              data-parent="{{item}}"
-            >
+        <view class="listItems" wx:if="{{citem.childrenFolderCount <= 0 && citem.sysType == 'CmsItem'}}">
+          <view class="itemsInfo" wx:if="{{citem.name}}" data-item="{{citem}}" data-index="{{cindex}}">
+            <view class="contentBox" bind:tap="goPlayer" data-item="{{citem}}" data-parent="{{item}}">
               <!-- 鏁欏璧勬簮 浜戝涔� 鍥炬爣 -->
-              <view
-                class="box-image"
-                style="{{ tab == 'jsek_teachingResources' ? 'width: 350rpx;' : 'width: 450rpx;'}}"
-              >
-                <view
-                  class="checkBox"
-                  wx:if="{{isShowCheck}}"
-                  catchtap="catchTap"
-                >
+              <view class="box-image" style="{{ tab == 'jsek_teachingResources' ? 'width: 350rpx;' : 'width: 450rpx;'}}">
+                <view class="checkBox" wx:if="{{isShowCheck}}" catchtap="catchTap">
                   <!-- checked="{{citem.checked}}"  -->
                   <!-- <t-checkbox icon="rectangle" checked="{{citem.checked}}" disabled="{{citem.selectType=='webpage' || citem.isDownload != 1 || citem.fileMap[citem.file].protectType == 'Private'}}" catch:change="checkResource" data-item="{{citem}}" /> -->
+<<<<<<< Updated upstream
                   <t-checkbox
                     disabled="{{!citem.saleMethod[0].Id}}"
                     icon="rectangle"
@@ -68,115 +29,55 @@
                     data-item="{{citem}}"
                     catch:change="checkResource"
                   />
+=======
+                  <t-checkbox icon="rectangle" checked="{{citem.checked}}" data-item="{{citem}}" catch:change="checkResource" />
+>>>>>>> Stashed changes
                 </view>
                 <!-- 鏁欏璧勬簮鍥炬爣 -->
                 <view class="teach-icon">
-                  <image
-                    wx:if="{{citem.selectType == 'audio' || citem.learnSelectType == 'audio'}}"
-                    src="/static/images/bookService/detail/audioIcon.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{citem.selectType == 'video' || citem.learnSelectType == 'video'}}"
-                    src="/static/images/bookService/detail/video.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{citem.selectType == 'pdf'}}"
-                    src="/static/images/bookService/detail/pdf.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{citem.selectType == 'webpage'}}"
-                    src="/static/images/bookService/detail/net.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{citem.selectType == 'picture'}}"
-                    src="/static/images/bookService/detail/picture.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{citem.selectType == 'zip'}}"
-                    src="/static/images/bookService/detail/zip.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{ citem.fileMap[citem.file].extension == 'doc' ||  citem.fileMap[citem.file].extension == 'docx'}}"
-                    src="/static/images/bookService/detail/word.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{ citem.fileMap[citem.file].extension == 'xlsx' ||  citem.fileMap[citem.file].extension == 'xlsx'}}"
-                    src="/static/images/bookService/detail/excel.png"
-                    mode="aspectFill"
-                  />
-                  <image
-                    wx:elif="{{ citem.fileMap[citem.file].extension == 'ppt' ||  citem.fileMap[citem.file].extension == 'pptx'}}"
-                    src="/static/images/bookService/detail/PPT.png"
-                    mode="aspectFill"
-                  />
+                  <image wx:if="{{citem.selectType == 'audio' || citem.learnSelectType == 'audio'}}" src="/static/images/bookService/detail/audioIcon.png" mode="aspectFill" />
+                  <image wx:elif="{{citem.selectType == 'video' || citem.learnSelectType == 'video'}}" src="/static/images/bookService/detail/video.png" mode="aspectFill" />
+                  <image wx:elif="{{citem.selectType == 'pdf'}}" src="/static/images/bookService/detail/pdf.png" mode="aspectFill" />
+                  <image wx:elif="{{citem.selectType == 'webpage'}}" src="/static/images/bookService/detail/net.png" mode="aspectFill" />
+                  <image wx:elif="{{citem.selectType == 'picture'}}" src="/static/images/bookService/detail/picture.png" mode="aspectFill" />
+                  <image wx:elif="{{citem.selectType == 'zip'}}" src="/static/images/bookService/detail/zip.png" mode="aspectFill" />
+                  <image wx:elif="{{ citem.fileMap[citem.file].extension == 'doc' ||  citem.fileMap[citem.file].extension == 'docx'}}" src="/static/images/bookService/detail/word.png" mode="aspectFill" />
+                  <image wx:elif="{{ citem.fileMap[citem.file].extension == 'xlsx' ||  citem.fileMap[citem.file].extension == 'xlsx'}}" src="/static/images/bookService/detail/excel.png" mode="aspectFill" />
+                  <image wx:elif="{{ citem.fileMap[citem.file].extension == 'ppt' ||  citem.fileMap[citem.file].extension == 'pptx'}}" src="/static/images/bookService/detail/PPT.png" mode="aspectFill" />
                 </view>
                 <!-- 浜戝涔犲浘鏍� -->
                 <view> </view>
                 <!-- 鍚嶇О -->
-                <text
-                  class="name"
-                  style="{{ tab == 'jsek_teachingResources' ? 'width: 300rpx;' : 'width: 400rpx;'}}"
-                  >{{citem.name}}</text
-                >
+                <text class="name" style="{{ tab == 'jsek_teachingResources' ? 'width: 300rpx;' : 'width: 400rpx;'}}">{{citem.name}}</text>
               </view>
               <!-- 鏁欏璧勬簮绫诲瀷 -->
               <view class="teachClass"> {{citem.resourceClass}} </view>
-              <view
-                class="teach-btn"
-                wx:if="{{tab == 'jsek_teachingResources'}}"
-              >
+              <view class="teach-btn" wx:if="{{tab == 'jsek_teachingResources'}}">
                 <!--  涓嬭浇鎸夐挳 -->
+<<<<<<< Updated upstream
                 <!-- <image
                   src="/static/images/bookService/detail/download-icon.png"
                   class="download-image"
                   data-value="{{citem}}"
                   catchtap="downloadTeach"
                 ></image> -->
+=======
+                <image src="/static/images/bookService/detail/download-icon.png" class="download-image" data-value="{{citem}}" catchtap="downloadTeach"></image>
+>>>>>>> Stashed changes
               </view>
               <view wx:if="{{tab == 'jsek_cloudLearning'}}">
                 <!-- 浜戝涔犺瘯鐪嬪浘鏍� -->
-                <image
-                  src="/static/images/bookService/detail/shikan.png"
-                  class="testSee"
-                  wx:if="{{!citem.isbuy ? false : citem.freeFile ? true : false}}"
-                ></image>
+                <image src="/static/images/bookService/detail/shikan.png" class="testSee" wx:if="{{!citem.isbuy ? false : citem.freeFile ? true : false}}"></image>
                 <!-- 浜戝涔犲姞鍏ヨ喘鐗╄溅鍥炬爣 -->
-                <image
-                  src="/static/images/bookService/detail/cart@2x.png"
-                  wx:if="{{citem.isShopCar}}"
-                  class="shopCar"
-                  data-item="{{citem}}"
-                  catch:tap="onCloudShoppingCart"
-                ></image>
+                <image src="/static/images/bookService/detail/cart@2x.png" wx:if="{{citem.isShopCar}}" class="shopCar" data-item="{{citem}}" catch:tap="onCloudShoppingCart"></image>
                 <!-- 浜戝涔犺喘涔板浘鏍� -->
-                <image
-                  src="/static/images/bookService/detail/need-buy.png"
-                  class="need-buy"
-                  wx:if="{{citem.isbuy }}"
-                ></image>
+                <image src="/static/images/bookService/detail/need-buy.png" class="need-buy" wx:if="{{citem.isbuy }}"></image>
               </view>
             </view>
           </view>
         </view>
         <!-- // 鍒ゆ柇 涓嶆槸鍟嗗搧 鏈夊瓙椤� 閫掑綊缁勪欢 -->
-        <tree
-          wx:if="{{citem.childrenCount > 0 && citem.sysType == 'CmsFolder' }}"
-          isShowCheck="{{isShowCheck}}"
-          bookInfo="{{bookInfo}}"
-          treeList="{{[citem]}}"
-          itemId="{{itemId}}"
-          tab="{{tab}}"
-          buyIds="{{buyIds}}"
-          openTeachids="{{openTeachids}}"
-          openLearnids="{{openLearnids}}"
-        ></tree>
+        <tree wx:if="{{citem.childrenCount > 0 && citem.sysType == 'CmsFolder' }}" isShowCheck="{{isShowCheck}}" bookInfo="{{bookInfo}}" treeList="{{[citem]}}" itemId="{{itemId}}" tab="{{tab}}" buyIds="{{buyIds}}" openTeachids="{{openTeachids}}" openLearnids="{{openLearnids}}"></tree>
       </view>
       <!-- 鏆傛棤鏁版嵁 -->
       <view wx:if="{{!item.children || !item.children.length}}" class="noData">
@@ -190,6 +91,8 @@
       </view>
     </t-collapse-panel>
   </t-collapse>
+
 </view>
 
 <web-view wx:if="{{webpageSrc}}" src="{{webpageSrc}}"></web-view>
+<!-- <button bind:tap="sadd"> 65498</button> -->
\ No newline at end of file
diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index f4f4c86..d3cea05 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -1,7 +1,9 @@
 // pages/bookServices/detail/index.js
 import Toast from "tdesign-miniprogram/toast";
 import tool from "../../../../assets/js/toolClass";
-import { loginInfo } from "../../../../assets/js/login";
+import {
+  loginInfo
+} from "../../../../assets/js/login";
 const app = getApp();
 Page({
   /**
@@ -430,10 +432,9 @@
         this.setData({
           bookItemDetail: res.datas[0],
           selectedIds: res.datas[0].defaultSaleMethod.id,
-          bookBuy:
-            res.datas[0].purchasedSaleMethodIdList.indexOf(
-              res.datas[0].defaultSaleMethodId
-            ) > -1,
+          bookBuy: res.datas[0].purchasedSaleMethodIdList.indexOf(
+            res.datas[0].defaultSaleMethodId
+          ) > -1,
         });
         let times = new Date(res.datas[0].defaultSaleMethod.endDate).getTime();
         let startTime = new Date(
@@ -495,10 +496,9 @@
         }
         this.setData({
           selectedIds: this.data.bookDetail.defaultSaleMethodId,
-          bookBuy:
-            this.data.bookDetail.purchasedSaleMethodIdList.indexOf(
-              this.data.bookDetail.defaultSaleMethodId
-            ) > -1,
+          bookBuy: this.data.bookDetail.purchasedSaleMethodIdList.indexOf(
+            this.data.bookDetail.defaultSaleMethodId
+          ) > -1,
         });
         let times = new Date(
           this.data.bookDetail.defaultSaleMethod.endDate
@@ -602,7 +602,9 @@
   },
   // 璺宠浆缃戝簵
   goShop(e) {
-    const { link } = e.currentTarget.dataset;
+    const {
+      link
+    } = e.currentTarget.dataset;
     wx.navigateTo({
       url: `/packageBookService/pages/bookServices/webpage/index?url=${link}`,
     });
@@ -611,16 +613,12 @@
   onTabsChange(e) {
     this.setData({
       tabValue: e.detail.value,
-      noResources: false,
-    });
-    if (
-      e.detail.label == "鏁欏璧勬簮" ||
-      e.detail.label == "浜戝涔�" ||
-      e.detail.label == "浜戞祴璇�"
-    ) {
-      const checkData = this.data.cmsDatas.find(
-        (item) => item.refCode == e.detail.value
-      );
+      noResources: false
+    })
+    if (e.detail.label == '鏁欏璧勬簮' || e.detail.label == '浜戝涔�' || e.detail.label == '浜戞祴璇�') {
+      const checkData = this.data.cmsDatas.find(item => item.refCode == e.detail.value)
+
+
       if (checkData) {
         if (e.detail.value == "jsek_cloudLearning") {
           this.setData({
@@ -889,13 +887,11 @@
       console.log(determine);
       if (!determine) {
         let query = {
-          requests: [
-            {
-              saleMethodId: this.data.selectedIds,
-              storeEventId: null,
-              agentCode: "鐢靛瓙涔�",
-            },
-          ],
+          requests: [{
+            saleMethodId: this.data.selectedIds,
+            storeEventId: null,
+            agentCode: "鐢靛瓙涔�",
+          }, ],
         };
         const addRes = app.MG.store.addShoppingCart(query);
         this.showSuccessToast();
@@ -936,14 +932,11 @@
       let bookOrdersId = "";
       let query = {
         remarks: "鐢靛瓙涔�",
-        requests: [
-          {
-            saleMethodId: this.data.bookItemDetail.defaultSaleMethodId
-              ? this.data.bookItemDetail.defaultSaleMethodId
-              : this.data.bookDetail.defaultSaleMethodId,
-            count: 1,
-          },
-        ],
+        requests: [{
+          saleMethodId: this.data.bookItemDetail.defaultSaleMethodId ?
+            this.data.bookItemDetail.defaultSaleMethodId : this.data.bookDetail.defaultSaleMethodId,
+          count: 1,
+        }, ],
       };
       // 鍙戣捣璁㈠崟鍒濆鍖栬姹傚苟绛夊緟缁撴灉
       const res = await app.MG.store.initOrder(query);
@@ -1067,14 +1060,12 @@
           cmsTypeRefCode: "",
           newDataListRequest: [],
           name: this.data.bookDetail.name, // name涓虹敵璇风殑涔︽湰鍚嶇О
-          content: JSON.stringify([
-            {
-              name: this.data.bookDetail.name,
-              id: this.data.bookDetail.id,
-              // defaultSaleMethodId: bookData.value.defaultSaleMethodId,
-              icon: this.data.bookDetail.icon,
-            },
-          ]),
+          content: JSON.stringify([{
+            name: this.data.bookDetail.name,
+            id: this.data.bookDetail.id,
+            // defaultSaleMethodId: bookData.value.defaultSaleMethodId,
+            icon: this.data.bookDetail.icon,
+          }, ]),
         };
         app.MG.ugc.newTopicMessage(query).then(async (res) => {
           if (res) {
@@ -1090,8 +1081,7 @@
           title: "灏婃暚鐨勭敤鎴凤紝鎮ㄥソ锛�",
           content: "璇峰厛杩涜鏁欏笀璁よ瘉锛�",
           complete: (res) => {
-            if (res.cancel) {
-            }
+            if (res.cancel) {}
             if (res.confirm) {
               wx.navigateTo({
                 url: "/packageDomain/pages/teacherCertification/index",
@@ -1105,8 +1095,7 @@
         title: "灏婃暚鐨勭敤鎴凤紝鎮ㄥソ锛�",
         content: "璇峰厛杩涜鏁欏笀璁よ瘉锛�",
         complete: (res) => {
-          if (res.cancel) {
-          }
+          if (res.cancel) {}
           if (res.confirm) {
             wx.navigateTo({
               url: "/packageDomain/pages/teacherCertification/index",
@@ -1134,8 +1123,7 @@
         title: "灏婃暚鐨勭敤鎴凤紝鎮ㄥソ锛�",
         content: "璇峰厛杩涜鏁欏笀璁よ瘉锛�",
         complete: (res) => {
-          if (res.cancel) {
-          }
+          if (res.cancel) {}
           if (res.confirm) {
             wx.navigateTo({
               url: "/packageDomain/pages/teacherCertification/index",
@@ -1310,6 +1298,19 @@
       return false;
     }
   },
+
+  updateShoppingCartHidden() {
+    const isSHow = this.data.shoppingCartGetId.some((item) => item == data.saleMethod[0].Id)
+    console.log(isSHow);
+    return !isSHow
+
+  },
+  updateCloudLearning() {
+    const checkData = this.data.cmsDatas.find(item => item.refCode == 'jsek_cloudLearning')
+    this.getResourceData(checkData)
+    debugger
+    console.log(55555);
+  },
   // 閬嶅巻鏍戠粨鏋勮浆鎹负鏁扮粍鏂规硶
   handleTreeData(array) {
     const flattenedArray = [];
@@ -1475,9 +1476,9 @@
         if (new RegExp("(" + k + ")").test(fmt)) {
           fmt = fmt.replace(
             RegExp.$1,
-            RegExp.$1.length == 1
-              ? o[k]
-              : ("00" + o[k]).substr(("" + o[k]).length)
+            RegExp.$1.length == 1 ?
+            o[k] :
+            ("00" + o[k]).substr(("" + o[k]).length)
           );
         }
       }
@@ -1531,12 +1532,10 @@
     try {
       let query = {
         remarks: "缁勫嵎",
-        requests: [
-          {
-            saleMethodId: this.data.mockData.id,
-            count: 1,
-          },
-        ],
+        requests: [{
+          saleMethodId: this.data.mockData.id,
+          count: 1,
+        }, ],
       };
       if (this.data.flag) {
         this.setData({
@@ -1586,13 +1585,11 @@
     });
     // 璁板綍璐拱鏃堕棿锛屽苟璁剧姸鎬乻tate涓�1锛岃〃绀哄垰璐拱瀹屾垚缁勫嵎
     app.MG.identity.setUserKey({
-      setKeyRequests: [
-        {
-          domain: "mockData",
-          key: this.data.bookDetail.id + "",
-          value: JSON.stringify(this.data.mockData.mockList),
-        },
-      ],
+      setKeyRequests: [{
+        domain: "mockData",
+        key: this.data.bookDetail.id + "",
+        value: JSON.stringify(this.data.mockData.mockList),
+      }, ],
     });
   },
   // 鑾峰彇鐩稿叧鍥句功
@@ -1649,7 +1646,10 @@
       tabValue: "brief",
       pageLoading: true,
     });
-    this.onLoad({ id: e.detail.id, name: e.detail.name });
+    this.onLoad({
+      id: e.detail.id,
+      name: e.detail.name
+    });
   },
   // 搴曢儴璐拱鎸夐挳
   buyBtn() {
@@ -1673,8 +1673,7 @@
       return false;
     }
     wx.navigateTo({
-      url:
-        "/packageBookService/pages/components/webView/index?md5=" +
+      url: "/packageBookService/pages/components/webView/index?md5=" +
         this.data.fileInfo.md5 +
         "&fileName=" +
         this.data.fileInfo.bookName +
@@ -1849,8 +1848,7 @@
               wx.navigateTo({
                 url: "/packageDomain/pages/teacherCertification/index",
               });
-            } else if (res.cancel) {
-            }
+            } else if (res.cancel) {}
           },
         });
       }
@@ -1919,8 +1917,7 @@
               wx.navigateTo({
                 url: "/packageDomain/pages/teacherCertification/index",
               });
-            } else if (res.cancel) {
-            }
+            } else if (res.cancel) {}
           },
         });
       }
@@ -2005,4 +2002,4 @@
       teach: tree,
     });
   },
-});
+});
\ No newline at end of file
diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml
index 9e93aee..2c8f67f 100644
--- a/packageBookService/pages/bookServices/detail/index.wxml
+++ b/packageBookService/pages/bookServices/detail/index.wxml
@@ -236,6 +236,7 @@
           style="{{tabPanelstyle}}"
         >
           <view wx:if="{{!loading && learn.length}}">
+<<<<<<< Updated upstream
             <learn-resource
               bind:getFreeResource="getFreeResource"
               bind:allAddShoppiingCar="allAddShoppiingCar"
@@ -253,6 +254,13 @@
               buyIds="{{buyIdList}}"
               openLearnids="{{openLearnids}}"
             ></tree>
+=======
+            <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}"></learn-resource>
+
+            <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning"></tree>
+
+
+>>>>>>> Stashed changes
           </view>
           <view wx:if="{{noResources}}" class="noData">
             <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
diff --git a/packageDomain/pages/resourceDetails/myAudio/index.js b/packageDomain/pages/resourceDetails/myAudio/index.js
index 59806f9..5d30222 100644
--- a/packageDomain/pages/resourceDetails/myAudio/index.js
+++ b/packageDomain/pages/resourceDetails/myAudio/index.js
@@ -331,7 +331,6 @@
       appRefCode: app.config.appRefCode
     }).then((res) => {
       // console.log(res);
-
       this.setData({
         topicId: res.id
       })
@@ -370,7 +369,7 @@
   },
 
   confirmSuggest() {
-    if (!this.data.textvalue) {
+    if (!this.data.textvalue.trim()) {
       return wx.showToast({
         icon: 'error',
         title: '璇峰~鍐欑瑪璁板唴瀹�',
diff --git a/packagePersonal/pages/userSetting/index.wxml b/packagePersonal/pages/userSetting/index.wxml
index 46bf5f3..737d57a 100644
--- a/packagePersonal/pages/userSetting/index.wxml
+++ b/packagePersonal/pages/userSetting/index.wxml
@@ -46,7 +46,7 @@
           <view class=" label"> 閭锛� </view>
           <view class="item-content">
             <view class="inputBox1">
-              <t-input placeholder="杈撳叆閭" borderless value="{{userInfoForm.email}}" type="number" tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" bindchange="onEmailInput" />
+              <t-input placeholder="杈撳叆閭" borderless value="{{userInfoForm.email}}" tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" bindchange="onEmailInput" />
             </view>
           </view>
         </view>
diff --git a/pages/bibliographyList/index.wxml b/pages/bibliographyList/index.wxml
index 07af9b7..af18f5a 100644
--- a/pages/bibliographyList/index.wxml
+++ b/pages/bibliographyList/index.wxml
@@ -41,14 +41,13 @@
       <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 class="higherImageBox" bind:tap="downloadData" data-item="{{item}}">
-              <image src="{{item.icon}}" mode="aspectFill" />
+            <view class="higherImageBox">
+              <image data-item="{{item}}" bind:tap="downloadData" 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>
           <view class="higherTextBox">{{item.name}}</view>
         </view>
diff --git a/pages/bibliographyList/index.wxss b/pages/bibliographyList/index.wxss
index 96fdbf2..06c1fba 100644
--- a/pages/bibliographyList/index.wxss
+++ b/pages/bibliographyList/index.wxss
@@ -57,16 +57,14 @@
 .outsideHigherImageBox {}
 
 .downloadIcon {
-  width: 30rpx;
-  height: 24rpx;
+  width: 34rpx;
+  height: 34rpx;
   border-radius: 5rpx 5rpx 5rpx 5rpx;
   background: rgba(0, 0, 0, 0.3);
   position: absolute;
   top: 0rpx;
   right: 0rpx;
   padding: 10rpx;
-  display: flex;
-  align-items: center;
 }
 
 .downloadIcon image {
diff --git a/pages/bookExhibitionList/index.wxml b/pages/bookExhibitionList/index.wxml
index dc6ec50..98383a3 100644
--- a/pages/bookExhibitionList/index.wxml
+++ b/pages/bookExhibitionList/index.wxml
@@ -64,7 +64,7 @@
         <view class="textBox" title="{{item.subtitleName}}"> <text>{{item.subtitleName}}</text></view>
       </view>
     </view>
-    <view class="bottom-box">
+    <view class="bottom-box" wx:if="{{bookExhibitionList.length }}">
       <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.js b/pages/cart/index.js
index 175bdd6..9cfaaba 100644
--- a/pages/cart/index.js
+++ b/pages/cart/index.js
@@ -11,6 +11,7 @@
 
 Page({
   data: {
+    swipeOpened: false,
     onDisabled: false,
     imgUrl: [],
     shoppingCartData: [],
@@ -22,18 +23,24 @@
     start: 1,
     totalSize: '',
     isMore: null,
+    bookId: '',
+    bookName: ''
   },
 
   onLoad(options) {
-
     wx.setNavigationBarTitle({
       title: '璐墿杞�'
     });
     this.shoppingCartGet();
     console.log(this.data.shoppingCartData.length, 'this.data.shoppingCartData.length');
-
+    this.setData({
+      swipeOpened: true
+    })
   },
   onShow() {
+    this.setData({
+      swipeOpened: false
+    })
     if (typeof this.getTabBar === 'function' && this.getTabBar()) {
       this.getTabBar().setData({
         active: 3
@@ -46,6 +53,8 @@
       checkAll: false,
     })
   },
+
+
   onDelete(e) {
     const item = e.currentTarget.dataset.item;
     app.MG.store.delShoppingCart({
@@ -76,8 +85,13 @@
       this.setData({
         totalSize: res.totalSize
       })
-
       res.datas.forEach(item => {
+        console.log(res);
+
+        this.setData({
+          bookId: res.id,
+          bookName: res.name
+        })
         item.imgUrl = getPublicImage(item.productMonWithLinkDto.product.icon, '', '160');
         // this.setData({
         //   type: item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'
@@ -92,7 +106,6 @@
         shoppingCartData: res.datas
       });
       console.log(this.data.shoppingCartData, 'shoppingCartData');
-
       if (this.data.shoppingCartData.length === 0) {
         this.setData({
           onDisabled: true
@@ -265,5 +278,12 @@
     console.log(978);
     this.shoppingCartGet()
   },
-
+  onBook(e) {
+    // console.log(e);
+    const item = e.currentTarget.dataset.item
+    console.log(item);
+    // wx.navigateTo({
+    //   url: '/packageBookService/pages/bookServices/detail/index?id=' + item.id + '&name=' + item.name
+    // })
+  }
 });
\ No newline at end of file
diff --git a/pages/cart/index.wxml b/pages/cart/index.wxml
index ae8e8ad..11829b6 100644
--- a/pages/cart/index.wxml
+++ b/pages/cart/index.wxml
@@ -7,34 +7,21 @@
       <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> -->
+    <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 class="labelBox">
-            <view class="eBook" wx:if="{{item.type == 'product'}}">鐢靛瓙涔�</view>
-            <view wx:if="{{item.type == 'item'}}" class="cloudLearning">浜戝涔�</view>
-          </view>
-          <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.name}}</text>
-              </view> -->
+
               <view class="boosName">
-                <text class="eBook">浜戝涔�</text>
+                <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.name}}</text>
-              </view> -->
+
               <view class="boosName">
                 <text class="cloudLearning">浜戝涔�</text>
                 <text> {{item.name}}</text>
@@ -55,7 +42,7 @@
             <view class="contentCheckbox">
               <t-checkbox icon="rectangle" value=" {{item.id}}" data-item="{{item}}" checked="{{item.checked}}" bindchange="HandelItemChange" />
             </view>
-            <view class="left-image">
+            <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" />
             </view>
diff --git a/pages/cart/index.wxss b/pages/cart/index.wxss
index 6c554dc..8e0fe3b 100644
--- a/pages/cart/index.wxss
+++ b/pages/cart/index.wxss
@@ -29,28 +29,22 @@
   background: #F2F3F8;
   border-radius: 18rpx 18rpx 18rpx 18rpx;
   padding-bottom: 325rpx;
-  height: calc(100vh - 300rpx);
+  height: calc(100vh - 250rpx);
   /* width: calc(100vw - 60rpx); */
 
 }
 
 .bottomBox {
-  /* position: fixed;
-  left: 0;
-  right: 0;
-  bottom: calc(env(safe-area-inset-bottom) + 88rpx); */
-  height: 120rpx;
+
+  /* height: 135rpx; */
+  height: 100rpx;
   background: #FFFFFF;
-  box-shadow: 0rpx -2rpx 0rpx 2rpx rgba(0, 0, 0, 0.08);
   display: flex;
   align-items: center;
   position: fixed;
   bottom: calc(env(safe-area-inset-bottom) + 100rpx);
   left: 0;
   right: 0;
-  /* height: 44px; */
-  /* padding-bottom: 90px; */
-  /* padding-top: 10rpx; */
 }
 
 .checkGroupBox {
@@ -230,6 +224,8 @@
   color: #fff;
   padding: 5rpx;
   font-size: 22rpx;
+  font-weight: 400;
+
 
 }
 
@@ -243,7 +239,7 @@
   color: #fff;
   padding: 5rpx;
   font-size: 22rpx;
-
+  font-weight: 400;
 }
 
 .boosName {
diff --git a/pages/cart/paymentPage/index.wxss b/pages/cart/paymentPage/index.wxss
index 3357ef5..dd545e1 100644
--- a/pages/cart/paymentPage/index.wxss
+++ b/pages/cart/paymentPage/index.wxss
@@ -203,7 +203,7 @@
   color: #fff;
   padding: 5rpx;
   font-size: 22rpx;
-
+  font-weight: 400;
 }
 
 .cloudLearning {
@@ -216,6 +216,7 @@
   color: #fff;
   padding: 5rpx;
   font-size: 22rpx;
+  font-weight: 400;
 }
 
 .labelBox {
diff --git a/pages/retrievalPage/index.wxml b/pages/retrievalPage/index.wxml
index a7e3779..83d5f01 100644
--- a/pages/retrievalPage/index.wxml
+++ b/pages/retrievalPage/index.wxml
@@ -158,21 +158,16 @@
 
         <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower">
           <view class="outsideHigherBox">
-
             <view class="higherBox" wx:for="{{bookFairData}}" 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>
-
-                <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 class="higherImageBox" data-item="{{item}}">
+                  <image bind:tap="downloadData" 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>
-
               <view class="higherTextBox">{{item.name}}</view>
             </view>
           </view>
diff --git a/pages/retrievalPage/index.wxss b/pages/retrievalPage/index.wxss
index d1c5d04..e5f25ff 100644
--- a/pages/retrievalPage/index.wxss
+++ b/pages/retrievalPage/index.wxss
@@ -175,13 +175,19 @@
 }
 
 .outsideHigherImageBox {
-  position: relative;
+  /* position: relative; */
 }
 
 .higherImageBox {
   width: 190rpx;
   height: 255rpx;
   margin: 15rpx;
+  position: relative;
+}
+
+.higherImageBox image {
+  width: 100%;
+  height: 100%;
 }
 
 .downloadIcon {
@@ -190,17 +196,12 @@
   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;
 }
 
-.download {
-  width: 100%;
-  height: 100%;
-}
-
-.downloadshiftin {
+.downloadIcon image {
   width: 100%;
   height: 100%;
 }
@@ -351,9 +352,9 @@
   color: #ff6d00;
 }
 
-.dialogBox .t-input__control {
+/* .dialogBox .t-input__control {
   min-height: 100rpx;
-}
+} */
 
 .t-button--text {
   color: #000 !important;
diff --git a/pages/student/index.js b/pages/study/index.js
similarity index 85%
rename from pages/student/index.js
rename to pages/study/index.js
index a94d555..1e682d6 100644
--- a/pages/student/index.js
+++ b/pages/study/index.js
@@ -2,14 +2,18 @@
 import {
   getPublicImage
 } from "../../assets/js/middleGround/tool.js";
+import {
+  loginInfo
+} from '../../assets/js/login';
+import moment from 'moment'
 Page({
 
   /**
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
-    learningDuration: 0,
-    lastLoginTime: '2024-03-25 20:00:09',
+    learningDuration: "0灏忔椂",
+    lastLoginTime: '-',
     active: 0,
     titleBook: "鍥句功锛�0鏈級",
     titleCourse: "璇剧▼锛�0闂級",
@@ -31,8 +35,9 @@
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
    */
   onLoad() {
-    this.getStaticsSum();
-    this.getDataList(false);
+    // 妫�鏌ョ櫥褰曠姸鎬�
+
+
   },
 
   /**
@@ -51,7 +56,31 @@
         active: 2
       })
     }
+    const token = wx.getStorageSync(app.config.tokenKey)
+    if (!token) {
+      loginInfo(app, (data) => {
+        if (data) {
+          this.getUserInfo()
+          this.getStaticsSum();
+          this.getDataList(false);
+        }
+      })
+    } else {
+      this.getUserInfo()
+      this.getStaticsSum();
+      this.getDataList(false);
 
+    }
+
+  },
+  getUserInfo() {
+    app.MG.identity.getCurrentAppUser().then(res => {
+      if (res) {
+        this.setData({
+          lastLoginTime: res.lastLoginTime != null ? moment(res.lastLoginTime).format('YYYY-MM-DD HH:mm:ss') : '-'
+        })
+      }
+    })
   },
   getStaticsSum() {
     const data = {
diff --git a/pages/student/index.json b/pages/study/index.json
similarity index 100%
rename from pages/student/index.json
rename to pages/study/index.json
diff --git a/pages/student/index.wxml b/pages/study/index.wxml
similarity index 100%
rename from pages/student/index.wxml
rename to pages/study/index.wxml
diff --git a/pages/student/index.wxss b/pages/study/index.wxss
similarity index 100%
rename from pages/student/index.wxss
rename to pages/study/index.wxss

--
Gitblit v1.9.1