From 3e778610752d6ad3fbb96da18d39d171866613e3 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 12 四月 2024 17:40:36 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- pages/bookServices/assort/index.js | 59 +++++++++++++++++++++++++++++++---------------------------- 1 files changed, 31 insertions(+), 28 deletions(-) diff --git a/pages/bookServices/assort/index.js b/pages/bookServices/assort/index.js index ad80311..888e96e 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({ /** @@ -88,18 +90,19 @@ }); 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( @@ -135,29 +138,29 @@ }); 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, 500)) : + (item.icon = item.icon); item.children = await this.getSecondList(item); } - console.log(res.datas); // 涓�绾у垎绫昏祴鍊� this.setData({ startList: res.datas, @@ -174,12 +177,10 @@ let datas; const query = { path, - filterList: [ - { - value: "Normal", - field: "state", - }, - ], + filterList: [{ + value: "Normal", + field: "state", + }, ], coverSize: { width: 500, }, @@ -188,7 +189,10 @@ 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++) { @@ -205,7 +209,6 @@ "startCheck.id": data.id, "startCheck.code": data.refCode, }); - console.log(data); }, // 璺宠浆鍒楄〃椤� goPageList(e) { @@ -231,4 +234,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