From abd92a200ced7db4d9cffc3657292bf053da6b97 Mon Sep 17 00:00:00 2001 From: donqi Date: Fri, 17 Jun 2022 13:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=EF=BC=9B=E4=BE=9B=E5=BA=94=E9=93=BE=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8F=8A=E7=8A=B6=E6=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/globalData.js | 2 +- common/js/request.js | 20 +++ components/custom-bar/load-status-bar.vue | 6 +- .../goods-card/horizontal-goods-card.vue | 26 ++- pages/area-proxy/my-team.vue | 5 +- pages/index/goods-manage.vue | 152 +++++++++++++++--- pages/order-manage/order-manage.vue | 2 +- 7 files changed, 176 insertions(+), 37 deletions(-) diff --git a/common/js/globalData.js b/common/js/globalData.js index 04cd49b..778253f 100644 --- a/common/js/globalData.js +++ b/common/js/globalData.js @@ -2,5 +2,5 @@ export default { deptId: 101, from: 'server', initPageNum: 1, - initPageSize: 50 + initPageSize: 20 } \ No newline at end of file diff --git a/common/js/request.js b/common/js/request.js index 6e303f7..e27e828 100644 --- a/common/js/request.js +++ b/common/js/request.js @@ -433,5 +433,25 @@ export default { data: params }) return res[1].data; + }, + async qryProductPage(params = {}) { + let res = await uni.request({ + url: '/goods/goods/list', + method: 'POST', + data: params, + header: { + pageNum: params.pageNum, + pageSize: params.pageSize + } + }) + return res[1].data; + }, + async updateGoodsStatus(params = {}) { + let res = await uni.request({ + url: '/goods/goods/app/updateStatus', + method: 'POST', + data: params + }) + return res[1].data; }, } diff --git a/components/custom-bar/load-status-bar.vue b/components/custom-bar/load-status-bar.vue index 4031e81..878d42b 100644 --- a/components/custom-bar/load-status-bar.vue +++ b/components/custom-bar/load-status-bar.vue @@ -1,7 +1,7 @@