mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-09-20 20:02:05 +08:00
fix(buyer): 未登录联系客服时提示登录
- 将登录提示由 Message 改为 Modal - 新增 promptLogin 方法处理登录跳转 - IMService 增加 accessToken 校验,未登录时提示登录 - 改进用户信息获取的错误处理 - 重构 IM 链接 URL 拼接,提升可读性
This commit is contained in:
@@ -17,31 +17,35 @@ export const ServeGetUserDetail = (memberId) => {
|
||||
};
|
||||
|
||||
// 获取店铺相关设置信息
|
||||
export const ServeGetStoreDetail = (storeId) => {
|
||||
return get(`${config.BASE_BUYER}/buyer/store/store/store/${storeId}`);
|
||||
export const ServeGetStoreDetail = (storeId, options = {}) => {
|
||||
return get(`${config.BASE_BUYER}/buyer/store/store/store/${storeId}`, {}, options);
|
||||
};
|
||||
|
||||
// 获取用户历史足迹
|
||||
export const ServeGetFootPrint = (params) => {
|
||||
return get(`${config.BASE_BUYER}/buyer/member/footprint`, params);
|
||||
export const ServeGetFootPrint = (params, options = {}) => {
|
||||
return get(`${config.BASE_BUYER}/buyer/member/footprint`, params, options);
|
||||
};
|
||||
|
||||
// 商家获取用户历史足迹
|
||||
export const ServeStoreGetFootPrint = (params) => {
|
||||
return get(`${config.BASE_SELLER}/store/member/footprint`, params);
|
||||
export const ServeStoreGetFootPrint = (params, options = {}) => {
|
||||
return get(`${config.BASE_SELLER}/store/member/footprint`, params, options);
|
||||
};
|
||||
|
||||
// 获取用户订单列表信息
|
||||
export const ServeGetOrderPrint = (params) => {
|
||||
return get(`${config.BASE_BUYER}/buyer/order/order`, params);
|
||||
export const ServeGetOrderPrint = (params, options = {}) => {
|
||||
return get(`${config.BASE_BUYER}/buyer/order/order`, params, options);
|
||||
};
|
||||
|
||||
// 商家获取用户订单列表信息
|
||||
export const ServeStoreGetOrderPrint = (params) => {
|
||||
return get(`${config.BASE_SELLER}/store/order/order`, params);
|
||||
export const ServeStoreGetOrderPrint = (params, options = {}) => {
|
||||
return get(`${config.BASE_SELLER}/store/order/order`, params, options);
|
||||
};
|
||||
|
||||
// 获取商品信息
|
||||
export const ServeGetGoodsDetail = (data) => {
|
||||
return get(`${config.BASE_BUYER}/buyer/goods/goods/sku/${data.goodsId}/${data.skuId}`);
|
||||
export const ServeGetGoodsDetail = (data, options = {}) => {
|
||||
return get(
|
||||
`${config.BASE_BUYER}/buyer/goods/goods/sku/${data.goodsId}/${data.skuId}`,
|
||||
{},
|
||||
options
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user