diff --git a/.gitignore b/.gitignore index 5d630ad2..b95ecdaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /jiuyi2/unpackage /jiuyi/unpackage /jiuyi2/.hbuilderx -/jiuyi/.hbuilderx \ No newline at end of file +/jiuyi/.hbuilderx +unpackage 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/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..e1e491f7 100644 --- a/jiuyi2/pages/index/search.vue +++ b/jiuyi2/pages/index/search.vue @@ -1,265 +1,286 @@