From b471803c1a9e4c1452a98a8b3631bde66641b910 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 25 九月 2024 15:01:50 +0800
Subject: [PATCH] css

---
 pages/retrievalPage/index.js |  164 +++++++++++-------------------------------------------
 1 files changed, 35 insertions(+), 129 deletions(-)

diff --git a/pages/retrievalPage/index.js b/pages/retrievalPage/index.js
index 29f5b3d..62a3742 100644
--- a/pages/retrievalPage/index.js
+++ b/pages/retrievalPage/index.js
@@ -178,13 +178,6 @@
   },
 
   /**
-   * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
-   */
-  onReachBottom() {
-
-  },
-
-  /**
    * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
    */
   onShareAppMessage() {},
@@ -355,8 +348,6 @@
       ...digitalTextbooksObj,
       ...fields
     }
-
-
     let seminarObj = {}
     if (this.data.searchVal) {
       seminarObj = {
@@ -523,6 +514,7 @@
       this.setData({
         loading: false,
         hidden: false,
+        isMore: null
       })
     })
     wx.stopPullDownRefresh()
@@ -640,7 +632,6 @@
   },
   onBookExhibitionDetails(e) {
     const item = e.currentTarget.dataset.item
-
     wx.navigateTo({
       url: '/pages/bookExhibitionDetails/index?id=' + item.id + '&bookName=' + item.name // 鍋囪璺宠浆鍒拌鎯呴〉闈紝骞朵紶閫掍簡id鍙傛暟
     });
@@ -649,120 +640,6 @@
   //涓婃媺鍑芥暟
   onPullDownRefresh() {
     console.log("涓嬫媺鍒锋柊...");
-  },
-  /**
-   * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
-   */
-  onReachBottom(e) {
-    if (this.data.tabValue == 0) {
-      if (this.data.bookData.length < this.data.bookTotal) {
-        this.setData({
-          isMore: true,
-          "pageCount.page": this.data.pageCount.page + 1
-        })
-        this.retrievalPageGet()
-      } else {
-        this.setData({
-          isMore: true,
-        })
-        setTimeout(() => {
-          this.setData({
-            isMore: false
-          })
-        }, 100)
-
-      }
-
-    } else if (this.data.tabValue == 1) {
-
-      if (this.data.courseData.length < this.data.courseTotal) {
-        this.setData({
-          isMore: true,
-          "pageCount.page": this.data.pageCount.page + 1
-        })
-        this.retrievalPageGet()
-      } else {
-        this.setData({
-          isMore: true,
-        })
-        setTimeout(() => {
-          this.setData({
-            isMore: false
-          })
-        }, 100)
-
-      }
-    } else if (this.data.tabValue == 2) {
-
-      if (this.data.digitalTextbooksData.length < this.data.digitalTextbooksTotal && this.data.digitalTextbooksData.length > 9) {
-        this.setData({
-          isMore: true,
-          "pageCount.page": this.data.pageCount.page + 1
-        })
-        this.retrievalPageGet()
-      } else {
-        this.setData({
-          isMore: true,
-        })
-        setTimeout(() => {
-          this.setData({
-            isMore: false
-          })
-        }, 100)
-
-      }
-    } else if (this.data.tabValue == 3) {
-      if (this.data.seminarData.length < this.data.seminarTotal) {
-        this.setData({
-          isMore: true,
-          "pageCount.page": this.data.pageCount.page + 1
-        })
-        this.retrievalPageGet()
-      } else {
-        this.setData({
-          isMore: true,
-        })
-        setTimeout(() => {
-          this.setData({
-            isMore: false
-          })
-        }, 100)
-      }
-    } else if (this.data.tabValue == 4) {
-      if (this.data.bookFairData.length < this.data.bookFairTotal) {
-        this.setData({
-          isMore: true,
-          "pageCount.page": this.data.pageCount.page + 1
-        })
-        this.bibliographyGet()
-      } else {
-        this.setData({
-          isMore: true,
-        })
-        setTimeout(() => {
-          this.setData({
-            isMore: false
-          })
-        }, 100)
-      }
-    } else if (this.data.tabValue == 5) {
-      if (this.data.biblioClassificationData.length < this.data.biblioClassificationTotal) {
-        this.setData({
-          isMore: true,
-          "pageCount.page": this.data.pageCount.page + 1
-        })
-        this.retrievalPageGet()
-      } else {
-        this.setData({
-          isMore: true,
-        })
-        setTimeout(() => {
-          this.setData({
-            isMore: false
-          })
-        }, 100)
-      }
-    }
   },
 
   // 涓嬫媺鍑芥暟
@@ -780,12 +657,41 @@
     }
   },
 
-  underConstruction() {
-    wx.showToast({
-      title: "寤鸿涓�",
-      icon: 'none',
-      duration: 1000
+  underConstruction(e) {
+    const {
+      book
+    } = e.currentTarget.dataset;
+    console.log(book);
+    wx.navigateTo({
+      url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + book.id + '&path=' + book.idPath,
+    });
+  },
+  goTextBookDetail(e) {
+    const {
+      item
+    } = e.currentTarget.dataset;
+    wx.navigateTo({
+      url: '/pages/digitalTextbooks/digitalTextbooksDetails/index?id=' + item.id,
+    });
+  },
+  goSubjectDetail(e) {
+    // return wx.showToast({
+    //   title: "寤鸿涓�",
+    //   icon: 'none',
+    //   duration: 1000
+    // })
+    const item = e.currentTarget.dataset.item
+    // 缃戦〉绫诲瀷璺宠浆鍒扮綉鍧�澶嶅埗椤碉紝鍥犱负url浼犲弬涓嶈兘浼� 甯﹀弬鏁扮殑缃戠粶鍦板潃锛屾墍浠ユ澶勮鎶婄綉缁滃湴鍧�閲岀殑浼犲弬鎽樺嚭鏉ワ紝鏀惧埌url閲�
+    let urlData = ''
+    const flags = item.jsek_link.indexOf("?")
+    if (flags > -1) {
+      urlData = item.jsek_link.slice(flags + 1, item.jsek_link.length)
+    }
+    let url = '/packageBookService/pages/bookServices/linkPage/index'
+    wx.navigateTo({
+      url: urlData ? url + `?path=${item.jsek_link.slice(0,flags)}` + '&' + urlData : url + `?path=${item.jsek_link}`
     })
+
   },
   // 閭鐐瑰嚮
   mailbox(e) {

--
Gitblit v1.9.1