|
@@ -223,7 +223,7 @@
|
|
|
xl: '', //学历
|
|
|
hyqk: '', //婚姻情况
|
|
|
znqk: '', //子女情况
|
|
|
- hobbyInfo: '', //兴趣爱好
|
|
|
+ hobbys: '', //兴趣爱好
|
|
|
},
|
|
|
tabList: [{
|
|
|
name: '全部'
|
|
@@ -329,6 +329,7 @@
|
|
|
this.interests= interest;
|
|
|
},
|
|
|
sure() {
|
|
|
+ this.form.hobbys = '';
|
|
|
this.friendList = [];
|
|
|
if(this.checked) {
|
|
|
this.form.oppositeSex = '1';
|
|
@@ -354,11 +355,11 @@
|
|
|
{
|
|
|
if(this.interests[i].hobbyChecked)
|
|
|
{
|
|
|
- if(this.form.hobbyInfo.length>0)
|
|
|
+ if(this.form.hobbys.length>0)
|
|
|
{
|
|
|
- this.form.hobbyInfo+=','
|
|
|
+ this.form.hobbys+=','
|
|
|
}
|
|
|
- this.form.hobbyInfo += this.interests[i].id;
|
|
|
+ this.form.hobbys += this.interests[i].id;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -399,6 +400,7 @@
|
|
|
}
|
|
|
},
|
|
|
refreshClick() {
|
|
|
+ this.friendList = [];
|
|
|
let formList = [];
|
|
|
for(var item in this.list) {
|
|
|
var sgd = {};
|
|
@@ -407,12 +409,16 @@
|
|
|
}
|
|
|
let refreshList = [];
|
|
|
for(var i=0; i<3; i++) {
|
|
|
- var num=Math.floor(Math.random()*8+0);
|
|
|
+ var num=Math.floor(Math.random()*9+0);
|
|
|
refreshList.push(formList[num]);
|
|
|
}
|
|
|
refreshList.push({type: '1'});
|
|
|
refreshList.push({memberId: this.memberId});
|
|
|
|
|
|
+ if(refreshList.oppositeSex == null) {
|
|
|
+ refreshList.push({oppositeSex: this.list.oppositeSex});
|
|
|
+ }
|
|
|
+
|
|
|
var obj = {};
|
|
|
for(var m in refreshList) {
|
|
|
for(var n in refreshList[m]) {
|
|
@@ -425,7 +431,11 @@
|
|
|
mask: true,
|
|
|
})
|
|
|
friendApi.findFriendsList(obj).then((res) => {
|
|
|
- this.friendList = res.data.data;
|
|
|
+ this.friendList = [
|
|
|
+ ...this.friendList,
|
|
|
+ ...res.data.data
|
|
|
+ ];
|
|
|
+ this.recordsTotal = res.data.recordsTotal;
|
|
|
uni.hideLoading();
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
@@ -449,6 +459,7 @@
|
|
|
friendApi.findFriendsList({
|
|
|
type: this.type,
|
|
|
memberId: this.memberId,
|
|
|
+ oppositeSex: '1',
|
|
|
pageIndex: 1,
|
|
|
pageSize: 20
|
|
|
}).then((res) => {
|