diff --git a/src/store/index.js b/src/store/index.js
index 97aaef8..58eb711 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,14 +1,15 @@
-import Vue from 'vue'
-import Vuex from 'vuex'
-import app from './modules/app'
-import dict from './modules/dict'
-import user from './modules/user'
-import tagsView from './modules/tagsView'
-import permission from './modules/permission'
-import settings from './modules/settings'
-import getters from './getters'
+import Vue from "vue";
+import Vuex from "vuex";
+import app from "./modules/app";
+import dict from "./modules/dict";
+import user from "./modules/user";
+import tagsView from "./modules/tagsView";
+import permission from "./modules/permission";
+import settings from "./modules/settings";
+import platformShop from "./modules/platform/shop";
+import getters from "./getters";
-Vue.use(Vuex)
+Vue.use(Vuex);
const store = new Vuex.Store({
modules: {
@@ -17,9 +18,10 @@ const store = new Vuex.Store({
user,
tagsView,
permission,
- settings
+ settings,
+ platformShop,
},
- getters
-})
+ getters,
+});
-export default store
+export default store;
diff --git a/src/store/modules/platform/shop.js b/src/store/modules/platform/shop.js
new file mode 100644
index 0000000..25690bb
--- /dev/null
+++ b/src/store/modules/platform/shop.js
@@ -0,0 +1,31 @@
+export default {
+ state: {
+ // 商品分类
+ categoryOptions: [
+ {
+ label: "1",
+ children: [
+ {
+ label: "1-1",
+ },
+ {
+ label: "1-2",
+ },
+ ],
+ },
+ {
+ label: "2",
+ children: [
+ {
+ label: "2-1",
+ },
+ ],
+ },
+ ],
+ },
+ mutations: {
+ updateCategory(state, category) {
+ state.categoryOptions = category;
+ },
+ },
+};
diff --git a/src/views/platform/self-operated-mall/components/add_product.vue b/src/views/platform/self-operated-mall/components/add_product.vue
new file mode 100644
index 0000000..6ff68d8
--- /dev/null
+++ b/src/views/platform/self-operated-mall/components/add_product.vue
@@ -0,0 +1,179 @@
+
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 商品主图
+
+
+
+
+
+
+
+ 设为主图
+ 删除图片
+
+
+
+
+ 上传图片145*145(单张图片大小不超过{{ maxFileSizeM }},支持格式jpg、png,最多上传8张)
+
+ 商品详情
+ 富文本编辑器
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/platform/self-operated-mall/form.vue b/src/views/platform/self-operated-mall/components/form.vue
similarity index 90%
rename from src/views/platform/self-operated-mall/form.vue
rename to src/views/platform/self-operated-mall/components/form.vue
index d10806c..6217bb8 100644
--- a/src/views/platform/self-operated-mall/form.vue
+++ b/src/views/platform/self-operated-mall/components/form.vue
@@ -31,7 +31,7 @@
- 新增商品
+ 新增商品
批量上架
批量下架
批量删除
@@ -89,25 +89,12 @@
diff --git a/src/views/platform/self-operated-mall/index.vue b/src/views/platform/self-operated-mall/index.vue
index 767f0d6..c323260 100644
--- a/src/views/platform/self-operated-mall/index.vue
+++ b/src/views/platform/self-operated-mall/index.vue
@@ -1,32 +1,38 @@
-
+
全部商品
-
+
上架商品
-
+
下架商品
-
+
库存预警
-
+
+