From 066eb8004e608277fe411fc46b07785b6698188f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Sun, 17 Nov 2024 18:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/mer_admin.js | 20 ++++-- src/views/modules/bank-card/index.vue | 2 +- src/views/modules/product/index.vue | 50 +++++++++++--- .../modules/product/popup/add-or-update.vue | 67 ++++++++++++------- .../product/popup/add-specifications.vue | 21 ++++++ 5 files changed, 121 insertions(+), 39 deletions(-) diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index ad3bcd0..74ff7d7 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -49,12 +49,12 @@ export const mer_admin = { return $http.post(`/merchant-api/product/page`, data); }, //商户商品分类 - getProductCategory: () => { - return $http.get( - `/merchant-api/product/category/list?shopId=${ - JSON.parse(sessionStorage.getItem("userInfo")).shopId - }` - ); + getProductCategory: (data) => { + return $http.request({ + url: `/merchant-api/product/category/list`, + method: "get", + params: data, + }); }, //上架或下架 putOnShelvesProducts: (data) => { @@ -154,6 +154,14 @@ export const mer_admin = { params: { id }, }); }, + //市场下的店铺列表 + storeList: (data) => { + return $http.request({ + method: "get", + url: `/merchant-api/market/shop_list`, + params: data, + }); + }, //获取品牌信息 getBrandInfo: () => { return $http.request({ diff --git a/src/views/modules/bank-card/index.vue b/src/views/modules/bank-card/index.vue index cb8fa67..80471d5 100644 --- a/src/views/modules/bank-card/index.vue +++ b/src/views/modules/bank-card/index.vue @@ -133,7 +133,7 @@ export default { { title: "银行卡号", align: "center", - field: "cardId", + field: "cardNo", }, { title: "手机号", diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue index 1bb5a99..f143f17 100644 --- a/src/views/modules/product/index.vue +++ b/src/views/modules/product/index.vue @@ -1,6 +1,6 @@