mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 12:56:43 +08:00
感兴趣的人传id方式改变
This commit is contained in:
@@ -20,8 +20,8 @@ const save=function (data){
|
|||||||
* 同兴趣人匹配查询
|
* 同兴趣人匹配查询
|
||||||
* 参数:下面那个接口的返回值直接传
|
* 参数:下面那个接口的返回值直接传
|
||||||
* */
|
* */
|
||||||
const list=function (data){
|
const list=function (aid){
|
||||||
return ajax.postJson(baseURL,'/xboe/subgroup/m/userhobby/list',data);
|
return ajax.get(baseURL,'/xboe/subgroup/m/userhobby/list?aid='+aid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -407,7 +407,6 @@
|
|||||||
item.orgInfo=author.orgInfo;
|
item.orgInfo=author.orgInfo;
|
||||||
item.sex=author.sex;
|
item.sex=author.sex;
|
||||||
item.sign=author.sign
|
item.sign=author.sign
|
||||||
console.log(list,'评论信息')
|
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
userhobbyInfo() {
|
userhobbyInfo() {
|
||||||
let $this=this;
|
let $this=this;
|
||||||
$this.interestedList=[];
|
$this.interestedList=[];
|
||||||
apiUserhobby.list({aid:this.pageId}).then(res=>{
|
apiUserhobby.list(this.pageId).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
let ids = res.result.map(item=>item.aid);
|
let ids = res.result.map(item=>item.aid);
|
||||||
const noReapetIds = [...new Set(ids)];
|
const noReapetIds = [...new Set(ids)];
|
||||||
|
|||||||
Reference in New Issue
Block a user