From e060ad2b2da9884e00b36796548eacc6a2b9a5d3 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 29 三月 2024 09:44:30 +0800
Subject: [PATCH] 图书详情,列表页bug修改

---
 packageBookService/pages/bookServices/list/index.js |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/packageBookService/pages/bookServices/list/index.js b/packageBookService/pages/bookServices/list/index.js
index 868752e..5cd1be5 100644
--- a/packageBookService/pages/bookServices/list/index.js
+++ b/packageBookService/pages/bookServices/list/index.js
@@ -32,7 +32,9 @@
     secondList: {
       value: [],
       options: [],
+      disabled: false,
     },
+    disabledSecondList: false,
     majorProjectList: {
       value: [],
       options: [],
@@ -49,7 +51,8 @@
       size: '50rpx'
     },
     loading: false,
-    noData: false
+    noData: false,
+    showDropdown: false,
   },
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
@@ -341,10 +344,9 @@
         "pageCount.total": res.total,
         loading: false
       });
-      console.log('鍥句功鍒楄〃', res.datas);
       if (!res.datas.length) {
         this.setData({
-          noData: true
+          noData: true,
         })
       }
     });
@@ -354,6 +356,7 @@
     const path = e.detail.value.length ?
       `${this.data.assortCheck.code}\\${e.detail.value}` :
       this.data.assortCheck.code;
+    console.log(this.data.path);
     this.setData({
       pathList: [],
       stairCode: e.detail.value,
@@ -363,6 +366,16 @@
     });
     this.getBookList(path);
     this.getSecondList(path);
+    if (e.detail.value == '') {
+      this.setData({
+        disabledSecondList: true
+      })
+    } else {
+      this.setData({
+        disabledSecondList: false
+      })
+    }
+    console.log(this.data.disabledSecondList);
   },
   // 浜岀骇鍒嗙被鍒囨崲
   onChangeSecond(e) {
@@ -461,4 +474,16 @@
     });
     this.getBookList(this.data.path)
   },
+  openDropdown() {
+    console.log('灞曞紑鍝�', );
+    this.setData({
+      showDropdown: true
+    })
+  },
+  closeDropdown() {
+    console.log('鍏抽棴');
+    this.setData({
+      showDropdown: false
+    })
+  }
 });
\ No newline at end of file

--
Gitblit v1.9.1