From dc1b48bb46e5715a5a55ee2c0f60175b849a6b3b Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 09 四月 2024 19:32:30 +0800
Subject: [PATCH] 问题修改

---
 packageBookService/pages/bookServices/list/index.js |   58 +++++++++++++++++++++++++---------------------------------
 1 files changed, 25 insertions(+), 33 deletions(-)

diff --git a/packageBookService/pages/bookServices/list/index.js b/packageBookService/pages/bookServices/list/index.js
index 6f9dd50..a870a7d 100644
--- a/packageBookService/pages/bookServices/list/index.js
+++ b/packageBookService/pages/bookServices/list/index.js
@@ -1,5 +1,7 @@
 const app = getApp();
-import { loginInfo } from "../../../../assets/js/login";
+import {
+  loginInfo
+} from "../../../../assets/js/login";
 Page({
   /**
    * 椤甸潰鐨勫垵濮嬫暟鎹�
@@ -22,12 +24,7 @@
     bookList: [],
     stairList: {
       value: "",
-      options: [
-        {
-          value: "",
-          label: "涓�绾�",
-        },
-      ],
+      options: [],
     },
     secondList: {
       value: [],
@@ -40,8 +37,7 @@
     },
     sortList: {
       value: "default",
-      options: [
-        {
+      options: [{
           value: "default",
           label: "榛樿鎺掑簭",
         },
@@ -127,13 +123,11 @@
     if (options.secondCode) {
       this.setData({
         secondCode: options.secondCode,
-        pathList: [
-          {
-            Path: options.secondCode,
-            Type: "*",
-            StoreRefCode: app.config.goodsStore,
-          },
-        ],
+        pathList: [{
+          Path: options.secondCode,
+          Type: "*",
+          StoreRefCode: app.config.goodsStore,
+        }, ],
       });
     }
     // 鑾峰彇浜岀骇鍒嗙被
@@ -228,12 +222,10 @@
       },
     };
     app.MG.store.getStoreChannelList(query).then(async (res) => {
-      const options = [
-        {
-          value: "",
-          label: "涓�绾�",
-        },
-      ];
+      const options = [{
+        value: "",
+        label: "涓�绾у垎绫�",
+      }, ];
       for (let index = 0; index < res.datas.length; index++) {
         const item = res.datas[index];
         options.push({
@@ -426,12 +418,10 @@
     }
     const query = {
       ...pathObj,
-      filterList: [
-        {
-          value: "Normal",
-          field: "state",
-        },
-      ],
+      filterList: [{
+        value: "Normal",
+        field: "state",
+      }, ],
       sort,
       paging: {
         start: 0,
@@ -471,9 +461,9 @@
   },
   // 涓�绾у垎绫诲垏鎹�
   onChangeStair(e) {
-    const path = e.detail.value.length
-      ? `${this.data.assortCheck.code}\\${e.detail.value}`
-      : this.data.assortCheck.code;
+    const path = e.detail.value.length ?
+      `${this.data.assortCheck.code}\\${e.detail.value}` :
+      this.data.assortCheck.code;
     console.log(this.data.path);
 
     this.setData({
@@ -603,7 +593,9 @@
   },
   // 璺宠浆鍥句功璇︽儏
   goDetail(e) {
-    const { book } = e.currentTarget.dataset;
+    const {
+      book
+    } = e.currentTarget.dataset;
     wx.navigateTo({
       url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`,
     });
@@ -626,4 +618,4 @@
       showDropdown: false,
     });
   },
-});
+});
\ No newline at end of file

--
Gitblit v1.9.1