diff --git a/src/api/phase2/userhobby.js b/src/api/phase2/userhobby.js index fea8d768..375c6787 100644 --- a/src/api/phase2/userhobby.js +++ b/src/api/phase2/userhobby.js @@ -20,8 +20,8 @@ const save=function (data){ * 同兴趣人匹配查询 * 参数:下面那个接口的返回值直接传 * */ -const list=function (data){ - return ajax.postJson(baseURL,'/xboe/subgroup/m/userhobby/list',data); +const list=function (aid){ + return ajax.get(baseURL,'/xboe/subgroup/m/userhobby/list?aid='+aid); } /** diff --git a/src/components/Portal/comments.vue b/src/components/Portal/comments.vue index 3194625f..2ca0fae6 100644 --- a/src/components/Portal/comments.vue +++ b/src/components/Portal/comments.vue @@ -407,7 +407,6 @@ item.orgInfo=author.orgInfo; item.sex=author.sex; item.sign=author.sign - console.log(list,'评论信息') return true; }else{ return false; diff --git a/src/views/homepage/Index.vue b/src/views/homepage/Index.vue index cc45ebea..7596e1ef 100644 --- a/src/views/homepage/Index.vue +++ b/src/views/homepage/Index.vue @@ -109,7 +109,7 @@ userhobbyInfo() { let $this=this; $this.interestedList=[]; - apiUserhobby.list({aid:this.pageId}).then(res=>{ + apiUserhobby.list(this.pageId).then(res=>{ if(res.status == 200) { let ids = res.result.map(item=>item.aid); const noReapetIds = [...new Set(ids)];