|
|
@ -69,8 +69,8 @@ Page({ |
|
|
|
griderList: res.data, |
|
|
|
loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none' |
|
|
|
}) |
|
|
|
const { griderList, griderLeftList, griderRightList } = this.data |
|
|
|
for (const item of griderList) { |
|
|
|
const { griderLeftList, griderRightList } = this.data |
|
|
|
for (const item of res.data) { |
|
|
|
leftHeight <= rightHeight ? griderLeftList.push(item) : griderRightList.push(item) //判断两边高度,来觉得添加到那边
|
|
|
|
await this.getBoxHeight(griderLeftList, griderRightList) |
|
|
|
} |
|
|
@ -97,8 +97,8 @@ Page({ |
|
|
|
griderList: this.data.griderList.concat(res.data), |
|
|
|
loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none' |
|
|
|
}) |
|
|
|
const { griderList, griderLeftList, griderRightList } = this.data |
|
|
|
for (const item of griderList) { |
|
|
|
const { griderLeftList, griderRightList } = this.data |
|
|
|
for (const item of res.data) { |
|
|
|
leftHeight <= rightHeight ? griderLeftList.push(item) : griderRightList.push(item) //判断两边高度,来觉得添加到那边
|
|
|
|
await this.getBoxHeight(griderLeftList, griderRightList) |
|
|
|
} |
|
|
|