|
@@ -37,12 +37,17 @@ Page({
|
|
|
"method": this.data.butText == '账号' ? "query_teamList" : "query_roleList",
|
|
|
"content": this.data.content
|
|
|
}).then(res => {
|
|
|
- console.log(res)
|
|
|
+ console.log("列表", res)
|
|
|
this.selectComponent('#ListBox').RefreshToComplete();
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
title: res.data,
|
|
|
icon: "none"
|
|
|
})
|
|
|
+ if (this.data.butText == '账号') {
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
+ res.data[i].attinfos = res.data[i].attinfos.filter(v => v.usetype == 'headportrait');
|
|
|
+ }
|
|
|
+ }
|
|
|
this.setData({
|
|
|
list: (res.pageNumber == 1) ? res.data : this.data.list.concat(res.data),
|
|
|
['content.pageNumber']: res.pageNumber + 1,
|