diff --git a/public/config/index.js b/public/config/index.js
index 415da64..6476044 100644
--- a/public/config/index.js
+++ b/public/config/index.js
@@ -12,7 +12,7 @@
(function () {
window.SITE_CONFIG = {};
// api接口请求地址
- window.SITE_CONFIG["baseUrl"] = "https://admin-test.damajishi.cn/";
+ window.SITE_CONFIG["baseUrl"] = "http://60.204.138.3:8899";
// 在线api接口请求地址
// window.SITE_CONFIG['baseUrl'] = 'http://119.29.103.250:8082/red-memory';
// 在线api接口请求地址
diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js
index 6fdfbce..996da60 100644
--- a/src/api/modules/mer_admin.js
+++ b/src/api/modules/mer_admin.js
@@ -78,10 +78,10 @@ export const mer_admin = {
//商品详情
productDetail: data => {
return $http.request({
- method: 'get',
- url: '/merchant-api/product/detail',
+ method: "get",
+ url: "/merchant-api/product/detail",
params: data
- })
+ });
},
//商户商品分类
getProductCategory: data => {
@@ -411,5 +411,152 @@ export const mer_admin = {
url: `/merchant-api/backend/order/v2/overview`,
params: data
});
+ },
+
+ // ==================== 摊位管理相关接口 ====================
+
+ /**
+ * 经营者模式-摊位概览
+ * @param {object} data 查询参数
+ * @returns {Promise}
+ */
+ overviewShop: data => {
+ return $http.request({
+ method: "get",
+ url: `/merchant-api/manager/shop/overview`,
+ params: data
+ });
+ },
+
+ /**
+ * 绑定收益人
+ * @param {object} data 绑定参数
+ * @param {number} data.marketId 市场ID
+ * @param {number} data.beneficiaryOperationType 操作类型(1:市场经营者,2:创建新收益人,3:绑定已有供应商账号)
+ * @param {string} data.beneficiaryName 收益人姓名
+ * @param {string} data.beneficiaryMobile 收益人账号
+ * @param {string} data.password 登录密码
+ * @param {string} data.remark 备注
+ * @param {number} data.shopId 店铺ID
+ * @returns {Promise}
+ */
+ bindShopBeneficiary: data => {
+ return $http.post(`/merchant-api/shop/bind/beneficiary`, data);
+ },
+
+ /**
+ * 新增经营者店铺
+ * @param {object} data 店铺参数
+ * @returns {Promise}
+ */
+ addShop: data => {
+ return $http.post(`/merchant-api/shop/add`, data);
+ },
+
+ /**
+ * 经营者模式-摊位列表
+ * @param {object} data 查询参数
+ * @param {number} data.pageNumber 页码
+ * @param {number} data.pageSize 每页数量
+ * @param {number} data.marketId 市场ID
+ * @param {string} data.shopName 摊位名称
+ * @param {number} data.status 业务状态(-1:未配置 0:休息 1:营业)
+ * @returns {Promise}
+ */
+ pageShop: data => {
+ return $http.request({
+ method: "get",
+ url: `/merchant-api/manager/shop/page`,
+ params: data
+ });
+ },
+
+ /**
+ * 邀请摊主入驻
+ * @param {object} data 邀请参数
+ * @param {number} data.marketId 市场ID
+ * @param {number} data.beneficiaryOperationType 操作类型(1:市场经营者,2:创建新收益人,3:绑定已有供应商账号)
+ * @param {string} data.beneficiaryName 收益人姓名
+ * @param {string} data.beneficiaryMobile 收益人账号
+ * @param {string} data.password 登录密码
+ * @returns {Promise}
+ */
+ inviteJoin: data => {
+ return $http.post(`/merchant-api/manager/shop/invite_join`, data);
+ },
+
+ /**
+ * 删除摊位
+ * @param {object} query 删除参数
+ * @param {number} query.shopId 摊位ID
+ * @returns {Promise}
+ */
+ deleteShop: query => {
+ return $http.delete(`/merchant-api/manager/shop/delete`, { params: query });
+ },
+
+ /**
+ * 更新摊位状态
+ * @param {object} data 更新参数
+ * @param {number} data.shopId 摊位ID
+ * @param {number} data.status 状态
+ * @returns {Promise}
+ */
+ updateShopStatus: data => {
+ return $http.put(`/merchant-api/manager/shop/status`, data);
+ },
+
+ /**
+ * 更新摊位信息
+ * @param {object} data 更新参数
+ * @param {number} data.shopId 摊位ID
+ * @returns {Promise}
+ */
+ updateShop: data => {
+ return $http.put(`/merchant-api/manager/shop/update`, data);
+ },
+
+ /**
+ * 获取摊位详情(经营者模式)
+ * @param {object} query 查询参数
+ * @param {number} query.shopId 摊位ID
+ * @returns {Promise}
+ */
+ getShopDetail: query => {
+ return $http.request({
+ method: "get",
+ url: `/merchant-api/manager/shop/detail`,
+ params: query
+ });
+ },
+
+ /**
+ * 获取摊位基础配置(摊主模式)
+ * @param {object} query 查询参数
+ * @param {string} query.shopId 摊位ID
+ * @returns {Promise}
+ */
+ getShopBaseConfig: query => {
+ return $http.request({
+ method: "get",
+ url: `/merchant-api/shop/base_config`,
+ params: query
+ });
+ },
+
+ /**
+ * 更新摊位基础配置(摊主模式)
+ * @param {object} query 查询参数
+ * @param {string} query.shopId 摊位ID
+ * @param {object} data 更新数据
+ * @returns {Promise}
+ */
+ updateShopBaseConfig: (query, data) => {
+ return $http.request({
+ method: "put",
+ url: `/merchant-api/shop/base_config`,
+ params: query,
+ data: data
+ });
}
};
diff --git a/src/components/form/InputMap/index.vue b/src/components/form/InputMap/index.vue
index 6a545bf..0ecf77e 100644
--- a/src/components/form/InputMap/index.vue
+++ b/src/components/form/InputMap/index.vue
@@ -1,322 +1,335 @@
-
+
diff --git a/src/views/modules/operation-management/commodity/index.vue b/src/views/modules/operation-management/commodity/index.vue
index c5e03f9..8383b07 100644
--- a/src/views/modules/operation-management/commodity/index.vue
+++ b/src/views/modules/operation-management/commodity/index.vue
@@ -9,7 +9,7 @@
-
+
@@ -74,7 +74,7 @@
添加商品
- 批量删除
+ 批量删除
\ No newline at end of file
+
diff --git a/src/views/modules/operation-management/permission/sub-operator/index.vue b/src/views/modules/operation-management/permission/sub-operator/index.vue
index 8b690a7..a7e9a46 100644
--- a/src/views/modules/operation-management/permission/sub-operator/index.vue
+++ b/src/views/modules/operation-management/permission/sub-operator/index.vue
@@ -8,10 +8,18 @@
:rules="rules"
style="max-width: 600px"
>
-
-
+
+
-
+
@@ -31,13 +43,22 @@
-
+
-
+
- 重置密码
+ 重置密码
-
+
@@ -61,7 +88,11 @@
-
+
@@ -89,7 +120,11 @@
>
-
+