Commit ab253a85 authored by AvatarC's avatar AvatarC

Merge branch 'master' of http://121.42.32.57/root/vanke

parents 9b9b6e6b be242afd
...@@ -4193,6 +4193,7 @@ ...@@ -4193,6 +4193,7 @@
C1D58B131BB1BC9200D297FE /* Frameworks */, C1D58B131BB1BC9200D297FE /* Frameworks */,
C1D58B141BB1BC9200D297FE /* Resources */, C1D58B141BB1BC9200D297FE /* Resources */,
5CBECAF0D12B43E974C62C13 /* Copy Pods Resources */, 5CBECAF0D12B43E974C62C13 /* Copy Pods Resources */,
C10990C61C62665B005B4319 /* Run Script */,
); );
buildRules = ( buildRules = (
); );
...@@ -4478,6 +4479,20 @@ ...@@ -4478,6 +4479,20 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0; showEnvVarsInLog = 0;
}; };
C10990C61C62665B005B4319 /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "xcrun agvtool next-version -all";
};
/* End PBXShellScriptBuildPhase section */ /* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
...@@ -5017,6 +5032,7 @@ ...@@ -5017,6 +5032,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 23;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO; ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_STRICT_OBJC_MSGSEND = YES;
...@@ -5034,6 +5050,7 @@ ...@@ -5034,6 +5050,7 @@
SDKROOT = iphoneos; SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES; VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
}; };
name = Release; name = Release;
}; };
...@@ -5056,6 +5073,7 @@ ...@@ -5056,6 +5073,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 23;
DEBUG_INFORMATION_FORMAT = dwarf; DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES; ENABLE_TESTABILITY = YES;
...@@ -5078,6 +5096,7 @@ ...@@ -5078,6 +5096,7 @@
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
}; };
name = Debug; name = Debug;
}; };
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9059" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9531" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9049"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/> <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies> </dependencies>
<objects> <objects>
...@@ -14,11 +14,9 @@ ...@@ -14,11 +14,9 @@
<subviews> <subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="login_bg.png" translatesAutoresizingMaskIntoConstraints="NO" id="T3n-rV-MUb"> <imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="login_bg.png" translatesAutoresizingMaskIntoConstraints="NO" id="T3n-rV-MUb">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/> <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<animations/>
</imageView> </imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Copyright (c) 2015年 万科. " textAlignment="center" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D9f-bJ-RUy"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Copyright (c) 2015年 万科. " textAlignment="center" lineBreakMode="tailTruncation" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D9f-bJ-RUy">
<rect key="frame" x="36" y="438" width="389" height="28"/> <rect key="frame" x="36" y="438" width="389" height="28"/>
<animations/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="500" id="5gY-rb-pwj" userLabel="width = 450"/> <constraint firstAttribute="width" constant="500" id="5gY-rb-pwj" userLabel="width = 450"/>
</constraints> </constraints>
...@@ -26,7 +24,6 @@ ...@@ -26,7 +24,6 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
</subviews> </subviews>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints> <constraints>
<constraint firstItem="D9f-bJ-RUy" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leadingMargin" constant="30" id="Tfn-9w-HrA"/> <constraint firstItem="D9f-bJ-RUy" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leadingMargin" constant="30" id="Tfn-9w-HrA"/>
......
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.9</string> <string>1.0.10</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0.8</string> <string>23</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
_salesDate = [self yesterday:df]; _salesDate = [self yesterday:df];
} }
if ([VankeUtil isBlankString:self.passengerDate]) { if ([VankeUtil isBlankString:self.passengerDate]) {
_passengerDate = [self today:df]; _passengerDate = [self yesterday:df];
} }
if ([VankeUtil isBlankString:self.trafficDate]) { if ([VankeUtil isBlankString:self.trafficDate]) {
_trafficDate = [self today:df]; _trafficDate = [self today:df];
......
...@@ -58,12 +58,12 @@ AS_SINGLETON( VankeUtil ) ...@@ -58,12 +58,12 @@ AS_SINGLETON( VankeUtil )
@property (nonatomic, assign) NSInteger major; // 主版本 @property (nonatomic, assign) NSInteger major; // 主版本
@property (nonatomic, assign) NSInteger minor; // 小版本 @property (nonatomic, assign) NSInteger minor; // 小版本
@property (nonatomic, assign) NSInteger build; // 编译版本号 @property (nonatomic, assign) NSInteger revision; // 修正版本号
/** /**
* 构造函数 * 构造函数
* *
* @param version 版本号字符串,格式:major.minor.build,如: 1.0.1 * @param version 版本号字符串,格式:major.minor.revision,如: 1.0.1
*/ */
+(instancetype) initWithVersion: (NSString*) version; +(instancetype) initWithVersion: (NSString*) version;
......
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
@synthesize major = _major; @synthesize major = _major;
@synthesize minor = _minor; @synthesize minor = _minor;
@synthesize build = _build; @synthesize revision = _revision;
+(instancetype) initWithVersion: (NSString*) version { +(instancetype) initWithVersion: (NSString*) version {
VersionNumber *instance = [VersionNumber alloc]; VersionNumber *instance = [VersionNumber alloc];
instance.major = 0; instance.major = 0;
instance.minor = 0; instance.minor = 0;
instance.build = 0; instance.revision = 0;
NSArray *ary = [version componentsSeparatedByString:@"."]; NSArray *ary = [version componentsSeparatedByString:@"."];
if (nil != ary) { if (nil != ary) {
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
} }
if (len > 2) { if (len > 2) {
instance.build = [[ary objectAtIndex:2] intValue]; instance.revision = [[ary objectAtIndex:2] intValue];
} }
} }
return instance; return instance;
...@@ -57,11 +57,11 @@ ...@@ -57,11 +57,11 @@
return diff; return diff;
} }
return _build - version.build; return _revision - version.revision;
} }
-(NSString*) toString { -(NSString*) toString {
return [NSString stringWithFormat:@"%ld.%ld.%ld", _major, _minor, _build]; return [NSString stringWithFormat:@"%ld.%ld.%ld", _major, _minor, _revision];
} }
@end @end
...@@ -234,7 +234,7 @@ DEF_SINGLETON(VankeUtil) ...@@ -234,7 +234,7 @@ DEF_SINGLETON(VankeUtil)
+ (VersionNumber*) getCurrentVersion { + (VersionNumber*) getCurrentVersion {
NSString *path = [[NSBundle mainBundle]pathForResource:@"Info" ofType:@"plist"]; NSString *path = [[NSBundle mainBundle]pathForResource:@"Info" ofType:@"plist"];
NSDictionary* content =[NSDictionary dictionaryWithContentsOfFile:path]; NSDictionary* content =[NSDictionary dictionaryWithContentsOfFile:path];
NSString *version = [content valueForKey:@"CFBundleVersion"]; NSString *version = [content valueForKey:@"CFBundleShortVersionString"];
return [VersionNumber initWithVersion:version]; return [VersionNumber initWithVersion:version];
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</linear> </linear>
<linear orientation="h" class="row flow-wrapper"> <linear orientation="h" class="row flow-wrapper">
<label class="lbl">客流:</label> <label class="lbl">昨日客流:</label>
<label id="lblPassengerFlow" class="value"></label> <label id="lblPassengerFlow" class="value"></label>
<label class="unit"></label> <label class="unit"></label>
</linear> </linear>
......
...@@ -146,7 +146,7 @@ ON_SIGNAL3( VankeServiceSaleCell_iPhone, mask, signal ) { ...@@ -146,7 +146,7 @@ ON_SIGNAL3( VankeServiceSaleCell_iPhone, mask, signal ) {
ON_SIGNAL3(VankeServiceBoardCell_iPhone, mask, signal) { ON_SIGNAL3(VankeServiceBoardCell_iPhone, mask, signal) {
VankeServiceBoardCell_iPhone *cell = (VankeServiceBoardCell_iPhone *)signal.sourceCell; VankeServiceBoardCell_iPhone *cell = (VankeServiceBoardCell_iPhone *)signal.sourceCell;
if ([@"当前客流" eq:[cell name]]) { if ([@"昨日客流" eq:[cell name]]) {
[[VankeAppBoard_iPhone sharedInstance] hideMenu]; [[VankeAppBoard_iPhone sharedInstance] hideMenu];
[self showListView: CELL_TYPE_PASSENGER]; [self showListView: CELL_TYPE_PASSENGER];
} else { } else {
...@@ -256,11 +256,11 @@ ON_SIGNAL3(VankeProjectSummaryModel, RELOADED, signal) { ...@@ -256,11 +256,11 @@ ON_SIGNAL3(VankeProjectSummaryModel, RELOADED, signal) {
[self.stack pushBoard:board animated:YES]; [self.stack pushBoard:board animated:YES];
} }
-(NSString*) today { //-(NSString*) today {
NSDateFormatter *df = [[NSDateFormatter alloc] init]; // NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy-MM-dd"]; // [df setDateFormat:@"yyyy-MM-dd"];
return [df stringFromDate:[NSDate date]]; // return [df stringFromDate:[NSDate date]];
} //}
#pragma VankeMainBoard_iPhone #pragma VankeMainBoard_iPhone
......
...@@ -59,7 +59,7 @@ DEF_OUTLET( VankeServiceBoardCell_iPhone, complaint ); ...@@ -59,7 +59,7 @@ DEF_OUTLET( VankeServiceBoardCell_iPhone, complaint );
- (void)load - (void)load
{ {
self.salesInfo.imgRightBg.backgroundColor = [UIColor colorWithRed:237/255.0 green:27/255.0 blue:35/255.0 alpha:1]; self.salesInfo.imgRightBg.backgroundColor = [UIColor colorWithRed:237/255.0 green:27/255.0 blue:35/255.0 alpha:1];
[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.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.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.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:@"WIFI登录数" bgColor:[UIColor colorWithRed:252/255.0 green:67/255.0 blue:62/255.0 alpha:1] unit:@"次" defValue:[NSNumber numberWithInt:0]]; [self.complaint loadDefaults:@"complaint.png" title:@"WIFI登录数" bgColor:[UIColor colorWithRed:252/255.0 green:67/255.0 blue:62/255.0 alpha:1] unit:@"次" defValue:[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