From edcf844adb2e88d00aac7b9c40783f182846d1ab Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 23 Sep 2024 17:39:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=AF=A6=E6=83=85=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=95=86?= =?UTF-8?q?=E5=93=81=E7=AE=A1=E7=90=86=EF=BC=8C=E6=9B=B4=E6=96=B0=E4=BB=A3?= =?UTF-8?q?=E5=AE=A2=E4=B8=8B=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/utils/returrn-data.js | 3 +- components/my-components/my-steps-item.vue | 334 --- components/my-components/my-steps.vue | 90 - http/yskApi/goods.js | 5 + http/yskApi/user.js | 25 + .../add-Product/add-Product-9-19-back.vue | 2026 +++++++++++++++++ pageProduct/add-Product/add-Product.vue | 227 +- .../add-Product/components/choose-danwei.vue | 159 ++ .../components/choose-haocai - 副本.vue | 57 + .../add-Product/components/choose-haocai.vue | 149 ++ .../add-Product/components/edit-haocai.vue | 359 +++ .../add-specifications - 副本 (2).vue | 499 ++++ .../add-specifications/add-specifications.vue | 217 +- pageProduct/index/components/baosun.vue | 134 ++ pageProduct/index/components/edit-guige.vue | 141 ++ pageProduct/index/components/edit-price.vue | 186 ++ pageProduct/index/components/edit-stock.vue | 235 ++ pageProduct/index/components/goods.vue | 165 +- pageProduct/index/index.vue | 214 +- pageProduct/util.js | 41 + pageTable/index/components/table-item.vue | 13 +- pages.json | 16 + pages/index/index.vue | 3 +- pagesCreateOrder/components/edit-discount.vue | 19 +- .../confirm-order/confirm-order.vue | 197 +- pagesCreateOrder/index/index.vue | 61 +- pagesOrder/detail/components/list.vue | 55 +- pagesOrder/detail/components/order.vue | 6 +- pagesOrder/detail/components/step.vue | 14 +- pagesOrder/detail/components/user.vue | 32 +- pagesOrder/detail/detail.vue | 117 +- pagesOrder/index/compoents/order-item.vue | 63 +- pagesOrder/index/compoents/order-list.vue | 7 +- pagesOrder/index/index.vue | 39 +- pagesOrder/pay-order/pay-order.vue | 320 +++ pagesOrder/tuikuan/tuikuan.vue | 22 + 36 files changed, 5301 insertions(+), 949 deletions(-) delete mode 100644 components/my-components/my-steps-item.vue delete mode 100644 components/my-components/my-steps.vue create mode 100644 http/yskApi/user.js create mode 100644 pageProduct/add-Product/add-Product-9-19-back.vue create mode 100644 pageProduct/add-Product/components/choose-danwei.vue create mode 100644 pageProduct/add-Product/components/choose-haocai - 副本.vue create mode 100644 pageProduct/add-Product/components/choose-haocai.vue create mode 100644 pageProduct/add-Product/components/edit-haocai.vue create mode 100644 pageProduct/add-specifications/add-specifications - 副本 (2).vue create mode 100644 pageProduct/index/components/baosun.vue create mode 100644 pageProduct/index/components/edit-guige.vue create mode 100644 pageProduct/index/components/edit-price.vue create mode 100644 pageProduct/index/components/edit-stock.vue create mode 100644 pageProduct/util.js create mode 100644 pagesOrder/pay-order/pay-order.vue create mode 100644 pagesOrder/tuikuan/tuikuan.vue diff --git a/commons/utils/returrn-data.js b/commons/utils/returrn-data.js index 6cb574f..3619e8e 100644 --- a/commons/utils/returrn-data.js +++ b/commons/utils/returrn-data.js @@ -1,6 +1,7 @@ -export const objToArrary = (obj) => { +export const objToArrary = (obj,keyNewName) => { return Object.entries(obj).map(([key, value]) => ({ key, + [keyNewName]:key, ...value, })) } \ No newline at end of file diff --git a/components/my-components/my-steps-item.vue b/components/my-components/my-steps-item.vue deleted file mode 100644 index d0eeb65..0000000 --- a/components/my-components/my-steps-item.vue +++ /dev/null @@ -1,334 +0,0 @@ - - - - - diff --git a/components/my-components/my-steps.vue b/components/my-components/my-steps.vue deleted file mode 100644 index bf912b7..0000000 --- a/components/my-components/my-steps.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - - diff --git a/http/yskApi/goods.js b/http/yskApi/goods.js index 8f66df3..05a7af4 100644 --- a/http/yskApi/goods.js +++ b/http/yskApi/goods.js @@ -128,4 +128,9 @@ export function $tbProductV2(data) { export function $tbProskuConV2(data) { return http.req('/api/tbProskuCon/V2', data, 'POST') } + +/* 修改商品相关(快捷接口) */ +export function $updateProductData(data) { + return http.req('/api/stock/updateProductData', data, 'POST') +} // v2 api end \ No newline at end of file diff --git a/http/yskApi/user.js b/http/yskApi/user.js new file mode 100644 index 0000000..1b46450 --- /dev/null +++ b/http/yskApi/user.js @@ -0,0 +1,25 @@ +import http from './http.js' +const request=http.request +/** + * 用户详情 + * @returns + */ +export function tbShopInfo(shopId) { + const _shopId=uni.getStorageSync('shopId') + return request({ + url: `/api/tbShopInfo/${shopId||_shopId}`, + method: 'get' + }) +} + +/** + * 修改店铺信息 + * @returns + */ +export function tbShopInfoPut(data) { + return request({ + url: `/api/tbShopInfo`, + method: 'put', + data + }) +} \ No newline at end of file diff --git a/pageProduct/add-Product/add-Product-9-19-back.vue b/pageProduct/add-Product/add-Product-9-19-back.vue new file mode 100644 index 0000000..5dc1ade --- /dev/null +++ b/pageProduct/add-Product/add-Product-9-19-back.vue @@ -0,0 +1,2026 @@ + + + + + \ No newline at end of file diff --git a/pageProduct/add-Product/add-Product.vue b/pageProduct/add-Product/add-Product.vue index b13bd6f..a954931 100644 --- a/pageProduct/add-Product/add-Product.vue +++ b/pageProduct/add-Product/add-Product.vue @@ -1,7 +1,7 @@ @@ -894,11 +762,8 @@ - - - - - + + @@ -906,6 +771,9 @@ + + + + + \ No newline at end of file diff --git a/pageProduct/add-Product/components/choose-haocai - 副本.vue b/pageProduct/add-Product/components/choose-haocai - 副本.vue new file mode 100644 index 0000000..7ef8774 --- /dev/null +++ b/pageProduct/add-Product/components/choose-haocai - 副本.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/pageProduct/add-Product/components/choose-haocai.vue b/pageProduct/add-Product/components/choose-haocai.vue new file mode 100644 index 0000000..0b5cf16 --- /dev/null +++ b/pageProduct/add-Product/components/choose-haocai.vue @@ -0,0 +1,149 @@ + + + + + \ No newline at end of file diff --git a/pageProduct/add-Product/components/edit-haocai.vue b/pageProduct/add-Product/components/edit-haocai.vue new file mode 100644 index 0000000..e27798d --- /dev/null +++ b/pageProduct/add-Product/components/edit-haocai.vue @@ -0,0 +1,359 @@ + + + + + \ No newline at end of file diff --git a/pageProduct/add-specifications/add-specifications - 副本 (2).vue b/pageProduct/add-specifications/add-specifications - 副本 (2).vue new file mode 100644 index 0000000..1b8fcac --- /dev/null +++ b/pageProduct/add-specifications/add-specifications - 副本 (2).vue @@ -0,0 +1,499 @@ + + + + + \ No newline at end of file diff --git a/pageProduct/add-specifications/add-specifications.vue b/pageProduct/add-specifications/add-specifications.vue index 1b8fcac..46772d8 100644 --- a/pageProduct/add-specifications/add-specifications.vue +++ b/pageProduct/add-specifications/add-specifications.vue @@ -1,53 +1,62 @@