|
@@ -11,7 +11,7 @@
|
|
|
#import "RDSHomeRoomView.h"
|
|
|
#import "RDSRoomCell.h"
|
|
|
#import "RDSAddRoomView.h"
|
|
|
-#import "RDSResetDeviceVC.h"
|
|
|
+#import "RDSSelectDeviceMainVC.h"
|
|
|
#import "RDSAirControlVC.h"
|
|
|
#import "RDSSubControlVC.h"
|
|
|
#import <MJRefresh/MJRefresh.h>
|
|
@@ -48,6 +48,7 @@ static NSString * const RDSRoomCellID = @"RDSRoomCellID";
|
|
|
|
|
|
|
|
|
[self p_getCurrentUserInfo];
|
|
|
+// [self p_getHomeList];
|
|
|
[self p_setUpTimer];// 初始化轮询
|
|
|
[self p_setupCollectionView];
|
|
|
|
|
@@ -84,6 +85,10 @@ static NSString * const RDSRoomCellID = @"RDSRoomCellID";
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
+//- (void)p_getHomeList {
|
|
|
+// [RDSHomeModel rds_getHomeListIsAdmin:NO finished:nil];
|
|
|
+//}
|
|
|
+
|
|
|
- (void)p_getWeather{
|
|
|
RDS_WEAKSELF(weakSelf)
|
|
|
[WeatherModel rds_getWeatherFinished:^(WeatherModel * _Nonnull weather, NSError * _Nonnull error) {
|
|
@@ -238,7 +243,7 @@ static NSString * const RDSRoomCellID = @"RDSRoomCellID";
|
|
|
|
|
|
RDS_WEAKSELF(weakSelf)
|
|
|
_addView.onAddClick = ^{
|
|
|
- RDSResetDeviceVC *vc = [[RDSResetDeviceVC alloc] init];
|
|
|
+ RDSSelectDeviceMainVC *vc = [[RDSSelectDeviceMainVC alloc] init];
|
|
|
vc.hidesBottomBarWhenPushed = YES;
|
|
|
[weakSelf pushViewController:vc animated:YES];
|
|
|
|