感兴趣的人传id方式改变

This commit is contained in:
lmj
2022-10-21 14:50:06 +08:00
parent 4cca40c53e
commit 87a42aaf9a
3 changed files with 3 additions and 4 deletions

View File

@@ -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);
}
/**

View File

@@ -407,7 +407,6 @@
item.orgInfo=author.orgInfo;
item.sex=author.sex;
item.sign=author.sign
console.log(list,'评论信息')
return true;
}else{
return false;

View File

@@ -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)];