From a97ed0c3f6d6bea95abfd776c3b8c44fe0132b77 Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Tue, 31 Jan 2023 17:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im/.env | 9 +-- im/.env.development | 9 +-- im/src/api/user.js | 33 ++++++-- im/src/components/chat/panel/OtherLink.vue | 91 ++++++++++++++-------- im/src/components/chat/panel/TalkPanel.vue | 3 +- im/src/config/config.js | 6 +- im/src/main.js | 6 +- 7 files changed, 98 insertions(+), 59 deletions(-) diff --git a/im/.env b/im/.env index b0a657c7..b65f6811 100644 --- a/im/.env +++ b/im/.env @@ -3,9 +3,8 @@ VUE_APP_PREVIEW=false VUE_APP_API_BASE_URL=https://im-api.pickmall.cn VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket VUE_APP_COMMON=https://common-api.pickmall.cn +VUE_APP_BUYER=https://buyer-api.pickmall.cn +VUE_APP_SELLER=https://seller-api.pickmall.cn VUE_APP_WEBSITE_NAME="LiLi IM" -VUE_APP_PC_ORDER_URL=https://pc-b2b2c.pickmall.cn/ -VUE_APP_PC_STORE_ORDER_URL=https://store-b2b2c.pickmall.cn/ -VUE_APP_PC_STORE_ORDER=https://store-b2b2c.pickmall.cn/ -VUE_APP_PC_USER_ORDER=https://pc-b2b2c.pickmall.cn -VUE_APP_PC_STORE_GOODS=https://store-b2b2c.pickmall.cn/ \ No newline at end of file +VUE_APP_PC_URL=https://pc-b2b2c.pickmall.cn/ +VUE_APP_PC_STORE=https://store-b2b2c.pickmall.cn/ \ No newline at end of file diff --git a/im/.env.development b/im/.env.development index 28921b97..1018d37c 100644 --- a/im/.env.development +++ b/im/.env.development @@ -3,9 +3,8 @@ VUE_APP_PREVIEW=false VUE_APP_API_BASE_URL=https://im-api.pickmall.cn VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket VUE_APP_COMMON=https://common-api.pickmall.cn +VUE_APP_BUYER=https://buyer-api.pickmall.cn +VUE_APP_SELLER=https://seller-api.pickmall.cn VUE_APP_WEBSITE_NAME="LiLi IM" -VUE_APP_PC_ORDER_URL=https://pc-b2b2c.pickmall.cn/ -VUE_APP_PC_STORE_ORDER_URL=https://store-b2b2c.pickmall.cn/ -VUE_APP_PC_STORE_ORDER=https://store-b2b2c.pickmall.cn/ -VUE_APP_PC_USER_ORDER=https://pc-b2b2c.pickmall.cn -VUE_APP_PC_STORE_GOODS=https://store-b2b2c.pickmall.cn/ \ No newline at end of file +VUE_APP_PC_URL=https://pc-b2b2c.pickmall.cn/ +VUE_APP_PC_STORE=https://store-b2b2c.pickmall.cn/ \ No newline at end of file diff --git a/im/src/api/user.js b/im/src/api/user.js index fb13624d..93f7b8f3 100644 --- a/im/src/api/user.js +++ b/im/src/api/user.js @@ -1,30 +1,47 @@ import { get } from "@/utils/request"; +import config from "@/config/config"; // 获取用户相关设置信息 export const ServeGetUserSetting = () => { - return get("/im/user"); + return get(`${config.BASE_BUYER}/buyer/passport/member`); }; // 获取店铺相关设置信息 export const ServeGetStoreSetting = () => { - return get("/im/user/store"); + return get(`${config.BASE_SELLER}/store/member/user`); }; // 获取用户相关设置信息 export const ServeGetUserDetail = (memberId) => { - return get(`/im/user/${memberId}`); + return get(`${config.BASE_SELLER}/store/passport/member/${memberId}`); }; // 获取店铺相关设置信息 export const ServeGetStoreDetail = (storeId) => { - return get(`/im/user/store/${storeId}`); + return get(`${config.BASE_BUYER}/buyer/store/store/store/${storeId}`); }; -// 获取店铺相关设置信息 +// 获取用户历史足迹 export const ServeGetFootPrint = (params) => { - return get(`/im/user/history`,params); + return get(`${config.BASE_BUYER}/buyer/member/footprint`,params); }; -// 获取订单列表信息 + +// 商家获取用户历史足迹 +export const ServeStoreGetFootPrint = (params) => { + return get(`${config.BASE_SELLER}/store/member/footprint`,params); +}; + +// 获取用户订单列表信息 export const ServeGetOrderPrint = (params) => { - return get(`/im/orders/orders`,params); + return get(`${config.BASE_BUYER}/buyer/order/order`,params); +}; + +// 商家获取用户订单列表信息 +export const ServeStoreGetOrderPrint = (params) => { + return get(`${config.BASE_SELLER}/store/order/order`,params); +}; + +// 获取商品信息 +export const ServeGetGoodsDetail = (data) => { + return get(`${config.BASE_BUYER}/buyer/goods/goods/sku/${data.goodsId}/${data.skuId}`); }; diff --git a/im/src/components/chat/panel/OtherLink.vue b/im/src/components/chat/panel/OtherLink.vue index fdcb2a56..dae7bdae 100644 --- a/im/src/components/chat/panel/OtherLink.vue +++ b/im/src/components/chat/panel/OtherLink.vue @@ -18,8 +18,7 @@