0功率不显示
This commit is contained in:
+4
-2
@@ -184,7 +184,7 @@
|
||||
}
|
||||
|
||||
self.controlBtn.hidden=NO;
|
||||
self.cameraBtn.hidden=NO;
|
||||
self.cameraBtn.hidden=YES;
|
||||
[self.controlBtn setTitle:@"一键喂鱼" forState:UIControlStateNormal];
|
||||
[self.controlBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor lightGrayColor]] forState:UIControlStateNormal];
|
||||
[self.controlBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor cyanColor]] forState:UIControlStateSelected];
|
||||
@@ -454,7 +454,9 @@
|
||||
}
|
||||
else if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F])
|
||||
{
|
||||
[self.cameraBtn setTitle:[NSString stringWithFormat:@"%ldw",[dataContorl hexToTen:self.dataModel.powerRating]] forState:UIControlStateNormal];
|
||||
NSInteger rate = [dataContorl hexToTen:self.dataModel.powerRating];
|
||||
[self.cameraBtn setTitle:[NSString stringWithFormat:@"%ldw",rate] forState:UIControlStateNormal];
|
||||
self.cameraBtn.hidden=rate>0?NO:YES;
|
||||
if ([self.dataModel.fishFeedStatus isEqualToString:@"01"])
|
||||
{
|
||||
self.controlBtn.selected=YES;
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user