From 93aadab3e592ccb4d2f7ff00f4bd79d6e7a7daec Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 11 七月 2024 15:48:28 +0800
Subject: [PATCH] 详情页接口优化,图书列表页骨架屏优化

---
 pages/bookServices/assort/index.js |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/pages/bookServices/assort/index.js b/pages/bookServices/assort/index.js
index 888e96e..fe2f1d5 100644
--- a/pages/bookServices/assort/index.js
+++ b/pages/bookServices/assort/index.js
@@ -25,6 +25,37 @@
     bookList: [],
     loading: false,
     listLoding: false,
+    stairListLoading: false,
+    rowCol: [{
+        width: '50%',
+      },
+      {
+        width: '100%'
+      },
+      {
+        width: '80%'
+      },
+      {
+        width: '100%'
+      }, {
+        width: '100%'
+      },
+      {
+        width: '100%'
+      },
+      {
+        width: '50%'
+      },
+      {
+        width: '100%'
+      },
+      {
+        width: '80%'
+      },
+      {
+        width: '100%'
+      },
+    ],
   },
 
   /**
@@ -87,6 +118,7 @@
   getAssortList() {
     this.setData({
       loading: true,
+      listLoding: true,
     });
     const query = {
       path: "*",
@@ -134,7 +166,8 @@
   // 鑾峰彇涓�绾у垎绫�
   getStairList(path) {
     this.setData({
-      listLoding: true,
+      stairListLoading: true,
+      startList: []
     });
     const query = {
       path,
@@ -160,11 +193,13 @@
           (item.icon = getPublicImage(item.icon, 500)) :
           (item.icon = item.icon);
         item.children = await this.getSecondList(item);
+
       }
       // 涓�绾у垎绫昏祴鍊�
       this.setData({
         startList: res.datas,
         listLoding: false,
+        stairListLoading: false,
         "startCheck.id": res.datas[0].id,
         "startCheck..code": "",
       });

--
Gitblit v1.9.1