| | |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | vc.component.listMyCommunity(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('communityManage','listMyCommunity',function(_param){ |
| | | vc.component._listCommunitys(); |
| | | vc.on('communityManage','listCommunity',function(_param){ |
| | | vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | }); |
| | | vc.on('pagination','page_event',function(_currentPage){ |
| | | vc.component._listCommunitys(_currentPage,DEFAULT_ROWS); |
| | |
| | | vc.component.communityManageInfo.total = _communityManageInfo.total; |
| | | vc.component.communityManageInfo.records = _communityManageInfo.records; |
| | | vc.component.communityManageInfo.communitys = _communityManageInfo.communitys; |
| | | vc.emit('pagination','init',{ |
| | | total:vc.component.communityManageInfo.records, |
| | | currentPage:_page |
| | | }); |
| | | },function(errInfo,error){ |
| | | console.log('请求失败处理'); |
| | | } |
| | | ); |
| | | }, |
| | | _openAddCommunityModal:function(){ |
| | | vc.emit('addCommunity','openAddCommunity',{}); |
| | | vc.emit('addCommunity','openAddCommunityModal',{}); |
| | | }, |
| | | _openEditCommunityModel:function(_community){ |
| | | vc.emit('editCommunity','openEditCommunityModal',_community); |
| | | }, |
| | | _showCommunityStatus(_statusCd){ |
| | | if(_statusCd == '1000'){ |
| | | return "入驻审核"; |
| | | }else if(_statusCd == '1001'){ |
| | | return "退出审核"; |
| | | }else if(_statusCd == '0000'){ |
| | | return "入驻成功"; |
| | | } |
| | | |
| | | return "未知"; |
| | | _openDeleteCommunityModel:function(_community){ |
| | | vc.emit('deleteCommunity','openDeleteCommunityModal',_community); |
| | | } |
| | | } |
| | | }); |