From c1e32ecc202cda24eed38d29aede52155535df98 Mon Sep 17 00:00:00 2001 From: lr Date: Sun, 16 Feb 2025 22:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=8A=E5=A4=A9=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=A4=B4=E5=83=8F=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/api/news.js | 11 + jiuyi2/api/shop.js | 12 + jiuyi2/common/js/config.js | 2 +- jiuyi2/components/shop/detail/footerMenu.vue | 211 +-- jiuyi2/pages.json | 128 +- jiuyi2/pages/news/chat/chat.vue | 1130 +++++++++-------- jiuyi2/pages/news/chat/jy-plus.vue | 485 +++---- jiuyi2/pages/news/goodsList/index.vue | 22 + jiuyi2/pages/news/newFriend.vue | 1 - .../cache/.vite/deps/@tencentcloud_chat.js | 4 +- ...centcloud_chat_modules_group-module__js.js | 2 +- ...cloud_chat_modules_group-module__js.js.map | 2 +- .../dist/cache/.vite/deps/_metadata.json | 26 +- .../dist/cache/.vite/deps/crypto-js.js | 144 +-- .../dist/cache/.vite/deps/crypto-js.js.map | 2 +- .../cache/.vite/deps/tim-upload-plugin.js | 4 +- .../cache/.vite/deps/tim-upload-plugin.js.map | 2 +- jiuyi2/vite.config.js | 2 +- service/App.vue | 8 +- service/api/mine.js | 5 +- service/api/news.js | 11 + service/common/js/config.js | 5 +- service/common/js/util.js | 91 +- service/pages/index/index.vue | 237 ++-- service/pages/login/login.vue | 1 - .../cache/.vite/deps/@tencentcloud_chat.js | 4 +- .../dist/cache/.vite/deps/_metadata.json | 12 +- .../dist/cache/.vite/deps/crypto-js.js | 144 +-- .../dist/cache/.vite/deps/crypto-js.js.map | 2 +- service/vite.config.js | 2 +- 30 files changed, 1460 insertions(+), 1252 deletions(-) create mode 100644 jiuyi2/pages/news/goodsList/index.vue diff --git a/jiuyi2/api/news.js b/jiuyi2/api/news.js index fa7ac454..2d9c258e 100644 --- a/jiuyi2/api/news.js +++ b/jiuyi2/api/news.js @@ -217,6 +217,17 @@ export const news = { method: 'GET' }) }, + + + // 客服发消息 + sendCusomterService(param) { + return util.request({ + url: `/user/chat/sendMsgToPlatformService`, + query: param.query, + data: param.data, + method: 'POST', + }) + }, } export default news \ No newline at end of file diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index 36402503..78776834 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -437,6 +437,18 @@ const shop = { method: 'GET', }) }, + + /** + * 获取店铺客服信息 + * @param {Object} param + */ + getCustomerService(param) { + return util.request({ + url: `/user/MCustomerService/random`, + method: 'GET', + query: param, + }) + }, } export default shop \ No newline at end of file diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index aa30024d..4500abc9 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -7,7 +7,7 @@ const config = { // #endif // #ifndef H5 // host: 'http://91f.xyz:8080', - host: 'http://d5si5v.natappfree.cc', + host: 'https://b433d23.r24.cpolar.top/', // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/components/shop/detail/footerMenu.vue b/jiuyi2/components/shop/detail/footerMenu.vue index 6be46c0e..ba7139bd 100644 --- a/jiuyi2/components/shop/detail/footerMenu.vue +++ b/jiuyi2/components/shop/detail/footerMenu.vue @@ -1,90 +1,121 @@ \ No newline at end of file diff --git a/jiuyi2/pages.json b/jiuyi2/pages.json index d3958805..fa3e654e 100644 --- a/jiuyi2/pages.json +++ b/jiuyi2/pages.json @@ -1,6 +1,5 @@ { "pages": [ - { "path": "pages/index/index", "style": { @@ -92,12 +91,24 @@ "navigationBarTitleText": "问答页" } }, + { + "path": "pages/news/chat/customeChat", + "style": { + "navigationBarTitleText": "客服聊天" + } + }, { "path": "pages/news/red-envelope/index", "style": { "navigationBarTitleText": "红包详情" } }, + { + "path": "pages/news/goodsList/index", + "style": { + "navigationBarTitleText": "商品列表" + } + }, { "path": "pages/mine/mine", "style": { @@ -219,7 +230,6 @@ "navigationBarTitleText": "我的分享" } }, - { "path": "pages/index/deal", "style": { @@ -453,7 +463,6 @@ "style": { "navigationBarTitleText": "账单详情", "navigationBarBackgroundColor": "#fff" - } }, { @@ -724,57 +733,59 @@ } } ], - - "subPackages": [{ - "root": "TUIKit", - "pages": [{ - "path": "components/TUIConversation/index", - "style": { - "navigationBarTitleText": "消息" + "subPackages": [ + { + "root": "TUIKit", + "pages": [ + { + "path": "components/TUIConversation/index", + "style": { + "navigationBarTitleText": "消息" + } + }, + { + "path": "components/TUIChat/index", + "style": { + "navigationBarTitleText": "消息" + } + }, + // 集成 chat 组件,必须配置该路径: 视频播放 + { + "path": "components/TUIChat/video-play", + "style": { + "navigationBarTitleText": "消息" + } + }, + { + "path": "components/TUIChat/web-view", + "style": { + "navigationBarTitleText": "消息" + } + }, + { + "path": "components/TUIContact/index", + "style": { + "navigationBarTitleText": "消息" + } + }, + { + "path": "components/TUIGroup/index", + "style": { + "navigationBarTitleText": "消息" + } + }, + { + "path": "components/TUISearch/index", + "style": { + "navigationBarTitleText": "聊天记录" + } } - }, - { - "path": "components/TUIChat/index", - "style": { - "navigationBarTitleText": "消息" - } - }, - // 集成 chat 组件,必须配置该路径: 视频播放 - { - "path": "components/TUIChat/video-play", - "style": { - "navigationBarTitleText": "消息" - } - }, - { - "path": "components/TUIChat/web-view", - "style": { - "navigationBarTitleText": "消息" - } - }, - { - "path": "components/TUIContact/index", - "style": { - "navigationBarTitleText": "消息" - } - }, - { - "path": "components/TUIGroup/index", - "style": { - "navigationBarTitleText": "消息" - } - }, - { - "path": "components/TUISearch/index", - "style": { - "navigationBarTitleText": "聊天记录" - } - } - ] - }], - + ] + } + ], "tabBar": { - "list": [{ + "list": [ + { "text": "视频", "pagePath": "pages/index/index" }, @@ -796,7 +807,6 @@ } ] }, - "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "九亿", @@ -806,14 +816,14 @@ "bounce": "none" //关闭窗口回弹效果 } }, - "condition": { "current": 0, - "list": [{ - "name": "test", - "path": "pages/index/index" - }] + "list": [ + { + "name": "test", + "path": "pages/index/index" + } + ] }, - "uniIdRouter": {} } \ No newline at end of file diff --git a/jiuyi2/pages/news/chat/chat.vue b/jiuyi2/pages/news/chat/chat.vue index 6c9cc7a1..fd44076a 100644 --- a/jiuyi2/pages/news/chat/chat.vue +++ b/jiuyi2/pages/news/chat/chat.vue @@ -1,451 +1,458 @@