|
|
@ -52,14 +52,14 @@ Page({ |
|
|
|
getPartyGroupList () { |
|
|
|
getPartyGroupList().then(res => { |
|
|
|
console.log("获取党群列表", res) |
|
|
|
const groupNameList = ["进入玫瑰苑社群", "进入玫瑰湖社群", "进入锦水园社群", "进入锦祥园社群", "进入土楼社群", "进入子顺社群", "进入城西社群"] |
|
|
|
res.data.forEach((item, index) => { |
|
|
|
if (index <= 6) { |
|
|
|
item.groupName = groupNameList[index] |
|
|
|
} else { |
|
|
|
item.groupName = "进入社群" |
|
|
|
} |
|
|
|
}) |
|
|
|
// const groupNameList = ["进入玫瑰苑社群", "进入玫瑰湖社群", "进入锦水园社群", "进入锦祥园社群", "进入土楼社群", "进入子顺社群", "进入城西社群"]
|
|
|
|
// res.data.forEach((item, index) => {
|
|
|
|
// if (index <= 6) {
|
|
|
|
// item.groupName = groupNameList[index]
|
|
|
|
// } else {
|
|
|
|
// item.groupName = "进入社群"
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
this.setData({ |
|
|
|
associationList: [...this.data.associationList, ...res.data], |
|
|
|
loadMoreType: res.data.length === this.data.pageSize ? "loading": "none" |
|
|
|