Commit eb0e8970 authored by Achilles's avatar Achilles

return 0 for implement function cell

parent 2e12941c
......@@ -55,12 +55,12 @@
C165078B1BB96C2800CB2FC1 /* logo@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C16507821BB96C2800CB2FC1 /* logo@2x.png */; };
C165078C1BB96C2800CB2FC1 /* pwd_icon.png in Resources */ = {isa = PBXBuildFile; fileRef = C16507831BB96C2800CB2FC1 /* pwd_icon.png */; };
C165078D1BB96C2800CB2FC1 /* pwd_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C16507841BB96C2800CB2FC1 /* pwd_icon@2x.png */; };
C16BA6231BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA6211BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.m */; settings = {ASSET_TAGS = (); }; };
C16BA6241BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.xml in Resources */ = {isa = PBXBuildFile; fileRef = C16BA6221BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.xml */; settings = {ASSET_TAGS = (); }; };
C16BA6271BD39491001ACB26 /* VankePassengerFlowModel.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA6261BD39491001ACB26 /* VankePassengerFlowModel.m */; settings = {ASSET_TAGS = (); }; };
C16BA62A1BD3952E001ACB26 /* VankePassengerFlowAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA6291BD3952E001ACB26 /* VankePassengerFlowAPI.m */; settings = {ASSET_TAGS = (); }; };
C16BA62E1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA62C1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.m */; settings = {ASSET_TAGS = (); }; };
C16BA62F1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.xml in Resources */ = {isa = PBXBuildFile; fileRef = C16BA62D1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.xml */; settings = {ASSET_TAGS = (); }; };
C16BA6231BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA6211BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.m */; };
C16BA6241BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.xml in Resources */ = {isa = PBXBuildFile; fileRef = C16BA6221BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.xml */; };
C16BA6271BD39491001ACB26 /* VankePassengerFlowModel.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA6261BD39491001ACB26 /* VankePassengerFlowModel.m */; };
C16BA62A1BD3952E001ACB26 /* VankePassengerFlowAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA6291BD3952E001ACB26 /* VankePassengerFlowAPI.m */; };
C16BA62E1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C16BA62C1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.m */; };
C16BA62F1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.xml in Resources */ = {isa = PBXBuildFile; fileRef = C16BA62D1BD3ABF1001ACB26 /* NoDataCell_iPhoneCell.xml */; };
C19ADE351BC6C71F00206213 /* floor-def.jpg in Resources */ = {isa = PBXBuildFile; fileRef = C19ADE341BC6C71F00206213 /* floor-def.jpg */; };
C19ADE381BC80DD400206213 /* VankeSaleVolumeAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = C19ADE371BC80DD400206213 /* VankeSaleVolumeAPI.m */; };
C19ADE3D1BC8147800206213 /* left_arrow.png in Resources */ = {isa = PBXBuildFile; fileRef = C19ADE391BC8147800206213 /* left_arrow.png */; };
......@@ -3118,7 +3118,7 @@
TargetAttributes = {
C1D58B151BB1BC9200D297FE = {
CreatedOnToolsVersion = 7.0;
DevelopmentTeam = W54V2VB863;
DevelopmentTeam = 28VP83UY5K;
};
};
};
......
......@@ -28,7 +28,7 @@
#define VANKE_SERVER_BASE_URL @"http://218.244.151.129:7580/wanke-server/rest"
// 后台多媒体文件基准地址
#define VANKE_SERVER_MEDIA_BASE_URL @"http://218.244.151.129:7580/"
#define VANKE_SERVER_MEDIA_BASE_URL @"http://218.244.151.129:7580"
// 后台服务企业认证码
#define VANKE_AUTHENTI_CODE @"211534962"
......
......@@ -127,9 +127,11 @@ ON_SIGNAL3( VankeServiceSaleCell_iPhone, mask, signal ) {
ON_SIGNAL3(VankeServiceBoardCell_iPhone, mask, signal) {
VankeServiceBoardCell_iPhone *cell = (VankeServiceBoardCell_iPhone *)signal.sourceCell;
if ([@"当前客流" eq:cell.lblTitle.data]) {
if ([@"当前客流" eq:[cell name]]) {
[[VankeAppBoard_iPhone sharedInstance] hideMenu];
[self showListView: CELL_TYPE_PASSENGER];
} else {
[GEToast showWithText:@"正在研发中..." bottomOffset:50.0f duration:1.0f];
}
}
......
......@@ -14,6 +14,10 @@ AS_OUTLET( BeeUILabel, lblAmount )
AS_OUTLET( BeeUILabel, lblAmountUnit )
AS_OUTLET( BeeUIButton, mask)
-(NSString*) name;
-(void) asNotAvailableCell;
-(void) loadDefaults: (NSString*) imgName title: (NSString*) title bgColor: (UIColor*) bgColor unit: (NSString*) unit defValue: (NSNumber*) defValue;
@end
......@@ -50,6 +50,10 @@ DEF_OUTLET( BeeUIButton, mask)
$(self.lblAmount).DATA([NSString stringWithFormat:@"%d",newAmount]);
}
-(NSString*) name {
return self.lblTitle.data;
}
-(void) asNotAvailableCell {
$(self.imgAmountIcon).HIDE();
$(self.lblAmountUnit).HIDE();
......@@ -57,4 +61,12 @@ DEF_OUTLET( BeeUIButton, mask)
self.lblAmount.data = @"正在研发中...";
}
-(void) loadDefaults: (NSString*) imgName title: (NSString*) title bgColor: (UIColor*) bgColor unit: (NSString*) unit defValue: (NSNumber*) defValue {
self.imgIcon.data = imgName;
self.lblTitle.data = title;
self.imgBg.backgroundColor = bgColor;
self.lblAmountUnit.data = unit;
self.lblAmount.data = defValue;
}
@end
......@@ -47,32 +47,10 @@ DEF_OUTLET( VankeServiceBoardCell_iPhone, complaint );
- (void)load
{
self.salesInfo.imgRightBg.backgroundColor = [UIColor colorWithRed:237/255.0 green:27/255.0 blue:35/255.0 alpha:1];
self.passenger.imgIcon.data = @"people.png";
self.passenger.lblTitle.data = @"当前客流";
self.passenger.imgBg.backgroundColor = [UIColor colorWithRed:0 green:195/255.0 blue:230/255.0 alpha:1];
self.passenger.lblAmountUnit.data = @"人";
self.traffic.imgIcon.data = @"car.png";
self.traffic.lblTitle.data = @"当前车流";
self.traffic.imgBg.backgroundColor = [UIColor colorWithRed:79/255.0 green:143/255.0 blue:248/255.0 alpha:1];
// self.traffic.lblAmountUnit.data = @"次";
[self.traffic asNotAvailableCell];
self.energy.imgIcon.data = @"energy.png";
self.energy.lblTitle.data = @"能耗";
self.energy.imgBg.backgroundColor = [UIColor colorWithRed:149/255.0 green:200/255.0 blue:8/255.0 alpha:1];
// self.energy.lblAmountUnit.data = @"正在研发中...";
// self.energy.lblAmount.data = @" ";
[self.energy asNotAvailableCell];
self.complaint.imgIcon.data = @"complaint.png";
self.complaint.lblTitle.data = @"投诉";
self.complaint.imgBg.backgroundColor = [UIColor colorWithRed:252/255.0 green:67/255.0 blue:62/255.0 alpha:1];
// self.complaint.lblAmountUnit.data = @"正在研发中...";
// self.complaint.lblAmount.data = @" ";
[self.complaint asNotAvailableCell];
[self.passenger loadDefaults:@"people.png" title:@"当前客流" bgColor:[UIColor colorWithRed:0 green:195/255.0 blue:230/255.0 alpha:1] unit:@"人" defValue:[NSNumber numberWithInt:0]];
[self.traffic loadDefaults:@"car.png" title:@"当前车流" bgColor:[UIColor colorWithRed:79/255.0 green:143/255.0 blue:248/255.0 alpha:1] unit:@"次" defValue:[NSNumber numberWithInt:0]];
[self.energy loadDefaults:@"energy.png" title:@"能耗" bgColor:[UIColor colorWithRed:149/255.0 green:200/255.0 blue:8/255.0 alpha:1] unit:@"单位" defValue:[NSNumber numberWithInt:0]];
[self.complaint loadDefaults:@"complaint.png" title:@"投诉" bgColor:[UIColor colorWithRed:252/255.0 green:67/255.0 blue:62/255.0 alpha:1] unit:@"次" defValue:[NSNumber numberWithInt:0]];
}
- (void)unload
......@@ -88,7 +66,9 @@ DEF_OUTLET( VankeServiceBoardCell_iPhone, complaint );
if (nil != summary) {
[self.salesInfo setData:summary.salesAmount];
[self.passenger setData:summary.passengerFlowVolume];
// [self.traffic setData:summary.trafficVolume];
[self.traffic setData:summary.trafficVolume];
[self.energy setData:[NSNumber numberWithInt:0]];
[self.complaint setData:[NSNumber numberWithInt:0]];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment