From e7879aac657898efca33e288900eeda758b359c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B?= <994041296@163.com> Date: Wed, 8 Feb 2023 11:59:15 +0800 Subject: [PATCH] =?UTF-8?q?im=E8=81=8A=E5=A4=A9=E5=AE=A4=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/im.js | 2 +- config/api.js | 9 +++-- pages/mine/distribution/history.vue | 37 +++++++++---------- pages/mine/im/index.vue | 26 +++++++------- utils/filters.js | 56 +++++++++++++++++------------ utils/socket_service.js | 1 + 6 files changed, 72 insertions(+), 59 deletions(-) diff --git a/api/im.js b/api/im.js index 88b2690..3de0b17 100644 --- a/api/im.js +++ b/api/im.js @@ -67,7 +67,7 @@ export function getTalk(talkId) { // 从商品页点击 客服 跳转 获取商品详情 export function jumpObtain(skuId, goodsId) { return http.request({ - url: `${api.im}/goods/goods/sku/${goodsId}/${skuId}`, + url: `/goods/goods/sku/${goodsId}/${skuId}`, method: Method.GET, }); } diff --git a/config/api.js b/config/api.js index 67ab49b..7b45b05 100644 --- a/config/api.js +++ b/config/api.js @@ -4,9 +4,12 @@ */ // 开发环境 const dev = { - im: "https://im-api.pickmall.cn", - common: "https://common-api.pickmall.cn", - buyer: "https://buyer-api.pickmall.cn", + im: "https://im-api.pickmall.cn", + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + // common: "http://192.168.0.113:8890", + // buyer: "http://192.168.0.113:8888", + // im: "http://192.168.0.113:8885", }; // 生产环境 const prod = { diff --git a/pages/mine/distribution/history.vue b/pages/mine/distribution/history.vue index f1ae218..af5f926 100644 --- a/pages/mine/distribution/history.vue +++ b/pages/mine/distribution/history.vue @@ -1,20 +1,15 @@