From 1e8c025c37d5d3a43441fb16fb17bd2cd0b14fc1 Mon Sep 17 00:00:00 2001 From: lr Date: Sun, 23 Feb 2025 15:23:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/api/video.js | 8 +- jiuyi2/common/js/config.js | 6 +- jiuyi2/components/news/msgList.vue | 3 +- jiuyi2/pages/index/search.vue | 748 +++++++++++++++-------------- jiuyi2/vite.config.js | 6 +- service/.hbuilderx/launch.json | 9 + service/common/js/config.js | 2 +- service/common/js/util.js | 27 +- service/pages/chat/chat.vue | 8 +- service/pages/index/index.vue | 152 ++---- service/vite.config.js | 2 +- 11 files changed, 478 insertions(+), 493 deletions(-) create mode 100644 service/.hbuilderx/launch.json diff --git a/jiuyi2/api/video.js b/jiuyi2/api/video.js index d2718d85..0ee5c6a3 100644 --- a/jiuyi2/api/video.js +++ b/jiuyi2/api/video.js @@ -301,9 +301,9 @@ const video = { */ hotVideos(param) { return util.request({ - url: `/home/hotVideos`, + url: `/video/search/getHot`, // query: param.query, - method: 'POST', + method: 'GET', }) }, @@ -325,8 +325,8 @@ const video = { */ videoSearch(param) { return util.request({ - url: `/home/videoSearch`, - query: param.query, + url: `/video/search/searchData`, + data: param.query, method: 'POST', }) }, diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index 4336ad84..bbf13c05 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -6,11 +6,9 @@ const config = { // host: 'h5api', // #endif // #ifndef H5 - host: 'http://91f.xyz:8080', -<<<<<<< HEAD + // host: 'http://91f.xyz:8080', // host: 'https://1a880cd5.r24.cpolar.top/', -======= ->>>>>>> 409f137e8990b13381bdbe7efca7eec9a3cfc89e + host: 'http://6mkwby.natappfree.cc', // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/components/news/msgList.vue b/jiuyi2/components/news/msgList.vue index 637dc962..f1ae14a0 100644 --- a/jiuyi2/components/news/msgList.vue +++ b/jiuyi2/components/news/msgList.vue @@ -110,8 +110,7 @@ function getList() { uni.$emit('updateNum', {}) uni.$chat.getConversationList().then(rs => { - let res = rs.data.conversationList - console.log(res); + let res = rs.data.conversationList let arr = [] res.forEach(item => { let obj = {} diff --git a/jiuyi2/pages/index/search.vue b/jiuyi2/pages/index/search.vue index 07bfcb69..b87755b7 100644 --- a/jiuyi2/pages/index/search.vue +++ b/jiuyi2/pages/index/search.vue @@ -1,265 +1,296 @@