路径修改
parent
1bee69cefb
commit
1c3d711298
|
@ -3,10 +3,10 @@ var BASE = {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
API_DEV: {
|
API_DEV: {
|
||||||
common: "https://common-api.pickmall.cn",
|
seller: "http://127.0.0.1:8888",
|
||||||
buyer: "https://buyer-api.pickmall.cn",
|
manager: "http://127.0.0.1:8888"
|
||||||
seller: "https://store-api.pickmall.cn",
|
buyer: "http://127.0.0.1:8888",
|
||||||
manager: "https://admin-api.pickmall.cn"
|
common: "http://127.0.0.1:8888",
|
||||||
},
|
},
|
||||||
API_PROD: {
|
API_PROD: {
|
||||||
common: "https://common-api.pickmall.cn",
|
common: "https://common-api.pickmall.cn",
|
||||||
|
@ -15,4 +15,3 @@ var BASE = {
|
||||||
manager: "https://admin-api.pickmall.cn"
|
manager: "https://admin-api.pickmall.cn"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,7 +44,7 @@ export function goodsSkuDetail (params) {
|
||||||
// 获取所有商品分类
|
// 获取所有商品分类
|
||||||
export function getCategory (parentId) {
|
export function getCategory (parentId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/category/get/${parentId}`,
|
url: `/buyer/goods/category/get/${parentId}`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: false
|
needToken: false
|
||||||
});
|
});
|
||||||
|
|
|
@ -301,7 +301,7 @@ export function clearComplain (id) {
|
||||||
*/
|
*/
|
||||||
export function distribution () {
|
export function distribution () {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/distribution`,
|
url: `/buyer/distribution/distribution`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: true
|
needToken: true
|
||||||
});
|
});
|
||||||
|
@ -314,7 +314,7 @@ export function distribution () {
|
||||||
*/
|
*/
|
||||||
export function applyDistribution (params) {
|
export function applyDistribution (params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/distribution`,
|
url: `/buyer/distribution/distribution`,
|
||||||
method: Method.POST,
|
method: Method.POST,
|
||||||
needToken: true,
|
needToken: true,
|
||||||
params
|
params
|
||||||
|
@ -326,7 +326,7 @@ export function applyDistribution (params) {
|
||||||
*/
|
*/
|
||||||
export function getDistOrderList (params) {
|
export function getDistOrderList (params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/distribution/distributionOrder`,
|
url: `/buyer/distribution/order`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: true,
|
needToken: true,
|
||||||
params
|
params
|
||||||
|
@ -338,7 +338,7 @@ export function getDistOrderList (params) {
|
||||||
*/
|
*/
|
||||||
export function getDistGoodsList (params) {
|
export function getDistGoodsList (params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/distributionGoods`,
|
url: `/buyer/distribution/goods`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: true,
|
needToken: true,
|
||||||
params
|
params
|
||||||
|
@ -352,7 +352,7 @@ export function getDistGoodsList (params) {
|
||||||
*/
|
*/
|
||||||
export function selectDistGoods (params) {
|
export function selectDistGoods (params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/distributionGoods/checked/${params.distributionGoodsId}`,
|
url: `/buyer/distribution/goods/checked/${params.distributionGoodsId}`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: true,
|
needToken: true,
|
||||||
params
|
params
|
||||||
|
|
|
@ -3,10 +3,8 @@ var BASE = {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
API_DEV: {
|
API_DEV: {
|
||||||
common: "https://common-api.pickmall.cn",
|
common: "http://127.0.0.1:8888",
|
||||||
buyer: "https://buyer-api.pickmall.cn",
|
manager: "http://127.0.0.1:8888",
|
||||||
seller: "https://store-api.pickmall.cn",
|
|
||||||
manager: "https://admin-api.pickmall.cn"
|
|
||||||
},
|
},
|
||||||
API_PROD: {
|
API_PROD: {
|
||||||
common: "https://common-api.pickmall.cn",
|
common: "https://common-api.pickmall.cn",
|
||||||
|
@ -27,4 +25,3 @@ var BASE = {
|
||||||
*/
|
*/
|
||||||
PREFIX: "/manager"
|
PREFIX: "/manager"
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,10 +12,10 @@ export const getRegion = (params) => {
|
||||||
|
|
||||||
// 获取拼图验证
|
// 获取拼图验证
|
||||||
export const getVerifyImg = (verificationEnums) => {
|
export const getVerifyImg = (verificationEnums) => {
|
||||||
return getRequestWithNoToken(`${commonUrl}/common/slider/${verificationEnums}`);
|
return getRequestWithNoToken(`${commonUrl}/common/common/slider/${verificationEnums}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 拼图验证
|
// 拼图验证
|
||||||
export const postVerifyImg = (params) => {
|
export const postVerifyImg = (params) => {
|
||||||
return postRequestWithNoToken(`${commonUrl}/common/slider/${params.verificationEnums}`, params);
|
return postRequestWithNoToken(`${commonUrl}/common/common/slider/${params.verificationEnums}`, params);
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,21 +4,21 @@ import {getRequest, postRequest, putRequest, deleteRequest} from '@/libs/axios';
|
||||||
|
|
||||||
//查询分销商
|
//查询分销商
|
||||||
export const getDistributionListData = (params) => {
|
export const getDistributionListData = (params) => {
|
||||||
return getRequest('/distribution/getByPage', params)
|
return getRequest('/distribution/distribution/getByPage', params)
|
||||||
}
|
}
|
||||||
//审核分销商
|
//审核分销商
|
||||||
export const auditDistribution = (id, params) => {
|
export const auditDistribution = (id, params) => {
|
||||||
return putRequest(`/distribution/audit/${id}`, params)
|
return putRequest(`/distribution/distribution/audit/${id}`, params)
|
||||||
}
|
}
|
||||||
// 清退分销商
|
// 清退分销商
|
||||||
export const retreatDistribution = (id, params) => {
|
export const retreatDistribution = (id, params) => {
|
||||||
return putRequest(`/distribution/retreat/${id}`, params)
|
return putRequest(`/distribution/distribution/retreat/${id}`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 恢复分销商
|
// 恢复分销商
|
||||||
export const resumeDistribution = (id, params) => {
|
export const resumeDistribution = (id, params) => {
|
||||||
return putRequest(`/distribution/resume/${id}`, params)
|
return putRequest(`/distribution/distribution/resume/${id}`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//保存更新分销设置
|
//保存更新分销设置
|
||||||
|
|
|
@ -26,11 +26,11 @@ export const disableBrand = (id, params) => {
|
||||||
}
|
}
|
||||||
//根据分类id获取关联品牌
|
//根据分类id获取关联品牌
|
||||||
export const getCategoryBrandListData = (category_id, params) => {
|
export const getCategoryBrandListData = (category_id, params) => {
|
||||||
return getRequest(`/category/brand/${category_id}`, params)
|
return getRequest(`/goods/category/brand/${category_id}`, params)
|
||||||
}
|
}
|
||||||
//保存获取关联品牌
|
//保存获取关联品牌
|
||||||
export const saveCategoryBrand = (category_id, params) => {
|
export const saveCategoryBrand = (category_id, params) => {
|
||||||
return postRequest(`/category/brand/${category_id}`, params)
|
return postRequest(`/goods/category/brand/${category_id}`, params)
|
||||||
}
|
}
|
||||||
//保存获取关联规格
|
//保存获取关联规格
|
||||||
export const saveCategorySpec = (category_id, params) => {
|
export const saveCategorySpec = (category_id, params) => {
|
||||||
|
|
|
@ -48,7 +48,7 @@ export const getNoticePage = (params) => {
|
||||||
|
|
||||||
// 登陆
|
// 登陆
|
||||||
export const login = (params) => {
|
export const login = (params) => {
|
||||||
return postRequestWithNoTokenData("/user/login", params);
|
return postRequestWithNoTokenData("/passport/user/login", params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 登出
|
// 登出
|
||||||
|
@ -62,7 +62,7 @@ export const handleRefreshToken = (token) => {
|
||||||
};
|
};
|
||||||
// 获取用户登录信息
|
// 获取用户登录信息
|
||||||
export const userInfo = (params) => {
|
export const userInfo = (params) => {
|
||||||
return getRequest("/user/info", params);
|
return getRequest("/passport/user/info", params);
|
||||||
};
|
};
|
||||||
// 注册
|
// 注册
|
||||||
export const regist = (params) => {
|
export const regist = (params) => {
|
||||||
|
@ -237,7 +237,7 @@ export const getAllPermissionList = (params) => {
|
||||||
|
|
||||||
// 获取全部权限数据
|
// 获取全部权限数据
|
||||||
export const getCurrentPermissionList = (params) => {
|
export const getCurrentPermissionList = (params) => {
|
||||||
return getRequest("/menu/memberMenu", params);
|
return getRequest("/permission/menu/memberMenu", params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 添加权限
|
// 添加权限
|
||||||
|
@ -306,16 +306,16 @@ export const deleteMessageSend = (ids, params) => {
|
||||||
|
|
||||||
// 分页获取文件数据
|
// 分页获取文件数据
|
||||||
export const getFileListData = (params) => {
|
export const getFileListData = (params) => {
|
||||||
return getRequest("/file", params);
|
return getRequest("/common/file", params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 重命名文件
|
// 重命名文件
|
||||||
export const renameFile = (params) => {
|
export const renameFile = (params) => {
|
||||||
return postRequest("/file/rename", params);
|
return postRequest("/common/file/rename", params);
|
||||||
};
|
};
|
||||||
// 删除文件
|
// 删除文件
|
||||||
export const deleteFile = (ids, params) => {
|
export const deleteFile = (ids, params) => {
|
||||||
return deleteRequest(`/file/delete/${ids}`, params);
|
return deleteRequest(`/common/file/delete/${ids}`, params);
|
||||||
};
|
};
|
||||||
// 下载文件
|
// 下载文件
|
||||||
export const aliDownloadFile = (fKey, params) => {
|
export const aliDownloadFile = (fKey, params) => {
|
||||||
|
|
|
@ -31,7 +31,7 @@ export const getHomeData = params => {
|
||||||
*/
|
*/
|
||||||
export const getHomeList = params => {
|
export const getHomeList = params => {
|
||||||
|
|
||||||
return getRequest("/pageData/pageDataList", params);
|
return getRequest("/other/pageData/pageDataList", params);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ import {commonUrl, getRequestWithNoToken, postRequestWithNoToken} from '@/libs/a
|
||||||
|
|
||||||
// 获取拼图验证
|
// 获取拼图验证
|
||||||
export const getVerifyImg = (verificationEnums) => {
|
export const getVerifyImg = (verificationEnums) => {
|
||||||
return getRequestWithNoToken(`${commonUrl}/common/slider/${verificationEnums}`);
|
return getRequestWithNoToken(`${commonUrl}/common/common/slider/${verificationEnums}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 拼图验证
|
// 拼图验证
|
||||||
export const postVerifyImg = (params) => {
|
export const postVerifyImg = (params) => {
|
||||||
return postRequestWithNoToken(`${commonUrl}/common/slider/${params.verificationEnums}`, params);
|
return postRequestWithNoToken(`${commonUrl}/common/common/slider/${params.verificationEnums}`, params);
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,17 +5,17 @@ import {getRequest, postRequest, putRequest, deleteRequest, importRequest, getRe
|
||||||
|
|
||||||
//获取分销商品列表
|
//获取分销商品列表
|
||||||
export const getDistributionGoods = (params) => {
|
export const getDistributionGoods = (params) => {
|
||||||
return getRequest('/distributionGoods', params)
|
return getRequest('/distribution/goods', params)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 取消分销商品
|
// 取消分销商品
|
||||||
export const distributionGoodsCancel = (id) => {
|
export const distributionGoodsCancel = (id) => {
|
||||||
return deleteRequest(`/distributionGoods/cancel/${id}`)
|
return deleteRequest(`/distribution/goods/cancel/${id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 选择分销商品
|
// 选择分销商品
|
||||||
export const distributionGoodsCheck = (id,param) => {
|
export const distributionGoodsCheck = (id,param) => {
|
||||||
return putRequest(`/distributionGoods/checked/${id}`,param)
|
return putRequest(`/distribution/goods/checked/${id}`,param)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ export const getDistributionSetting = (id, params) => {
|
||||||
|
|
||||||
//获取分销订单列表
|
//获取分销订单列表
|
||||||
export const getDistributionOrder = (params) => {
|
export const getDistributionOrder = (params) => {
|
||||||
return getRequest('/distributionOrder', params)
|
return getRequest('/distribution/order', params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -311,7 +311,7 @@ export const result = [{
|
||||||
type: 0,
|
type: 0,
|
||||||
title: "分销商品",
|
title: "分销商品",
|
||||||
path: "distributionGoods",
|
path: "distributionGoods",
|
||||||
component: "distribution/distributionGoods",
|
component: "distribution/distribution/goods",
|
||||||
children: null
|
children: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -320,7 +320,7 @@ export const result = [{
|
||||||
type: 0,
|
type: 0,
|
||||||
title: "分销订单",
|
title: "分销订单",
|
||||||
path: "distributionOrder",
|
path: "distributionOrder",
|
||||||
component: "distribution/distributionOrder",
|
component: "distribution/distribution/order",
|
||||||
children: null
|
children: null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue