From bbba5d26e9e26c910ed337dcb65f462752ee6dce Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期四, 12 九月 2024 09:11:47 +0800
Subject: [PATCH] fenxiang

---
 pages/bookServices/assort/index.js |  100 ++++++++++++++++++++++++++++++++++---------------
 1 files changed, 69 insertions(+), 31 deletions(-)

diff --git a/pages/bookServices/assort/index.js b/pages/bookServices/assort/index.js
index ad80311..527c769 100644
--- a/pages/bookServices/assort/index.js
+++ b/pages/bookServices/assort/index.js
@@ -1,5 +1,7 @@
 // pages/bookServices/assort/index.js
-import { getPublicImage } from "../../../assets/js/middleGround/tool";
+import {
+  getPublicImage
+} from "../../../assets/js/middleGround/tool";
 const app = getApp();
 Page({
   /**
@@ -23,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%'
+      },
+    ],
   },
 
   /**
@@ -80,26 +113,28 @@
    * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
    */
   onShareAppMessage() {},
-
+  onShareTimeline() {},
   // 鑾峰彇渚ц竟鏍忓垪琛�
   getAssortList() {
     this.setData({
       loading: true,
+      listLoding: true,
     });
     const query = {
       path: "*",
-      filterList: [
-        {
-          value: "Normal",
-          field: "state",
-        },
-      ],
+      filterList: [{
+        value: "Normal",
+        field: "state",
+      }, ],
       queryType: "\\",
       searchList: [],
       size: "30",
       start: "0",
       storeRefCode: app.config.goodsStore,
-      sort: { type: "Asc", field: "LinkOrder" },
+      sort: {
+        type: "Asc",
+        field: "LinkOrder"
+      },
     };
     app.MG.store.getStoreChannelList(query).then((res) => {
       const list = res.datas.filter(
@@ -131,37 +166,40 @@
   // 鑾峰彇涓�绾у垎绫�
   getStairList(path) {
     this.setData({
-      listLoding: true,
+      stairListLoading: true,
+      startList: []
     });
     const query = {
       path,
-      filterList: [
-        {
-          value: "Normal",
-          field: "state",
-        },
-      ],
+      filterList: [{
+        value: "Normal",
+        field: "state",
+      }, ],
       queryType: "\\",
       searchList: [],
       size: "30",
       start: "0",
       storeRefCode: app.config.goodsStore,
-      sort: { type: "Asc", field: "LinkOrder" },
+      sort: {
+        type: "Asc",
+        field: "LinkOrder"
+      },
     };
     app.MG.store.getStoreChannelList(query).then(async (res) => {
       // 鑾峰彇浜岀骇鍒嗙被
       for (let index = 0; index < res.datas.length; index++) {
         const item = res.datas[index];
-        item.icon
-          ? (item.icon = getPublicImage(item.icon, 500))
-          : (item.icon = item.icon);
+        item.icon ?
+          (item.icon = getPublicImage(item.icon, 150)) :
+          (item.icon = item.icon);
         item.children = await this.getSecondList(item);
+
       }
-      console.log(res.datas);
       // 涓�绾у垎绫昏祴鍊�
       this.setData({
         startList: res.datas,
         listLoding: false,
+        stairListLoading: false,
         "startCheck.id": res.datas[0].id,
         "startCheck..code": "",
       });
@@ -174,12 +212,10 @@
     let datas;
     const query = {
       path,
-      filterList: [
-        {
-          value: "Normal",
-          field: "state",
-        },
-      ],
+      filterList: [{
+        value: "Normal",
+        field: "state",
+      }, ],
       coverSize: {
         width: 500,
       },
@@ -188,12 +224,15 @@
       size: "30",
       start: "0",
       storeRefCode: app.config.goodsStore,
-      sort: { type: "Asc", field: "LinkOrder" },
+      sort: {
+        type: "Asc",
+        field: "LinkOrder"
+      },
     };
     await app.MG.store.getStoreChannelList(query).then((res) => {
       for (let index = 0; index < res.datas.length; index++) {
         const element = res.datas[index];
-        if (element.icon) element.icon = getPublicImage(element.icon, 500);
+        if (element.icon) element.icon = getPublicImage(element.icon, 150);
       }
       datas = res.datas;
     });
@@ -205,7 +244,6 @@
       "startCheck.id": data.id,
       "startCheck.code": data.refCode,
     });
-    console.log(data);
   },
   // 璺宠浆鍒楄〃椤�
   goPageList(e) {
@@ -231,4 +269,4 @@
       url: `/packageBookService/pages/bookServices/list/index?assorName=${this.data.assortCheck.name}&assortCode=${this.data.assortCheck.code}&stairCode=${this.data.startCheck.code}&searchValue=${e.detail.value}`,
     });
   },
-});
+});
\ No newline at end of file

--
Gitblit v1.9.1