zhangjiaqing
2026-03-11 ea04a39d0af10d88b8ef7b09a6f6062c8e4e5386
修复分页问题
2个文件已修改
4 ■■■■ 已修改文件
public/pages/property/listOwnerCar/listOwnerCar.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/property/room/room.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/property/listOwnerCar/listOwnerCar.js
@@ -149,7 +149,7 @@
                        $that.dealCarAttr(mappedCars);
                        
                        // 计算总页数
                        var totalPages = Math.ceil(total / _rows) || 1;
                        var totalPages = Math.ceil(total / _row) || 1;
                        
                        vc.emit('pagination', 'init', {
                            total: totalPages,  // 使用计算得出的总页数
public/pages/property/room/room.js
@@ -136,7 +136,7 @@
                            $that.roomInfo.rooms = [];
                        }
                        // 计算总页数
                        var totalPages = Math.ceil(listRoomData.total / _rows) || 1;
                        var totalPages = Math.ceil(listRoomData.total / _row) || 1;
                        vc.emit('pagination', 'init', {
                            total: totalPages,
                            dataCount: $that.roomInfo.total,