From ff363844d1667cb8163dcbac610ad5625cd2b92b Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 12 Mar 2021 10:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=A5=BC=E6=A0=8B=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E5=88=86=E9=A1=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/components/property/chooseFloor/chooseFloor.html | 1 + public/components/property/chooseFloor/chooseFloor.js | 8 ++++++++ public/components/property/searchFloor/searchFloor.html | 1 + public/components/property/searchFloor/searchFloor.js | 7 +++++++ public/components/property/searchRoom/searchRoom.html | 1 + public/components/property/searchRoom/searchRoom.js | 7 +++++++ 6 files changed, 25 insertions(+) diff --git a/public/components/property/chooseFloor/chooseFloor.html b/public/components/property/chooseFloor/chooseFloor.html index 8b6e10b37..48ff52004 100644 --- a/public/components/property/chooseFloor/chooseFloor.html +++ b/public/components/property/chooseFloor/chooseFloor.html @@ -59,6 +59,7 @@ + diff --git a/public/components/property/chooseFloor/chooseFloor.js b/public/components/property/chooseFloor/chooseFloor.js index dc96d37cd..f1a7b3651 100644 --- a/public/components/property/chooseFloor/chooseFloor.js +++ b/public/components/property/chooseFloor/chooseFloor.js @@ -19,6 +19,10 @@ vc.component._refreshChooseFloorInfo(); vc.component._loadAllFloorInfo(1,10,''); }); + + vc.on('chooseFloor','paginationPlus', 'page_event', function (_currentPage) { + vc.component._loadAllFloorInfo(_currentPage, 10); + }); }, methods:{ _loadAllFloorInfo:function(_page,_row,_name){ @@ -39,6 +43,10 @@ function(json){ var _floorInfo = JSON.parse(json); vc.component.chooseFloorInfo.floors = _floorInfo.apiFloorDataVoList; + vc.emit('chooseFloor','paginationPlus', 'init', { + total: _floorInfo.records, + currentPage: _page + }); },function(){ console.log('请求失败处理'); } diff --git a/public/components/property/searchFloor/searchFloor.html b/public/components/property/searchFloor/searchFloor.html index 750d1db47..942938231 100644 --- a/public/components/property/searchFloor/searchFloor.html +++ b/public/components/property/searchFloor/searchFloor.html @@ -48,6 +48,7 @@ + diff --git a/public/components/property/searchFloor/searchFloor.js b/public/components/property/searchFloor/searchFloor.js index efb9a439c..f2446a8f8 100644 --- a/public/components/property/searchFloor/searchFloor.js +++ b/public/components/property/searchFloor/searchFloor.js @@ -20,6 +20,9 @@ vc.component._refreshSearchFloorData(); vc.component._loadAllFloorInfo(1,10); }); + vc.on('searchFloor','paginationPlus', 'page_event', function (_currentPage) { + vc.component._loadAllFloorInfo(_currentPage, 10); + }); }, methods:{ _loadAllFloorInfo:function(_page,_rows,_floorNum){ @@ -39,6 +42,10 @@ function(json){ var _floorInfo = JSON.parse(json); vc.component.searchFloorInfo.floors = _floorInfo.apiFloorDataVoList; + vc.emit('searchFloor','paginationPlus', 'init', { + total: _floorInfo.records, + currentPage: _page + }); },function(){ console.log('请求失败处理'); } diff --git a/public/components/property/searchRoom/searchRoom.html b/public/components/property/searchRoom/searchRoom.html index e1a16e9d5..8862cac9b 100644 --- a/public/components/property/searchRoom/searchRoom.html +++ b/public/components/property/searchRoom/searchRoom.html @@ -69,6 +69,7 @@ + diff --git a/public/components/property/searchRoom/searchRoom.js b/public/components/property/searchRoom/searchRoom.js index 74931c521..11e35484c 100644 --- a/public/components/property/searchRoom/searchRoom.js +++ b/public/components/property/searchRoom/searchRoom.js @@ -36,6 +36,9 @@ $('#searchRoomModel').modal('show'); vc.component.searchRoomInfo.rooms=_rooms; }); + vc.on('searchRoom','paginationPlus', 'page_event', function (_currentPage) { + vc.component._loadAllRoomInfo(_currentPage, 15,vc.component.searchRoomInfo._currentRoomNum); + }); }, methods:{ _loadAllRoomInfo:function(_page,_row,_roomNum){ @@ -63,6 +66,10 @@ function(json){ var _roomInfo = JSON.parse(json); vc.component.searchRoomInfo.rooms = _roomInfo.rooms; + vc.emit('searchRoom','paginationPlus', 'init', { + total: _roomInfo.records, + currentPage: _page + }); },function(){ console.log('请求失败处理'); }