diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..5991e98 --- /dev/null +++ b/.env.development @@ -0,0 +1,4 @@ +# 开发环境配置 +VITE_API_BASE_URL= +VITE_APP_BASE_API=http://localhost:8089 +VITE_APP_TITLE=与书有行 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..b78bf24 --- /dev/null +++ b/.env.production @@ -0,0 +1,4 @@ +# 生产环境配置 +VITE_API_BASE_URL=https://api.buzhiyushu.cn +VITE_APP_BASE_API=https://api.buzhiyushu.cn +VITE_APP_TITLE=与书同行 diff --git a/src/api/modules/depot.js b/src/api/modules/depot.js index 13b7df9..ad00e23 100644 --- a/src/api/modules/depot.js +++ b/src/api/modules/depot.js @@ -71,7 +71,66 @@ const depotApi = { * 获取仓库名称列表 * @returns {Promise} - 请求Promise */ - getDepotNameList: () => instance.get('/depot/nameList') + getDepotNameList: () => instance.get('/depot/nameList'), + + /** + * go查询货区列表 + * @param {Object} params - 查询参数 + * @returns {Promise} - 请求Promise + */ + goGetStorageList: (params) => instance.get('/depot/GetStorageListByGo', { params }), + + /** + * go创建货区 + * @param {Object} data - 货区信息 + * @returns {Promise} - 请求Promise + */ + goCreateDepot: (data) => { + const formData = new FormData() + Object.keys(data).forEach(key => { + if (data[key] !== null && data[key] !== undefined) { + formData.append(key, data[key]) + } + }) + return instance.post('/depot/CreateByGo', formData, { + headers: { + 'Content-Type': 'multipart/form-data' + } + }) + }, + + /** + * go修改货区 + * @param {Object} data - 货区信息 + * @returns {Promise} - 请求Promise + */ + goUpdateDepot: (data) => { + const formData = new FormData() + Object.keys(data).forEach(key => { + if (data[key] !== null && data[key] !== undefined) { + formData.append(key, data[key]) + } + }) + return instance.post('/depot/UpdateByGo', formData, { + headers: { + 'Content-Type': 'multipart/form-data' + } + }) + }, + + /** + * go删除货区 + * @param {Object} params - 删除参数 + * @returns {Promise} - 请求Promise + */ + goDeleteDepot: (params) => instance.get('/depot/DeleteByGo', { params }), + + /** + * go查询单条仓库数据 + * @param {Object} params - 查询参数 + * @returns {Promise} - 请求Promise + */ + goGetStorageInfo: (params) => instance.get('/depot/GetStorageInfoByGo', { params }) } // 导出模块 diff --git a/src/api/modules/user.js b/src/api/modules/user.js index 9e0c056..0924f08 100644 --- a/src/api/modules/user.js +++ b/src/api/modules/user.js @@ -16,6 +16,12 @@ const userApi = { // 删除用户 deleteUser: (id) => instance.delete(`/user/delete/${id}`), + + //查看店铺 + chenckShop: (id) => instance.get('/user/getUserShop', { params: { id } }), + + // 开通会员 + openMember: (data) => instance.post('/user/openMember', data), }; diff --git a/src/views/User/List.vue b/src/views/User/List.vue index a103dc2..bb0a463 100644 --- a/src/views/User/List.vue +++ b/src/views/User/List.vue @@ -1,33 +1,27 @@ - +
- +
- + - - + + - + - + - + - + - + - + - + - + + + + +
+ +
+ + + 全部店铺 ({{ shopData.pddShops.length + shopData.kfzShops.length }}) + + + 拼多多店铺 ({{ shopData.pddShops.length }}) + + + 孔夫子店铺 ({{ shopData.kfzShops.length }}) + + +
+ + +
+

+ 拼多多店铺 ({{ shopData.pddShops.length }}个) +

+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+

+ 孔夫子店铺 ({{ shopData.kfzShops.length }}个) +

+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ 支付二维码 +

请使用微信扫码支付

+

支付金额:¥{{ memberForm.rechargPrice }}

+
+
+ +

正在生成二维码...

+
+
+ + +
+ + + + + + + + + + + + + + +