From 446dcf957948ba6a2d7ebcab88c5028dfc431206 Mon Sep 17 00:00:00 2001 From: lzhizhao <790086754@qq.com> Date: Wed, 29 Oct 2025 18:06:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=91=E5=B8=83=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=91=E5=B8=83=E6=91=8A=E4=BD=8D=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/userData.js | 12 +- .../commodity/popup/add-or-update.vue | 412 +++++++++++++++--- 2 files changed, 364 insertions(+), 60 deletions(-) diff --git a/src/store/modules/userData.js b/src/store/modules/userData.js index 75584fd..d858499 100644 --- a/src/store/modules/userData.js +++ b/src/store/modules/userData.js @@ -1,9 +1,10 @@ const state = { isMerchant: false, //是否是经营者还是摊铺 不是就是为false marketList: [], //经营的市场 - storeList: [], //经营的店铺 + storeList: [], //经营的店铺 旧字段兼容 + shopList: [], //经营的店铺 marketId: "", - shopId: "", + shopId: "" }; // actions @@ -16,15 +17,16 @@ const mutations = { state.isMerchant = data.isMerchant; state.marketList = data.marketList; - state.storeList = data.storeList; + state.storeList = data.shopList; + state.shopList = data.shopList; state.marketId = data.marketId; state.shopId = data.shopId; - }, + } }; export default { namespaced: true, state, mutations, - actions, + actions }; diff --git a/src/views/modules/operation-management/commodity/popup/add-or-update.vue b/src/views/modules/operation-management/commodity/popup/add-or-update.vue index 0766650..570495c 100644 --- a/src/views/modules/operation-management/commodity/popup/add-or-update.vue +++ b/src/views/modules/operation-management/commodity/popup/add-or-update.vue @@ -8,8 +8,63 @@ @close="handleClose" class="obj-modal" > - + + + + + + + + + + + + + + + +
+ +
+
• 请先选择要发布商品的摊位
+
• 商品发布后将在所选摊位中展示
+
• 同一商品可以发布到多个摊位
+
+
+
+
-
只能上传jpg/png文件,且不超过500kb
+
+ 只能上传jpg/png文件,且不超过500kb +
- + - + - + @@ -74,7 +147,11 @@ @@ -87,7 +164,11 @@ @@ -96,7 +177,11 @@ @@ -109,7 +194,11 @@ @@ -120,20 +209,46 @@ 修改规格配置 - - - - - - + + + + + + - @@ -147,7 +262,11 @@ > - +
@@ -162,7 +281,9 @@ multiple > -
只能上传jpg/png文件,且不超过500kb
+
+ 只能上传jpg/png文件,且不超过500kb +
@@ -177,19 +298,31 @@ :headers="{ token: 'Bearer ' + $cookie.get('token') }" > 点击上传 -
支持mp4、avi、mov等视频格式,建议不超过50MB
+
+ 支持mp4、avi、mov等视频格式,建议不超过50MB +
- {{ currentPanel === '其他信息' ? '保存并上架' : '下一步' }} - 保存并放入仓库 + {{ + currentPanel === "其他信息" ? "保存并上架" : "下一步" + }} + 保存并放入仓库 - +