sync:商品列表瀑布流问题修改 https://gitee.com/sheepjs/shopro-uniapp/commit/c2cd0156f38d2dbd9f6b8712dae757e906d0ebca
This commit is contained in:
@@ -187,15 +187,15 @@
|
||||
|
||||
// 处理双列布局 leftGoodsList + rightGoodsList
|
||||
function mountMasonry(height = 0, where = 'left') {
|
||||
if (!state.pagination.list[count]) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (where === 'left') {
|
||||
leftHeight += height;
|
||||
} else {
|
||||
rightHeight += height;
|
||||
}
|
||||
if (!state.pagination.list[count]) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (leftHeight <= rightHeight) {
|
||||
state.leftGoodsList.push(state.pagination.list[count]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user