蛋分器修改
This commit is contained in:
parent
2a301d8115
commit
be624dbd3e
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "dandenqiselected.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "danfenqi.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
|
|
@ -237,6 +237,11 @@
|
||||||
controlName.xunhuanPump = @"循环泵";
|
controlName.xunhuanPump = @"循环泵";
|
||||||
controlName.jiaRe = @"加热棒";
|
controlName.jiaRe = @"加热棒";
|
||||||
controlName.macAddress = macaddress;
|
controlName.macAddress = macaddress;
|
||||||
|
controlName.defaultName=@"1";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
controlName.defaultName=@"";
|
||||||
}
|
}
|
||||||
return controlName;
|
return controlName;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
@property(nonatomic,copy) NSString *zaolangPump;
|
@property(nonatomic,copy) NSString *zaolangPump;
|
||||||
@property(nonatomic,copy) NSString *xunhuanPump;
|
@property(nonatomic,copy) NSString *xunhuanPump;
|
||||||
@property(nonatomic,copy) NSString *type;
|
@property(nonatomic,copy) NSString *type;
|
||||||
|
@property(nonatomic,copy) NSString *defaultName;//有值标识默认的
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,10 @@
|
||||||
if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]) {
|
if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]) {
|
||||||
titles = @[@"照明",@"换气",@"杀菌",@"恒温"];
|
titles = @[@"照明",@"换气",@"杀菌",@"恒温"];
|
||||||
}
|
}
|
||||||
|
else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F])
|
||||||
|
{
|
||||||
|
titles= @[@"杀菌灯",@"蛋分器",@"灯光1",@"灯光2",@"造浪泵",@"护理灯",@"循环泵",@"加热棒"];
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
titles = @[@"气泵",@"灯1",@"灯2",@"护理灯",@"水泵",@"加热棒"];
|
titles = @[@"气泵",@"灯1",@"灯2",@"护理灯",@"水泵",@"加热棒"];
|
||||||
}
|
}
|
||||||
|
|
@ -108,6 +112,10 @@
|
||||||
if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]) {
|
if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]) {
|
||||||
name = [UserExtendataArchaver currentPetsXuToControlName:self.device.macAddress];
|
name = [UserExtendataArchaver currentPetsXuToControlName:self.device.macAddress];
|
||||||
}
|
}
|
||||||
|
if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]&&name.defaultName.length)
|
||||||
|
{
|
||||||
|
name.zengyangPump=@"蛋分器";
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
name = [UserExtendataArchaver currentXuToControlName:self.device.macAddress];
|
name = [UserExtendataArchaver currentXuToControlName:self.device.macAddress];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,9 @@
|
||||||
{
|
{
|
||||||
if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F]) {
|
if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F]) {
|
||||||
self.imageView.image=[UIImage imageNamed:@"seaxuanduo"];
|
self.imageView.image=[UIImage imageNamed:@"seaxuanduo"];
|
||||||
|
[self.gasPumpLight setBackgroundImage:[UIImage imageNamed:@"danfenqi"] forState:UIControlStateNormal];
|
||||||
|
[self.gasPumpLight setBackgroundImage:[UIImage imageNamed:@"dandenqiselected"] forState:UIControlStateSelected];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.controlBtn.hidden=NO;
|
self.controlBtn.hidden=NO;
|
||||||
|
|
@ -1042,6 +1045,10 @@
|
||||||
{
|
{
|
||||||
name=[UserExtendataArchaver currentPetsXuToControlName:self.currentDevice.macAddress];
|
name=[UserExtendataArchaver currentPetsXuToControlName:self.currentDevice.macAddress];
|
||||||
}
|
}
|
||||||
|
if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F]&&name.defaultName.length)
|
||||||
|
{
|
||||||
|
name.zengyangPump=@"蛋分器";
|
||||||
|
}
|
||||||
self.shajunLight.text = name.shajunLight;
|
self.shajunLight.text = name.shajunLight;
|
||||||
self.zengyangLabel.text = name.zengyangPump;
|
self.zengyangLabel.text = name.zengyangPump;
|
||||||
self.light1Label.text = name.light1;
|
self.light1Label.text = name.light1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue