Merge branch 'fengtianyangyang' of gitee.com:beijing_hongye_huicheng/lilishop-ui into fengtianyangyang

master
paulGao 2022-01-25 09:46:15 +08:00
commit f46330ecf0
12 changed files with 138 additions and 156 deletions

View File

@ -22,7 +22,7 @@ export function getDepositLog (params) {
// 查询充值记录 // 查询充值记录
export function getRecharge (params) { export function getRecharge (params) {
return request({ return request({
url: '/buyer/member/recharge', url: '/buyer/wallet/recharge',
method: Method.GET, method: Method.GET,
needToken: true, needToken: true,
params params

View File

@ -102,30 +102,30 @@ export const getGoodsCategory = (parent_id) => {
// 上架商品 // 上架商品
export const upGoods = (id, params) => { export const upGoods = (id, params) => {
return putRequest(`/goods/${id}/up`, params) return putRequest(`/goods/goods/${id}/up`, params)
} }
// 下架商品 // 下架商品
export const lowGoods = (id, params) => { export const lowGoods = (id, params) => {
return putRequest(`/goods/${id}/under`, params) return putRequest(`/goods/goods/${id}/under`, params)
} }
// 获取商品sku分页列表 // 获取商品sku分页列表
export const getGoodsSkuData = (params) => { export const getGoodsSkuData = (params) => {
return getRequest('/goods/sku/list', params) return getRequest('/goods/goods/sku/list', params)
} }
// 获取商品分页列表 // 获取商品分页列表
export const getGoodsListData = (params) => { export const getGoodsListData = (params) => {
return getRequest('/goods/list', params) return getRequest('/goods/goods/list', params)
} }
// 获取待审核商品分页列表 // 获取待审核商品分页列表
export const getAuthGoodsListData = (params) => { export const getAuthGoodsListData = (params) => {
return getRequest('/goods/auth/list', params) return getRequest('/goods/goods/auth/list', params)
} }
// 审核商品 // 审核商品
export const authGoods = (id, params) => { export const authGoods = (id, params) => {
return putRequest(`/goods/${id}/auth`, params) return putRequest(`/goods/goods/${id}/auth`, params)
} }
//查询分类绑定参数信息 //查询分类绑定参数信息
@ -176,7 +176,7 @@ export const getSkuPage = (params) => {
//查看商品详情 //查看商品详情
export const getGoodsDetail = (id) => { export const getGoodsDetail = (id) => {
return getRequest(`/goods/get/${id}`) return getRequest(`/goods/goods/get/${id}`)
} }
@ -225,4 +225,3 @@ export const refundStatistics = (params) => {
export const refundPriceStatistics = (params) => { export const refundPriceStatistics = (params) => {
return getRequest(`/statistics/refund/order/getPrice`, params) return getRequest(`/statistics/refund/order/getPrice`, params)
} }

View File

@ -16,7 +16,7 @@ import {
let commonUrl = (process.env.NODE_ENV === 'development' ? BASE.API_DEV.common : BASE.API_PROD.common) let commonUrl = (process.env.NODE_ENV === 'development' ? BASE.API_DEV.common : BASE.API_PROD.common)
// 文件上传接口 // 文件上传接口
export const uploadFile = commonUrl+ "/common/upload/file"; export const uploadFile = commonUrl+ "/common/common/upload/file";
// Websocket // Websocket
export const ws = managerUrl + "/ws"; export const ws = managerUrl + "/ws";
@ -99,131 +99,131 @@ export const ipInfo = (params) => {
}; };
// 个人中心编辑 // 个人中心编辑
export const userInfoEdit = (params) => { export const userInfoEdit = (params) => {
return putRequest("/user/edit", params); return putRequest("/passport/user/edit", params);
}; };
// 个人中心修改密码 // 个人中心修改密码
export const changePass = (params) => { export const changePass = (params) => {
return putRequest("/user/editPassword", params); return putRequest("/passport/user/editPassword", params);
}; };
// 个人中心修改手机 // 个人中心修改手机
export const changeMobile = (params) => { export const changeMobile = (params) => {
return postRequest("/user/changeMobile", params); return postRequest("/passport/user/changeMobile", params);
}; };
// 获取用户数据 多条件 // 获取用户数据 多条件
export const getUserListData = (params) => { export const getUserListData = (params) => {
return getRequest("/user", params); return getRequest("/passport/user", params);
}; };
// 通过用户名搜索 // 通过用户名搜索
export const searchUserByName = (username, params) => { export const searchUserByName = (username, params) => {
return getRequest("/user/searchByName/" + username, params); return getRequest("/passport/user/searchByName/" + username, params);
}; };
// 获取全部用户数据 // 获取全部用户数据
export const getAllUserData = (params) => { export const getAllUserData = (params) => {
return getRequest("/user/getAll", params); return getRequest("/passport/user/getAll", params);
}; };
// 添加用户 // 添加用户
export const addUser = (params) => { export const addUser = (params) => {
return postRequest("/user", params); return postRequest("/passport/user", params);
}; };
// 编辑管理员自身 // 编辑管理员自身
export const editUser = (params) => { export const editUser = (params) => {
return putRequest("/user/edit", params); return putRequest("/passport/user/edit", params);
}; };
// 编辑用户 // 编辑用户
export const editOtherUser = (params) => { export const editOtherUser = (params) => {
return putRequest("/user/admin/edit", params); return putRequest("/passport/user/admin/edit", params);
}; };
// 启用用户 // 启用用户
export const enableUser = (id, params) => { export const enableUser = (id, params) => {
return putRequest(`/user/enable/${id}`, params); return putRequest(`/passport/user/enable/${id}`, params);
}; };
// 删除用户 // 删除用户
export const deleteUser = (ids, params) => { export const deleteUser = (ids, params) => {
return deleteRequest(`/user/${ids}`, params); return deleteRequest(`/passport/user/${ids}`, params);
}; };
// 导入用户 // 导入用户
export const importUserData = (params) => { export const importUserData = (params) => {
return importRequest("/user/importData", params); return importRequest("/passport/user/importData", params);
}; };
/****************************** 部门 */ /****************************** 部门 */
// 通过部门获取全部角色数据 // 通过部门获取全部角色数据
export const getUserByDepartmentId = (id, params) => { export const getUserByDepartmentId = (id, params) => {
return getRequest(`/departmentRole/${id}`, params); return getRequest(`/permission/departmentRole/${id}`, params);
}; };
// 通过部门修改绑定角色 // 通过部门修改绑定角色
export const updateDepartmentRole = (id, params) => { export const updateDepartmentRole = (id, params) => {
return putRequestWithNoForm(`/departmentRole/${id}`, params); return putRequestWithNoForm(`/permission/departmentRole/${id}`, params);
}; };
// 获取一级部门 // 获取一级部门
export const initDepartment = (params) => { export const initDepartment = (params) => {
return getRequest("/department", params); return getRequest("/permission/department", params);
}; };
// 加载部门子级数据 // 加载部门子级数据
export const loadDepartment = (id) => { export const loadDepartment = (id) => {
return getRequest(`/department/${id}`); return getRequest(`/permission/department/${id}`);
}; };
// 添加部门 // 添加部门
export const addDepartment = (params) => { export const addDepartment = (params) => {
return postRequest("/department", params); return postRequest("/permission/department", params);
}; };
// 编辑部门 // 编辑部门
export const editDepartment = (ids, params) => { export const editDepartment = (ids, params) => {
return putRequest(`/department/${ids} `, params); return putRequest(`/permission/department/${ids} `, params);
}; };
// 删除部门 // 删除部门
export const deleteDepartment = (ids, params) => { export const deleteDepartment = (ids, params) => {
return deleteRequest(`/department/${ids}`, params); return deleteRequest(`/permission/department/${ids}`, params);
}; };
// 搜索部门 // 搜索部门
export const searchDepartment = (params) => { export const searchDepartment = (params) => {
return getRequest("/department/search", params); return getRequest("/permission/department/search", params);
}; };
/****************************** 部门结束 */ /****************************** 部门结束 */
// 获取全部角色数据 // 获取全部角色数据
export const getAllRoleList = (params) => { export const getAllRoleList = (params) => {
return getRequest("/role", params); return getRequest("/permission/role", params);
}; };
// 分页获取角色数据 // 分页获取角色数据
export const getRoleList = (params) => { export const getRoleList = (params) => {
return getRequest("/role", params); return getRequest("/permission/role", params);
}; };
// 添加角色 // 添加角色
export const addRole = (params) => { export const addRole = (params) => {
return postRequest("/role", params); return postRequest("/permission/role", params);
}; };
// 编辑角色 // 编辑角色
export const editRole = (params) => { export const editRole = (params) => {
return putRequest(`/role/${params.roleId}`, params); return putRequest(`/permission/role/${params.roleId}`, params);
}; };
// 查看某角色拥有的菜单 // 查看某角色拥有的菜单
export const selectRoleMenu = (params) => { export const selectRoleMenu = (params) => {
return getRequest(`/roleMenu/${params}`); return getRequest(`/permission/roleMenu/${params}`);
}; };
// 保存角色菜单 // 保存角色菜单
export const saveRoleMenu = (id, params) => { export const saveRoleMenu = (id, params) => {
return postRequestWithNoForm(`/roleMenu/${id}`, params); return postRequestWithNoForm(`/permission/roleMenu/${id}`, params);
}; };
// 分配角色权限 // 分配角色权限
export const editRolePerm = (params) => { export const editRolePerm = (params) => {
return postRequest("/role/editRolePerm", params); return postRequest("/permission/role/editRolePerm", params);
}; };
// 分配角色数据权限 // 分配角色数据权限
export const editRoleDep = (params) => { export const editRoleDep = (params) => {
return postRequest("/role/editRoleDep", params); return postRequest("/permission/role/editRoleDep", params);
}; };
// 删除角色 // 删除角色
export const deleteRole = (ids, params) => { export const deleteRole = (ids, params) => {
return deleteRequest(`/role/${ids}`, params); return deleteRequest(`/permission/role/${ids}`, params);
}; };
/****************************** 角色结束 */ /****************************** 角色结束 */
@ -232,7 +232,7 @@ export const deleteRole = (ids, params) => {
/****************************** 权限 */ /****************************** 权限 */
// 获取全部权限数据 // 获取全部权限数据
export const getAllPermissionList = (params) => { export const getAllPermissionList = (params) => {
return getRequest("/menu/tree", params); return getRequest("/permission/menu/tree", params);
}; };
// 获取全部权限数据 // 获取全部权限数据
@ -242,20 +242,20 @@ export const getCurrentPermissionList = (params) => {
// 添加权限 // 添加权限
export const addPermission = (params) => { export const addPermission = (params) => {
return postRequest("/menu", params); return postRequest("/permission/menu", params);
}; };
// 编辑权限 // 编辑权限
export const editPermission = (params) => { export const editPermission = (params) => {
return putRequest(`/menu/${params.id}`, params); return putRequest(`/permission/menu/${params.id}`, params);
}; };
// 删除权限 // 删除权限
export const deletePermission = (ids, params) => { export const deletePermission = (ids, params) => {
return deleteRequest(`/menu/${ids}`, params); return deleteRequest(`/permission/menu/${ids}`, params);
}; };
// 搜索权限 // 搜索权限
export const searchPermission = (params) => { export const searchPermission = (params) => {
return getRequest("/menu", params); return getRequest("/permission/menu", params);
}; };
/****************************** 权限结束 */ /****************************** 权限结束 */
@ -311,11 +311,11 @@ export const getFileListData = (params) => {
// 重命名文件 // 重命名文件
export const renameFile = (params) => { export const renameFile = (params) => {
return postRequest("/common/file/rename", params); return postRequest("/common/common/file/rename", params);
}; };
// 删除文件 // 删除文件
export const deleteFile = (ids, params) => { export const deleteFile = (ids, params) => {
return deleteRequest(`/common/file/delete/${ids}`, params); return deleteRequest(`/common/common/file/delete/${ids}`, params);
}; };
// 下载文件 // 下载文件
export const aliDownloadFile = (fKey, params) => { export const aliDownloadFile = (fKey, params) => {
@ -324,16 +324,16 @@ export const aliDownloadFile = (fKey, params) => {
// base64上传 // base64上传
export const base64Upload = (params) => { export const base64Upload = (params) => {
return postRequest("/upload/file", params); return postRequest("/common/common/upload/file", params);
}; };
// 系统设置 // 系统设置
export const getSetting = (key) => { export const getSetting = (key) => {
return getRequest(`/system/setting/get/${key}`); return getRequest(`/setting/setting/get/${key}`);
}; };
// 更新系统配置 // 更新系统配置
export const setSetting = (key, params) => { export const setSetting = (key, params) => {
return putRequestWithNoForm(`/system/setting/put/${key}`, params); return putRequestWithNoForm(`/setting/setting/put/${key}`, params);
}; };
// 分页查询敏感词 // 分页查询敏感词
@ -400,7 +400,7 @@ export const getChildRegion = (id) => {
// 重置用户密码 // 重置用户密码
export const resetPassword = (params) => { export const resetPassword = (params) => {
return postRequest(`/user/resetPassword/${params}"`); return postRequest(`/passport/user/resetPassword/${params}"`);
}; };
// 初始化商品索引 // 初始化商品索引
@ -415,36 +415,35 @@ export const getProgress = () => {
// 分页查询自定义分词 // 分页查询自定义分词
export const getCustomWordsPage = (params) => { export const getCustomWordsPage = (params) => {
return getRequest(`/custom-words/page`, params); return getRequest(`/other/customWords/page`, params);
}; };
// 添加自定义分词 // 添加自定义分词
export const insertCustomWords = (params) => { export const insertCustomWords = (params) => {
return postRequest(`/custom-words`, params); return postRequest(`/other/customWords`, params);
}; };
// 修改自定义分词 // 修改自定义分词
export const updateCustomWords = (params) => { export const updateCustomWords = (params) => {
return putRequest(`/custom-words`, params); return putRequest(`/other/customWords`, params);
}; };
// 删除自定义分词 // 删除自定义分词
export const delCustom = (id) => { export const delCustom = (id) => {
return deleteRequest(`/custom-words/${id}`); return deleteRequest(`/other/customWords/${id}`);
}; };
// 设置热搜词 // 设置热搜词
export const setHotWords = (params) => { export const setHotWords = (params) => {
return postRequest(`/hotwords`, params); return postRequest(`/hotwords/hotwords`, params);
}; };
// 删除热搜词 // 删除热搜词
export const deleteHotWords = (words) => { export const deleteHotWords = (words) => {
return deleteRequest(`/hotwords/${words}`); return deleteRequest(`/hotwords/hotwords/${words}`);
}; };
// 获取热搜词 // 获取热搜词
export const getHotWords = () => { export const getHotWords = () => {
return getRequest(`/hotwords`); return getRequest(`/hotwords/hotwords`);
}; };

View File

@ -9,22 +9,22 @@ export const getMember = params => {
// 分页获取会员评价 // 分页获取会员评价
export const getMemberReview = params => { export const getMemberReview = params => {
return getRequest("/memberEvaluation/getByPage", params); return getRequest("/member/evaluation/getByPage", params);
}; };
// 获取id // 获取id
export const getMemberInfoReview = id => { export const getMemberInfoReview = id => {
return getRequest(`/memberEvaluation/get/${id}`); return getRequest(`/member/evaluation/get/${id}`);
}; };
// 删除评论 // 删除评论
export const delMemberReview = id => { export const delMemberReview = id => {
return putRequest(`/memberEvaluation/delete/${id}`); return putRequest(`/member/evaluation/delete/${id}`);
}; };
// 修改评价状态 // 修改评价状态
export const updateMemberReview = (id, params) => { export const updateMemberReview = (id, params) => {
return getRequest(`/memberEvaluation/updateStatus/${id}`, params); return getRequest(`/member/evaluation/updateStatus/${id}`, params);
}; };
@ -35,12 +35,12 @@ export const insertOrUpdateSpec = params => {
// 获取会员列表 // 获取会员列表
export const getMemberListData = params => { export const getMemberListData = params => {
return getRequest("/member", params); return getRequest("/member/passport", params);
}; };
// 获取会员详情 // 获取会员详情
export const getMemberInfoData = (id) => { export const getMemberInfoData = (id) => {
return getRequest(`/member/${id}`); return getRequest(`/member/passport/${id}`);
}; };
// 修改会员基本信息 // 修改会员基本信息
@ -50,26 +50,26 @@ export const updateMember = (params) => {
// 添加会员基本信息 // 添加会员基本信息
export const addMember = params => { export const addMember = params => {
return postRequest(`/member`, params); return postRequest(`/member/passport`, params);
}; };
// 获取会员列表 // 获取会员列表
export const getMemberAll = () => { export const getMemberAll = () => {
return getRequest("/member/getAll"); return getRequest("/member/passport/getAll");
}; };
// 增加或修改会员列表 // 增加或修改会员列表
export const operationMemberListData = params => { export const operationMemberListData = params => {
return postRequest("/member/insertOrUpdate", params); return postRequest("/member/passport/insertOrUpdate", params);
}; };
// 增加或修改会员列表 // 增加或修改会员列表
export const deleteMemberListData = ids => { export const deleteMemberListData = ids => {
return deleteRequest(`/member/delByIds/${ids}`); return deleteRequest(`/member/passport/delByIds/${ids}`);
}; };
// 获取充值记录列表数据 // 获取充值记录列表数据
export const getUserRecharge = params => { export const getUserRecharge = params => {
return getRequest("/recharge", params); return getRequest("/wallet/recharge", params);
}; };
// 获取预存款明细列表数据 // 获取预存款明细列表数据
@ -79,17 +79,17 @@ export const getUserWallet = params => {
// 获取提现申请列表数据 // 获取提现申请列表数据
export const getUserWithdrawApply = params => { export const getUserWithdrawApply = params => {
return getRequest("/members/withdraw-apply", params); return getRequest("/wallet/withdrawApply", params);
}; };
// 审核提现申请 // 审核提现申请
export const withdrawApply = params => { export const withdrawApply = params => {
return postRequest("/members/withdraw-apply", params); return postRequest("/wallet/withdrawApply", params);
}; };
//会员状态修改 //会员状态修改
export const updateMemberStatus = params => { export const updateMemberStatus = params => {
return putRequest("/member/updateMemberStatus", params); return putRequest("/passport/member/updateMemberStatus", params);
}; };
// 获取会员注册统计列表 // 获取会员注册统计列表
@ -110,7 +110,7 @@ export const historyMemberChartList = () => {
//查询会员数量 //查询会员数量
export const getMemberNum = params => { export const getMemberNum = params => {
return getRequest("/member/num", params); return getRequest("/member/passport/num", params);
}; };
//查询会员历史积分 //查询会员历史积分
export const getHistoryPointData = (params) => { export const getHistoryPointData = (params) => {

View File

@ -9,88 +9,88 @@ import {
// 交由商家申诉 // 交由商家申诉
export const storeComplain = (params) => { export const storeComplain = (params) => {
return putRequest(`/complain/status`, params) return putRequest(`/order/complain/status`, params)
} }
// 获取售后原因分页列表 // 获取售后原因分页列表
export const getAfterSaleReasonPage = (params) => { export const getAfterSaleReasonPage = (params) => {
return getRequest('/afterSaleReason/getByPage', params) return getRequest('/order/afterSaleReason/getByPage', params)
} }
// 删除售后原因 // 删除售后原因
export const delAfterSaleReason = (id) => { export const delAfterSaleReason = (id) => {
return deleteRequest(`/afterSaleReason/delByIds/${id}`) return deleteRequest(`/order/afterSaleReason/delByIds/${id}`)
} }
// 添加售后原因 // 添加售后原因
export const addAfterSaleReason = (params) => { export const addAfterSaleReason = (params) => {
return postRequest(`/afterSaleReason`, params) return postRequest(`/order/afterSaleReason`, params)
} }
// 修改售后原因 // 修改售后原因
export const editAfterSaleReason = (id, params) => { export const editAfterSaleReason = (id, params) => {
return putRequest(`/afterSaleReason/update/${id}`, params) return putRequest(`/order/afterSaleReason/update/${id}`, params)
} }
// 售后服务单详情 // 售后服务单详情
export const afterSaleOrderDetail = (sn) => { export const afterSaleOrderDetail = (sn) => {
return getRequest(`/afterSale/${sn}`) return getRequest(`/order/afterSale/${sn}`)
} }
// 商家审核 // 商家审核
export const afterSaleSellerReview = (sn, params) => { export const afterSaleSellerReview = (sn, params) => {
return putRequest(`/afterSale/review/${sn}`, params) return putRequest(`/order/afterSale/review/${sn}`, params)
} }
// 商家确认收货 // 商家确认收货
export const afterSaleSellerConfirm = (sn, params) => { export const afterSaleSellerConfirm = (sn, params) => {
return putRequest(`/afterSale/confirm/${sn}`, params) return putRequest(`/order/afterSale/confirm/${sn}`, params)
} }
// 商家换货业务发货 // 商家换货业务发货
export const afterSaleSellerDelivery = (sn, params) => { export const afterSaleSellerDelivery = (sn, params) => {
return putRequest(`/afterSale/${sn}/delivery`, params) return putRequest(`/order/afterSale/${sn}/delivery`, params)
} }
// 获取交易投诉信息 // 获取交易投诉信息
export const getOrderComplain = (params) => { export const getOrderComplain = (params) => {
return getRequest('/complain', params) return getRequest('/order/complain', params)
} }
// 获取交易投诉详细信息 // 获取交易投诉详细信息
export const getOrderComplainDetail = (id) => { export const getOrderComplainDetail = (id) => {
return getRequest(`/complain/${id}`) return getRequest(`/order/complain/${id}`)
} }
// 交易投诉对话 // 交易投诉对话
export const addOrderCommunication = (params) => { export const addOrderCommunication = (params) => {
return postRequest(`/complain/communication`, params) return postRequest(`/order/complain/communication`, params)
} }
// 平台仲裁 // 平台仲裁
export const orderComplete = (id, params) => { export const orderComplete = (id, params) => {
return putRequest(`/complain/complete/${id}`, params) return putRequest(`/order/complain/complete/${id}`, params)
} }
// 查询订单列表 // 查询订单列表
export const getOrderList = (params) => { export const getOrderList = (params) => {
return getRequest(`/orders`, params) return getRequest(`/order/order`, params)
} }
// 订单付款 // 订单付款
export const orderPay = (sn) => { export const orderPay = (sn) => {
return postRequest(`/orders/${sn}/pay`) return postRequest(`/order/order/${sn}/pay`)
} }
// 订单付款 // 订单付款
export const orderDetail = (sn) => { export const orderDetail = (sn) => {
return getRequest(`/orders/${sn}`) return getRequest(`/order/order/${sn}`)
} }
// 修改订单价格 // 修改订单价格
export const updateOrderPrice = (sn, params) => { export const updateOrderPrice = (sn, params) => {
return putRequest(`/orders/update/${sn}/price`, params) return putRequest(`/order/order/update/${sn}/price`, params)
} }
// 获取订单日志 // 获取订单日志
@ -100,26 +100,26 @@ export const getOrderLog = (params) => {
// 订单取消 // 订单取消
export const orderCancel = (sn, params) => { export const orderCancel = (sn, params) => {
return postRequest(`/orders/${sn}/cancel`, params) return postRequest(`/order/order/${sn}/cancel`, params)
} }
// 修改收货地址 // 修改收货地址
export const editOrderConsignee = (sn, params) => { export const editOrderConsignee = (sn, params) => {
return postRequest(`/orders/update/${sn}/consignee`, params) return postRequest(`/order/order/update/${sn}/consignee`, params)
} }
// 获取售后订单列表 // 获取售后订单列表
export const getAfterSaleOrderPage = (params) => { export const getAfterSaleOrderPage = (params) => {
return getRequest('/afterSale/page', params) return getRequest('/order/afterSale/page', params)
} }
// 获取售后订单详情 // 获取售后订单详情
export const getAfterSaleOrderDetail = (sn) => { export const getAfterSaleOrderDetail = (sn) => {
return getRequest(`/afterSale/get/${sn}`) return getRequest(`/order/afterSale/get/${sn}`)
} }
//售后单查询物流 //售后单查询物流
export const getAfterSaleTraces = (sn) => { export const getAfterSaleTraces = (sn) => {
return getRequest(`/afterSale/getDeliveryTraces/${sn}`) return getRequest(`/order/afterSale/getDeliveryTraces/${sn}`)
} }
// 获取商家选中的物流公司 // 获取商家选中的物流公司
export const getLogisticsChecked = () => { export const getLogisticsChecked = () => {
@ -128,7 +128,7 @@ export const getLogisticsChecked = () => {
//查询物流 //查询物流
export const getTraces = (sn, params) => { export const getTraces = (sn, params) => {
return postRequest(`/orders/getTraces/${sn}`, params) return postRequest(`/order/order/getTraces/${sn}`, params)
} }
//获取发票列表 //获取发票列表
export const getReceiptPage = (params) => { export const getReceiptPage = (params) => {
@ -136,27 +136,22 @@ export const getReceiptPage = (params) => {
} }
//平台退款 //平台退款
export const refundPrice = (afterSaleSn, params) => { export const refundPrice = (afterSaleSn, params) => {
return putRequest(`/afterSale/refund/${afterSaleSn}`, params) return putRequest(`/order/afterSale/refund/${afterSaleSn}`, params)
} }
//平台收款记录 //平台收款记录
export const paymentLog = (params) => { export const paymentLog = (params) => {
return getRequest(`/paymentLog`, params) return getRequest(`/order/paymentLog`, params)
} }
//平台退款记录 //平台退款记录
export const refundLog = (params) => { export const refundLog = (params) => {
return getRequest(`/refundLog`, params) return getRequest(`/order/refundLog`, params)
} }
//售后单商家收货信息 //售后单商家收货信息
export const storeAddress = (sn) => { export const storeAddress = (sn) => {
return getRequest(`/afterSale/getStoreAfterSaleAddress/${sn}`) return getRequest(`/afterSale/getStoreAfterSaleAddress/${sn}`)
} }

View File

@ -12,7 +12,7 @@ import {
*/ */
export const setHomeSetup = params => { export const setHomeSetup = params => {
return postRequest("/pageData/add", params); return postRequest("/other/pageData/add", params);
}; };
/** /**
@ -21,7 +21,7 @@ export const setHomeSetup = params => {
*/ */
export const getHomeData = params => { export const getHomeData = params => {
return getRequest(`/pageData/${params}`); return getRequest(`/other/pageData/${params}`);
}; };
@ -41,7 +41,7 @@ export const getHomeList = params => {
*/ */
export const updateHome = (id, params) => { export const updateHome = (id, params) => {
return putRequest(`/pageData/update/${id}`, params); return putRequest(`/other/pageData/update/${id}`, params);
}; };
/** /**
@ -50,7 +50,7 @@ export const updateHome = (id, params) => {
*/ */
export const removePageHome = (id) => { export const removePageHome = (id) => {
return deleteRequest(`/pageData/remove/${id}`); return deleteRequest(`/other/pageData/remove/${id}`);
}; };
@ -60,35 +60,33 @@ export const removePageHome = (id) => {
*/ */
export const releasePageHome = (id) => { export const releasePageHome = (id) => {
return putRequest(`/pageData/release/${id}`); return putRequest(`/other/pageData/release/${id}`);
}; };
//管理员获取发送列表 //管理员获取发送列表
export const getMessagePage = (params) => { export const getMessagePage = (params) => {
return getRequest(`/message`, params); return getRequest(`/other/message`, params);
}; };
//管理员获取发送列表 //管理员获取发送列表
export const sendMessage = (params) => { export const sendMessage = (params) => {
return postRequest(`/message`, params); return postRequest(`/other/message`, params);
}; };
//管理员获取发送详情列表 //管理员获取发送详情列表
export const getShopMessage = (params) => { export const getShopMessage = (params) => {
return getRequest(`/message/store`, params); return getRequest(`/other/storeMessage`, params);
}; };
//管理员获取会员意见反馈 //管理员获取会员意见反馈
export const getMemberFeedback = (params) => { export const getMemberFeedback = (params) => {
return getRequest(`/feedback`, params); return getRequest(`/other/feedback`, params);
}; };
//管理员获取会员意见反馈 //管理员获取会员意见反馈
export const getMemberFeedbackDetail = (id) => { export const getMemberFeedbackDetail = (id) => {
return getRequest(`/feedback/${id}`); return getRequest(`/other/feedback/${id}`);
}; };
//管理员获取发送详情列表 //管理员获取发送详情列表
export const getMemberMessage = (params) => { export const getMemberMessage = (params) => {
return getRequest(`/message/member`, params); return getRequest(`/other/memberMessage`, params);
}; };

View File

@ -63,54 +63,45 @@ export const savePageData = (params) => {
} }
//获取分类列表数据 //获取分类列表数据
export const getArticleCategory = () => { export const getArticleCategory = () => {
return getRequest(`/article-category/all-children`) return getRequest(`/other/articleCategory/all-children`)
} }
//文章分类添加 //文章分类添加
export const saveArticleCategory = (params) => { export const saveArticleCategory = (params) => {
return postRequest('/article-category', params) return postRequest('/other/articleCategory', params)
} }
//删除文章分类 //删除文章分类
export const delArticleCategory = (id) => { export const delArticleCategory = (id) => {
return deleteRequest(`/article-category/${id}`) return deleteRequest(`/other/articleCategory${id}`)
} }
//修改文章分类 //修改文章分类
export const updateArticleCategory = (params, id) => { export const updateArticleCategory = (params, id) => {
return putRequest(`/article-category/update/${id}`, params) return putRequest(`/other/articleCategory/update/${id}`, params)
} }
//文章添加 //文章添加
export const saveArticle = (params) => { export const saveArticle = (params) => {
return postRequest('/article', params, {"Content-Type": "application/json"}) return postRequest('/other/article', params, {"Content-Type": "application/json"})
} }
//文章修改 //文章修改
export const updateArticle = (params) => { export const updateArticle = (params) => {
return putRequest(`/article/update/${params.id}`, params, {"Content-Type": "application/json"}) return putRequest(`/other/article/update/${params.id}`, params, {"Content-Type": "application/json"})
} }
//文章是否展示修改 //文章是否展示修改
export const updateArticleStatus = (id,params) => { export const updateArticleStatus = (id,params) => {
return putRequest(`/article/update/status/${id}`, params) return putRequest(`/other/article/update/status/${id}`, params)
} }
//查看文章 //查看文章
export const seeArticle = (id) => { export const seeArticle = (id) => {
return getRequest(`/article/${id}`) return getRequest(`/other/article/${id}`)
} }
//获取文章列表数据 //获取文章列表数据
export const getArticle = (params) => { export const getArticle = (params) => {
return getRequest('/article/getByPage', params) return getRequest('/other/article/getByPage', params)
} }
//删除文章数据 //删除文章数据
export const delArticle = (ids) => { export const delArticle = (ids) => {
return deleteRequest(`/article/delByIds/${ids}`) return deleteRequest(`/other/article/delByIds/${ids}`)
} }

View File

@ -7,7 +7,7 @@ import {
// 查询短信站内信信息 // 查询短信站内信信息
export const getMessageData = params => { export const getMessageData = params => {
return getRequest("/message", params); return getRequest("/other/message", params);
}; };
//修改短信模板 //修改短信模板
export const editSmsMessageTemplate = (id, params) => { export const editSmsMessageTemplate = (id, params) => {
@ -153,12 +153,12 @@ export const editInstantDeliveryImage = (bean, params) => {
//查询短信发送记录 //查询短信发送记录
export const getSmsPage = (params) => { export const getSmsPage = (params) => {
return getRequest(`sms`, params); return getRequest(`sms/sms`, params);
}; };
//发送短信 //发送短信
export const sendSms = (params) => { export const sendSms = (params) => {
return postRequest(`sms`, params); return postRequest(`sms/sms`, params);
}; };
/* /*
* 获取 支付支持设置开关 * 获取 支付支持设置开关

View File

@ -7,40 +7,40 @@ export const getBillPage = (params) => {
} }
//查询店铺列表 //查询店铺列表
export const getShopListData = (params) => { export const getShopListData = (params) => {
return getRequest('/store', params) return getRequest('/store/store', params)
} }
//禁用店铺 //禁用店铺
export const disableShop = (id) => { export const disableShop = (id) => {
return putRequest(`/store/disable/${id}`) return putRequest(`/store/store/disable/${id}`)
} }
//开启店铺 //开启店铺
export const enableBrand = (id) => { export const enableBrand = (id) => {
return putRequest(`/store/enable/${id}`) return putRequest(`/store/store/enable/${id}`)
} }
//查询店铺详细 //查询店铺详细
export const getShopDetailData = (id, params) => { export const getShopDetailData = (id, params) => {
return getRequest(`/store/get/detail/${id}`, params) return getRequest(`/store/store/get/detail/${id}`, params)
} }
//增加店铺列表 //增加店铺列表
export const shopAdd = (params) => { export const shopAdd = (params) => {
return postRequest(`/store/add`, params) return postRequest(`/store/store/add`, params)
} }
//修改店铺列表 //修改店铺列表
export const shopEdit = (id,params) => { export const shopEdit = (id,params) => {
return putRequest(`/store/edit/${id}`, params) return putRequest(`/store/store/edit/${id}`, params)
} }
//审核店铺 //审核店铺
export const shopAudit = (id, passed) => { export const shopAudit = (id, passed) => {
return putRequest(`/store/audit/${id}/${passed}`) return putRequest(`/store/store/audit/${id}/${passed}`)
} }
//查询店铺详情 //查询店铺详情
export const shopDetail = (id) => { export const shopDetail = (id) => {
return getRequest(`/store/get/detail/${id}`) return getRequest(`/store/store/get/detail/${id}`)
} }
@ -74,10 +74,10 @@ export const pay = (id) => {
//获取所有商家 //获取所有商家
export const getShopList = () => { export const getShopList = () => {
return getRequest(`/store/all`) return getRequest(`/store/store/all`)
} }
//根据id获取店铺信息 //根据id获取店铺信息
export const getShopByMemberId = (id) => { export const getShopByMemberId = (id) => {
return getRequest(`/store/${id}/member`) return getRequest(`/store/store/${id}/member`)
} }

View File

@ -47,7 +47,7 @@
<div> <div>
<Upload <Upload
style="display:inline-block;" style="display:inline-block;"
:action="commonUrl + '/common/upload/file'" :action="commonUrl + '/common/common/upload/file'"
:headers="accessToken" :headers="accessToken"
:on-success="handleSuccess" :on-success="handleSuccess"
:on-error="handleError" :on-error="handleError"

View File

@ -3,17 +3,17 @@ import {getRequest, putRequest, postRequest} from "@/libs/axios";
// 分页获取会员评价 // 分页获取会员评价
export const getMemberReview = params => { export const getMemberReview = params => {
return getRequest("/memberEvaluation", params); return getRequest("/member/evaluation", params);
}; };
// 根据id获取评价详情 // 根据id获取评价详情
export const getMemberInfoReview = id => { export const getMemberInfoReview = id => {
return getRequest(`/memberEvaluation/get/${id}`); return getRequest(`/member/evaluation/get/${id}`);
}; };
//回复评价信息 //回复评价信息
export const replyMemberReview = (id, params) => { export const replyMemberReview = (id, params) => {
return putRequest(`/memberEvaluation/reply/${id}`, params); return putRequest(`/member/evaluation/reply/${id}`, params);
}; };
// 获取会员注册统计列表 // 获取会员注册统计列表
@ -72,7 +72,7 @@ export const deleteMemberListData = ids => {
}; };
// 获取充值记录列表数据 // 获取充值记录列表数据
export const getUserRecharge = params => { export const getUserRecharge = params => {
return getRequest("/recharge", params); return getRequest("/wallet/recharge", params);
}; };
// 获取预存款明细列表数据 // 获取预存款明细列表数据

View File

@ -16,7 +16,7 @@ import {
*/ */
export const setHomeSetup = params => { export const setHomeSetup = params => {
return postRequest("/pageData/add", params); return postRequest("/other/pageData/add", params);
}; };
/** /**
@ -25,7 +25,7 @@ export const setHomeSetup = params => {
*/ */
export const getHomeData = params => { export const getHomeData = params => {
return getRequest(`/pageData/${params}`); return getRequest(`/other/pageData/${params}`);
}; };