From 96be59a64cc1d8fcaf1034e787717663c68df4a7 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期一, 26 五月 2025 10:39:58 +0800 Subject: [PATCH] 2025-5-26提交 --- src/assets/js/middleGround/api/store.js | 172 ++++++++++++++++++++++++-------------------------------- 1 files changed, 74 insertions(+), 98 deletions(-) diff --git a/src/assets/js/middleGround/api/store.js b/src/assets/js/middleGround/api/store.js index d00caf0..bbe8f32 100644 --- a/src/assets/js/middleGround/api/store.js +++ b/src/assets/js/middleGround/api/store.js @@ -180,7 +180,7 @@ Icon: [], TypeId: [], RefCode: [], - Description: [], + Description:[], ChildrenCount: [], ChildrenFolderCount: [], CreateDate: [], @@ -210,7 +210,7 @@ Icon: [], TypeId: [], RefCode: [], - Description: [], + Description:[], ChildrenCount: [], ChildrenFolderCount: [], CreateDate: [], @@ -235,7 +235,7 @@ Icon: [], TypeId: [], RefCode: [], - Description: [], + Description:[], LinkTypes: [linkType.linkType], PageQuery: { Start: 0, @@ -276,7 +276,7 @@ Name: [], Icon: [], RefCode: [], - Description: [], + Description:[], TypeId: [], SysType: [], State: [], @@ -312,43 +312,44 @@ method: 'post', data: body, cancelToken: source?.token - }).then((resp) => { - if (resp.length > 0) { - const data = resp[0] - if (data.datas.length) { - data.datas[0].subDatas = data.datas[0].cmsDatas - const datas = handleDetailQueryRequestData({ - productId, - item: data.datas[0], - fields, - itemFields: { - ...itemFields, - ...linkFields - }, - path, - coverSize, - handelEBooK - }) - return { - datas, - total: data.totalCount - } - } else { - return { - datas: [], - total: 0 + }) + .then((resp) => { + if (resp.length > 0) { + const data = resp[0] + if (data.datas.length) { + data.datas[0].subDatas = data.datas[0].cmsDatas + const datas = handleDetailQueryRequestData({ + item: data.datas[0], + fields, + itemFields: { + ...itemFields, + ...linkFields + }, + path, + coverSize, + handelEBooK, + + }) + return { + datas, + total: data.totalCount + } + } else { + return { + datas: [], + total: 0 + } } } - } - return { - datas: [], - total: 0 - } - }) + return { + datas: [], + total: 0 + } + }) }, - // 鑾峰彇鍟嗗搧璇︽儏锛屼笉杩斿洖 ChildrenCount,ChildrenFolderCount + // 鑾峰彇鍟嗗搧璇︽儏锛屼笉杩斿洖 ChildrenCount,ChildrenFolderCount // (姝ゆ帴鍙d负浜嗘弧瓒充笉杩斿洖 ChildrenCount,ChildrenFolderCount鑰屽悗缁坊鍔犵殑) 涓嶆槸涓彴鍘熸湁鐨� - getProductDetailNoChildren: ({ + getProductDetailNoChildren:({ path = '', storeInfo = goodsStore, channelInfo = '', @@ -379,7 +380,7 @@ Icon: [], TypeId: [], RefCode: [], - Description: [], + Description:[], // ChildrenCount: [], // ChildrenFolderCount: [], CreateDate: [], @@ -409,7 +410,7 @@ Icon: [], TypeId: [], RefCode: [], - Description: [], + Description:[], ChildrenCount: [], ChildrenFolderCount: [], CreateDate: [], @@ -434,7 +435,7 @@ Icon: [], TypeId: [], RefCode: [], - Description: [], + Description:[], LinkTypes: [linkType.linkType], PageQuery: { Start: 0, @@ -475,7 +476,7 @@ Name: [], Icon: [], RefCode: [], - Description: [], + Description:[], TypeId: [], SysType: [], State: [], @@ -511,39 +512,40 @@ method: 'post', data: body, cancelToken: source?.token - }).then((resp) => { - if (resp.length > 0) { - const data = resp[0] - if (data.datas.length) { - data.datas[0].subDatas = data.datas[0].cmsDatas - const datas = handleDetailQueryRequestData({ - productId, - item: data.datas[0], - fields, - itemFields: { - ...itemFields, - ...linkFields - }, - path, - coverSize, - handelEBooK - }) - return { - datas, - total: data.totalCount - } - } else { - return { - datas: [], - total: 0 + }) + .then((resp) => { + if (resp.length > 0) { + const data = resp[0] + if (data.datas.length) { + data.datas[0].subDatas = data.datas[0].cmsDatas + const datas = handleDetailQueryRequestData({ + item: data.datas[0], + fields, + itemFields: { + ...itemFields, + ...linkFields + }, + path, + coverSize, + handelEBooK, + + }) + return { + datas, + total: data.totalCount + } + } else { + return { + datas: [], + total: 0 + } } } - } - return { - datas: [], - total: 0 - } - }) + return { + datas: [], + total: 0 + } + }) }, // 鑾峰彇浼樻儬鍒稿垪琛� getChannelPromoteCodeList(data) { @@ -868,32 +870,6 @@ getProductBySaleMethod(data) { return request({ url: '/store/api/ApiGetProductBySaleMethod', - method: 'post', - data - }) - }, - // 绉垎鍏戞崲 - newOrderPay(data) { - return request({ - url: '/store/api/NewOrderPay', - method: 'post', - data - }) - }, - - // 鍒犻櫎绉垎璁㈠崟 - delOrderPay(data) { - return request({ - url: '/store/api/DelOrderPay', - method: 'post', - data - }) - }, - - // 鏇存柊绉垎璁㈠崟 - UpdateOrderPay(data) { - return request({ - url: '/store/api/UpdateOrderPay', method: 'post', data }) -- Gitblit v1.9.1