测试环境切换 添加一键喂鱼
This commit is contained in:
+9
@@ -174,6 +174,15 @@
|
||||
self.heartCount=0;
|
||||
|
||||
}
|
||||
else if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F])
|
||||
{
|
||||
self.imageView.image=[UIImage imageNamed:@"pet"];
|
||||
|
||||
self.controlBtn.hidden=NO;
|
||||
self.cameraBtn.hidden=NO;
|
||||
self.heartCount=0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
- (void)connect {
|
||||
|
||||
+18
-4
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import "XuanduoSettingController.h"
|
||||
#import "XuanduofishFeedViewController.h"
|
||||
#import "UINavigationBar+Background.h"
|
||||
#import "TemperatureSetCell.h"
|
||||
#import "ChangeWaterCell.h"
|
||||
@@ -523,10 +524,23 @@ static NSString *setTimerflag = @"SetTimerCell";
|
||||
#pragma mark - cell的折叠
|
||||
- (void)foldAction:(UIButton *)btn
|
||||
{
|
||||
XuanduoTimerListViewController *_settingVC = [[XuanduoTimerListViewController alloc] init];
|
||||
_settingVC.currentdevice = self.currentdevice;
|
||||
_settingVC.dataModel = self.dataModel;
|
||||
[self.navigationController pushViewController:_settingVC animated:YES];
|
||||
NSInteger current = btn.tag - kBtnTag-2;
|
||||
if (current==0)
|
||||
{
|
||||
XuanduoTimerListViewController *_settingVC = [[XuanduoTimerListViewController alloc] init];
|
||||
_settingVC.currentdevice = self.currentdevice;
|
||||
_settingVC.dataModel = self.dataModel;
|
||||
[self.navigationController pushViewController:_settingVC animated:YES];
|
||||
}
|
||||
else if (current==1)
|
||||
{
|
||||
XuanduofishFeedViewController *_settingVC = [[XuanduofishFeedViewController alloc] init];
|
||||
_settingVC.currentdevice = self.currentdevice;
|
||||
_settingVC.dataModel = self.dataModel;
|
||||
[self.navigationController pushViewController:_settingVC animated:YES];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void)switchAction:(UIButton *)btn {
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Xuanduo2SettingController.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by Alex on 2019/4/28.
|
||||
// Copyright © 2019 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "FatherController.h"
|
||||
#import "IfishDeviceInfo.h"
|
||||
#import "xuanduo3fModel.h"
|
||||
#import "ReadTimerModel.h"
|
||||
#import "XuanduoTimerSettingViewController.h"
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class Xuanduo2Model;
|
||||
|
||||
@interface XuanduofishFeedViewController : FatherController
|
||||
|
||||
@property (nonatomic,strong) UIActivityIndicatorView*indicatorView;
|
||||
@property (nonatomic ,strong) id dataModel;
|
||||
@property(nonatomic,strong) DeviceModel* currentdevice;
|
||||
@property (nonatomic, strong) ReadTimerModel *readMode;
|
||||
- (void)refreshWithData:(id)model;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+1642
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user