diff --git a/buyer/public/config.js b/buyer/public/config.js index 39fb8a71..2272ff76 100644 --- a/buyer/public/config.js +++ b/buyer/public/config.js @@ -1,21 +1,17 @@ var BASE = { - /** - * @description api请求基础路径 - */ - API_DEV: { - common: "https://common-api.pickmall.cn", - buyer: "https://buyer-api.pickmall.cn", - seller: "https://store-api.pickmall.cn", - manager: "https://admin-api.pickmall.cn" - // common: "http://192.168.0.105:8890", - // buyer: "http://192.168.0.105:8888", - // seller: "http://192.168.0.105:8889", - // manager: "http://192.168.0.105:8887" - }, - API_PROD: { - common: "https://common-api.pickmall.cn", - buyer: "https://buyer-api.pickmall.cn", - seller: "https://store-api.pickmall.cn", - manager: "https://admin-api.pickmall.cn" - }, - }; + /** + * @description api请求基础路径 + */ + API_DEV: { + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" + }, + API_PROD: { + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" + }, +}; diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue index 14fdb13c..929db852 100644 --- a/buyer/src/pages/GoodsDetail.vue +++ b/buyer/src/pages/GoodsDetail.vue @@ -15,12 +15,12 @@
{{ - goodsMsg.data.storeName -}} + goodsMsg.data.storeName + }} - {{ storeCollected ? "已收藏店铺" : "收藏店铺" }} + {{ storeCollected? "已收藏店铺": "收藏店铺" }} 联系客服
@@ -92,6 +92,17 @@ export default { "&skuId=" + this.goodsMsg.data.id ); + // window.open( + // 'http://192.168.0.139:8000/' + + // "?token=" + + // accessToken + + // "&id=" + + // this.goodsMsg.data.storeId + + // "&goodsId=" + + // this.goodsMsg.data.goodsId + + // "&skuId=" + + // this.goodsMsg.data.id + // ); }, // 获取im信息 async getIMDetailMethods () { diff --git a/im/.env b/im/.env index 38ee6b50..b65f6811 100644 --- a/im/.env +++ b/im/.env @@ -3,5 +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://store-b2b2c.pickmall.cn +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 d6973c53..1018d37c 100644 --- a/im/.env.development +++ b/im/.env.development @@ -1,7 +1,10 @@ NODE_ENV=development -VUE_APP_PREVIEW=true -VUE_APP_API_BASE_URL=http://192.168.0.113:8885 -VUE_APP_WEB_SOCKET_URL=ws://192.168.0.113:8885/lili/webSocket -VUE_APP_COMMON=http://192.168.0.113:8890 -VUE_APP_PC_URL="http://192.168.0.113:10001" +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_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/messaege/TextMessage.vue b/im/src/components/chat/messaege/TextMessage.vue index 80008d26..e00377ae 100644 --- a/im/src/components/chat/messaege/TextMessage.vue +++ b/im/src/components/chat/messaege/TextMessage.vue @@ -1,12 +1,9 @@