diff --git a/.env.development b/.env.development index 5729747..488868c 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 开发环境配置 ENV = 'development' -VITE_APP_API_HOST = 'http://192.168.1.102:8888' +VITE_APP_API_HOST = 'http://localhost:8888' # 开发环境 VITE_APP_BASE_API = '/dev-api' diff --git a/src/api/business/ShopManager/Shops/shop.js b/src/api/business/ShopManager/Shops/shop.js index d4ad10c..8a305fa 100644 --- a/src/api/business/ShopManager/Shops/shop.js +++ b/src/api/business/ShopManager/Shops/shop.js @@ -79,3 +79,5 @@ export function audit(data) { data: data }) } + + diff --git a/src/api/business/ShopManager/Shops/shopOperator.js b/src/api/business/ShopManager/Shops/shopOperator.js new file mode 100644 index 0000000..7f38514 --- /dev/null +++ b/src/api/business/ShopManager/Shops/shopOperator.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +/** + * @Descripttion: 店详情Api接口 + * @version: (1.0) + * @Author: (黎文豪) + * @Date: (2023-06-15) + * @LastEditors: (黎文豪) + * @LastEditTime: (2023-06-15) +*/ + +// 获取商户店铺详情 +export function getShopOperatorDetail(query) { + return request({ + url: '/business/Shop/getShopOperatorDetail', + method: 'get', + params: query + }) +} + +// 编辑店铺详情 +export function editShopOperatorDetail(data) { + return request({ + url: '/business/Shop/editShopOperatorDetail', + method: 'post', + data: data, + }) +} \ No newline at end of file diff --git a/src/api/system/user.js b/src/api/system/user.js index c660261..916cc5c 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -22,7 +22,7 @@ export function getUser(userId) { // 新增用户 export function addUser(data) { return request({ - url: '/system/user/edit', + url: '/system/user/add', method: 'post', data: data }) diff --git a/src/views/business/Custom/Customers/index.vue b/src/views/business/Custom/Customers/index.vue index 3f69141..f4e24f4 100644 --- a/src/views/business/Custom/Customers/index.vue +++ b/src/views/business/Custom/Customers/index.vue @@ -66,6 +66,11 @@ + + +