Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
万
万科
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
万科
Commits
e0684865
Commit
e0684865
authored
Oct 18, 2015
by
Achilles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
e9166527
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
257 additions
and
346 deletions
+257
-346
Info.plist
vanke/Info.plist
+2
-0
VankeConfig.h
vanke/VankeConfig.h
+1
-1
VankeProjectListAPI.h
vanke/controller/VankeProjectListAPI.h
+6
-3
VankeProjectListAPI.m
vanke/controller/VankeProjectListAPI.m
+4
-4
VankeFloorDetailBoardPhoto_iPhone.m
...emplates/floor-detail/VankeFloorDetailBoardPhoto_iPhone.m
+7
-86
VankeFloorDetailBoard_iPhone.h
...one/templates/floor-detail/VankeFloorDetailBoard_iPhone.h
+0
-2
VankeFloorDetailBoard_iPhone.m
...one/templates/floor-detail/VankeFloorDetailBoard_iPhone.m
+48
-126
VankeFloorListBoardCell_iPhone.h
...one/templates/floor-list/VankeFloorListBoardCell_iPhone.h
+14
-6
VankeFloorListBoardCell_iPhone.m
...one/templates/floor-list/VankeFloorListBoardCell_iPhone.m
+20
-15
VankeFloorListBoardCell_iPhone.xml
...e/templates/floor-list/VankeFloorListBoardCell_iPhone.xml
+28
-25
VankeFloorListBoard_iPhone.h
..._iPhone/templates/floor-list/VankeFloorListBoard_iPhone.h
+4
-0
VankeFloorListBoard_iPhone.m
..._iPhone/templates/floor-list/VankeFloorListBoard_iPhone.m
+85
-61
VankeMainBoard_iPhone.m
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
+12
-4
VankeServiceBoardCell_iPhone.h
...view_iPhone/templates/main/VankeServiceBoardCell_iPhone.h
+7
-6
VankeServiceBoardCell_iPhone.m
...view_iPhone/templates/main/VankeServiceBoardCell_iPhone.m
+9
-7
VankeServiceBoardCell_iPhone.xml
...ew_iPhone/templates/main/VankeServiceBoardCell_iPhone.xml
+9
-0
VankeServiceDashBoard_iPhone.m
...view_iPhone/templates/main/VankeServiceDashBoard_iPhone.m
+1
-0
No files found.
vanke/Info.plist
View file @
e0684865
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
<
string
>
6.0
<
/string
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
$
(
PRODUCT_NAME
)<
/string
>
<
string
>
$
(
PRODUCT_NAME
)<
/string
>
<
k
e
y
>
CFBundleDisplayName
<
/k
e
y
>
<
string
>
万科
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
...
...
vanke/VankeConfig.h
View file @
e0684865
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define VANKE_SERVER_BASE_URL @"http://218.244.151.129:7580/wanke-server/rest"
#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/
wanke-server/static/porjects
"
#define VANKE_SERVER_MEDIA_BASE_URL @"http://218.244.151.129:7580/"
// 后台服务企业认证码
// 后台服务企业认证码
#define VANKE_AUTHENTI_CODE @"211534962"
#define VANKE_AUTHENTI_CODE @"211534962"
...
...
vanke/controller/VankeProjectListAPI.h
View file @
e0684865
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
@end
@end
// 项目汇总信息
// 项目汇总信息
@interface
ProjectCategory
:
BeeActiveObject
@interface
ProjectCategory
:
BeeActiveObject
// 项目名称
// 项目名称
@property
(
nonatomic
,
strong
)
NSString
*
projectClassification
;
@property
(
nonatomic
,
strong
)
NSString
*
projectClassification
;
...
@@ -54,13 +54,16 @@
...
@@ -54,13 +54,16 @@
// 客单价
// 客单价
@property
(
nonatomic
,
strong
)
NSNumber
*
perCustomerTransaction
;
@property
(
nonatomic
,
strong
)
NSNumber
*
perCustomerTransaction
;
// 图片URL
// 图片URL
@property
(
nonatomic
,
strong
)
NSString
*
pictureUrl
;
@property
(
nonatomic
,
strong
)
NSString
*
picture
;
// 销售日期
@property
(
nonatomic
,
strong
)
NSString
*
salesDate
;
-
(
NSString
*
)
getPictureUrlOrDefault
;
-
(
NSString
*
)
getPictureUrlOrDefault
;
@end
@end
@interface
ProjectListResponse
:
VankeResponse
@interface
ProjectListResponse
:
VankeResponse
@property
(
nonatomic
,
strong
)
NSArray
*
data
;
@property
(
nonatomic
,
strong
)
NSArray
*
data
;
...
...
vanke/controller/VankeProjectListAPI.m
View file @
e0684865
...
@@ -80,14 +80,14 @@
...
@@ -80,14 +80,14 @@
@synthesize
salesAmount
;
@synthesize
salesAmount
;
@synthesize
passengerFlowVolume
;
@synthesize
passengerFlowVolume
;
@synthesize
perCustomerTransaction
;
@synthesize
perCustomerTransaction
;
@synthesize
pictureUrl
;
@synthesize
picture
;
@synthesize
salesDate
;
-
(
NSString
*
)
getPictureUrlOrDefault
{
-
(
NSString
*
)
getPictureUrlOrDefault
{
if
([
VankeUtil
isBlankString
:
self
.
picture
Url
])
{
if
([
VankeUtil
isBlankString
:
self
.
picture
])
{
return
@"floor-def.jpg"
;
return
@"floor-def.jpg"
;
}
else
{
}
else
{
return
self
.
pictureUrl
;
return
[
NSString
stringWithFormat
:
@"%@/%@"
,
VANKE_SERVER_MEDIA_BASE_URL
,
self
.
picture
];
// return [NSString stringWithFormat:@"%@/%@", VANKE_SERVER_MEDIA_BASE_URL, self.picture];
}
}
}
}
...
...
vanke/view_iPhone/templates/floor-detail/VankeFloorDetailBoardPhoto_iPhone.m
View file @
e0684865
...
@@ -16,97 +16,18 @@ DEF_OUTLET(BeeUILabel, lblOpenDate)
...
@@ -16,97 +16,18 @@ DEF_OUTLET(BeeUILabel, lblOpenDate)
-
(
void
)
dataDidChanged
-
(
void
)
dataDidChanged
{
{
ProjectCategory
*
prj
=
self
.
data
;
ProjectCategory
*
prj
=
self
.
data
;
if
(
prj
)
if
(
prj
)
{
{
$
(
self
.
imgPhoto
).
DATA
([
prj
getPictureUrlOrDefault
]);
$
(
self
.
imgPhoto
).
DATA
([
prj
getPictureUrlOrDefault
]);
$
(
self
.
lblName
).
DATA
(
prj
.
projectName
);
$
(
self
.
lblName
).
DATA
(
prj
.
projectName
);
$
(
self
.
lblOpenDate
).
DATA
(
prj
.
foundingDate
);
$
(
self
.
lblOpenDate
).
DATA
(
prj
.
salesDate
);
}
}
}
}
ON_CREATE_VIEWS
(
signal
)
ON_CREATE_VIEWS
(
signal
)
{
{
// NSArray *items = @[[PNPieChartDataItem dataItemWithValue:10 color:PNRed],
// [PNPieChartDataItem dataItemWithValue:20 color:PNBlue description:@"WWDC"],
// [PNPieChartDataItem dataItemWithValue:40 color:PNGreen description:@"GOOL I/O"],
// ];
// PNPieChart *pieChart = [[PNPieChart alloc] initWithFrame:CGRectMake(40.0, 155.0, 240.0, 240.0) items:items];
// pieChart.descriptionTextColor = [UIColor whiteColor];
// pieChart.descriptionTextFont = [UIFont fontWithName:@"Avenir-Medium" size:14.0];
// [pieChart strokeChart];
}
}
//- (void)userClickedOnBarAtIndex:(NSInteger)barIndex
//{
//
// NSLog(@"Click on bar %@", @(barIndex));
//
// PNBar * bar = [self.barChart.bars objectAtIndex:barIndex];
//
// CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
//
// animation.fromValue = @1.0;
// animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
// animation.toValue = @1.1;
// animation.duration = 0.2;
// animation.repeatCount = 0;
// animation.autoreverses = YES;
// animation.removedOnCompletion = YES;
// animation.fillMode = kCAFillModeForwards;
//
// [bar.layer addAnimation:animation forKey:@"Float"];
//}
//- (IBAction)rightSwitchChanged:(id)sender {
// if ([self.title isEqualToString:@"Pie Chart"]){
// UISwitch *showLabels = (UISwitch*) sender;
// if (showLabels.on) {
// self.pieChart.showOnlyValues = NO;
// }else{
// self.pieChart.showOnlyValues = YES;
// }
// [self.pieChart strokeChart];
// }
// if ([self.title isEqualToString:@"Radar Chart"]){
// UISwitch *showLabels = (UISwitch*) sender;
// if (showLabels.on) {
// self.radarChart.isShowGraduation = NO;
// }else{
// self.radarChart.isShowGraduation = YES;
// }
// [self.radarChart strokeChart];
// }
//}
//
//- (IBAction)centerSwitchChanged:(id)sender
//{
// if (self.pieChart)
// {
// [self.pieChart setEnableMultipleSelection:self.centerSwitch.on];
// [self.pieChart strokeChart];
// }
//}
//
//- (IBAction)leftSwitchChanged:(id)sender {
// if ([self.title isEqualToString:@"Pie Chart"]){
// UISwitch *showRelative = (UISwitch*) sender;
// if (showRelative.on) {
// self.pieChart.showAbsoluteValues = NO;
// }else{
// self.pieChart.showAbsoluteValues = YES;
// }
// [self.pieChart strokeChart];
// }
// if ([self.title isEqualToString:@"Radar Chart"]){
// UISwitch *showRelative = (UISwitch*) sender;
// if (showRelative.on) {
// self.radarChart.labelStyle = PNRadarChartLabelStyleHorizontal;
// }else{
// self.radarChart.labelStyle = PNRadarChartLabelStyleCircle;
// }
// [self.radarChart strokeChart];
// }
//}
@end
@end
vanke/view_iPhone/templates/floor-detail/VankeFloorDetailBoard_iPhone.h
View file @
e0684865
...
@@ -12,8 +12,6 @@
...
@@ -12,8 +12,6 @@
@property
(
strong
,
nonatomic
)
ProjectCategory
*
data
;
@property
(
strong
,
nonatomic
)
ProjectCategory
*
data
;
@property
(
strong
,
nonatomic
)
NSString
*
salesDate
;
@property
(
strong
,
nonatomic
)
NSString
*
salesDate
;
//AS_MODEL( ShotInfoModel, info );
//AS_MODEL( ShotCommentsModel, comments );
AS_MODEL
(
VankeSaleVolumeModel
,
saleVolumeModel
);
AS_MODEL
(
VankeSaleVolumeModel
,
saleVolumeModel
);
AS_OUTLET
(
BeeUIScrollView
,
list
);
AS_OUTLET
(
BeeUIScrollView
,
list
);
...
...
vanke/view_iPhone/templates/floor-detail/VankeFloorDetailBoard_iPhone.m
View file @
e0684865
#import "VankeFloorDetailBoard_iPhone.h"
#import "VankeFloorDetailBoard_iPhone.h"
//#import "DribbbleDetailBoardPlayer_iPhone.h"
#import "VankeFloorDetailBoardPhoto_iPhone.h"
#import "VankeFloorDetailBoardPhoto_iPhone.h"
//#import "DribbbleDetailBoardComment_iPhone.h"
//#import "DribbblePreviewBoard_iPhone.h"
//#import "DribbbleProfileBoard_iPhone.h"
//#import "DribbbleWebBoard_iPhone.h"
#import "PullLoader.h"
#import "PullLoader.h"
#import "FootLoader.h"
#import "FootLoader.h"
#import "VankeBusinessChartCell_iPhone.h"
#import "VankeBusinessChartCell_iPhone.h"
#pragma mark - VankeFloorDetailBoard_iPhone
#pragma mark - VankeFloorDetailBoard_iPhone
@interface
VankeFloorDetailBoard_iPhone
()
@interface
VankeFloorDetailBoard_iPhone
()
AS_SIGNAL
(
VIEW_PROFILE
)
AS_SIGNAL
(
VIEW_PROFILE
)
AS_SIGNAL
(
VIEW_URL
)
AS_SIGNAL
(
VIEW_URL
)
@end
@end
...
@@ -31,26 +26,17 @@ SUPPORT_RESOURCE_LOADING( YES );
...
@@ -31,26 +26,17 @@ SUPPORT_RESOURCE_LOADING( YES );
DEF_SIGNAL
(
VIEW_PROFILE
)
DEF_SIGNAL
(
VIEW_PROFILE
)
DEF_SIGNAL
(
VIEW_URL
)
DEF_SIGNAL
(
VIEW_URL
)
//DEF_MODEL( ShotInfoModel, info );
DEF_MODEL
(
VankeSaleVolumeModel
,
saleVolumeModel
);
//DEF_MODEL( ShotCommentsModel, comments );
DEF_MODEL
(
VankeSaleVolumeModel
,
saleVolumeModel
);
DEF_OUTLET
(
BeeUIScrollView
,
list
);
DEF_OUTLET
(
BeeUIScrollView
,
list
);
-
(
void
)
load
-
(
void
)
load
{
{
// self.info = [ShotInfoModel modelWithObserver:self];
// self.comments = [ShotCommentsModel modelWithObserver:self];
self
.
saleVolumeModel
=
[
VankeSaleVolumeModel
modelWithObserver
:
self
];
self
.
saleVolumeModel
=
[
VankeSaleVolumeModel
modelWithObserver
:
self
];
}
}
-
(
void
)
unload
-
(
void
)
unload
{
{
// [self.comments removeAllObservers];
// self.comments = nil;
//
// [self.info removeAllObservers];
// self.info = nil;
[
self
.
saleVolumeModel
removeAllObservers
];
[
self
.
saleVolumeModel
removeAllObservers
];
self
.
saleVolumeModel
=
nil
;
self
.
saleVolumeModel
=
nil
;
}
}
...
@@ -59,29 +45,28 @@ DEF_OUTLET( BeeUIScrollView, list );
...
@@ -59,29 +45,28 @@ DEF_OUTLET( BeeUIScrollView, list );
ON_CREATE_VIEWS
(
signal
)
ON_CREATE_VIEWS
(
signal
)
{
{
// self.view.backgroundColor = SHORT_RGB( 0x444 );
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
// self.allowedSwipeToBack = YES;
// self.allowedSwipeToBack = YES;
self
.
navigationBarShown
=
YES
;
self
.
navigationBarShown
=
YES
;
self
.
navigationBarTitle
=
self
.
data
.
projectName
;
self
.
navigationBarTitle
=
self
.
data
.
projectName
;
self
.
navigationBarLeft
=
[
UIImage
imageNamed
:
@"left_arrow"
];
self
.
navigationBarLeft
=
[
UIImage
imageNamed
:
@"left_arrow"
];
self
.
list
.
headerClass
=
[
PullLoader
class
];
self
.
list
.
headerClass
=
[
PullLoader
class
];
self
.
list
.
headerShown
=
YES
;
self
.
list
.
headerShown
=
YES
;
self
.
list
.
footerClass
=
[
FootLoader
class
];
self
.
list
.
footerClass
=
[
FootLoader
class
];
self
.
list
.
footerShown
=
YES
;
self
.
list
.
footerShown
=
YES
;
self
.
list
.
lineCount
=
1
;
self
.
list
.
lineCount
=
1
;
self
.
list
.
vertical
=
YES
;
self
.
list
.
vertical
=
YES
;
self
.
list
.
animationDuration
=
0
.
25
f
;
self
.
list
.
animationDuration
=
0
.
25
f
;
self
.
list
.
baseInsets
=
bee
.
ui
.
config
.
baseInsets
;
self
.
list
.
baseInsets
=
bee
.
ui
.
config
.
baseInsets
;
self
.
list
.
whenReloading
=
^
self
.
list
.
whenReloading
=
^
{
{
int
chartTotal
=
0
;
NSInteger
chartTotal
=
0
;
ProjectSaleVolumeResponse
*
resp
=
[
_saleVolumeModel
getServerResp
];
ProjectSaleVolumeResponse
*
resp
=
[
_saleVolumeModel
getServerResp
];
NSArray
*
dimensions
=
nil
;
NSArray
*
dimensions
=
nil
;
if
(
nil
!=
resp
)
{
if
(
nil
!=
resp
)
{
...
@@ -90,11 +75,12 @@ ON_CREATE_VIEWS( signal )
...
@@ -90,11 +75,12 @@ ON_CREATE_VIEWS( signal )
}
}
self
.
list
.
total
=
1
+
chartTotal
;
self
.
list
.
total
=
1
+
chartTotal
;
BeeUIScrollItem
*
photo
=
self
.
list
.
items
[
0
];
BeeUIScrollItem
*
photo
=
self
.
list
.
items
[
0
];
photo
.
clazz
=
[
VankeFloorDetailBoardPhoto_iPhone
class
];
photo
.
clazz
=
[
VankeFloorDetailBoardPhoto_iPhone
class
];
photo
.
data
=
self
.
data
;
self
.
data
.
salesDate
=
self
.
salesDate
;
photo
.
order
=
0
;
photo
.
data
=
self
.
data
;
photo
.
order
=
0
;
photo
.
size
=
CGSizeMake
(
0
,
230
);
photo
.
size
=
CGSizeMake
(
0
,
230
);
for
(
int
i
=
0
;
i
<
chartTotal
;
++
i
)
{
for
(
int
i
=
0
;
i
<
chartTotal
;
++
i
)
{
...
@@ -112,22 +98,22 @@ ON_CREATE_VIEWS( signal )
...
@@ -112,22 +98,22 @@ ON_CREATE_VIEWS( signal )
bizChart
.
order
=
0
;
bizChart
.
order
=
0
;
bizChart
.
size
=
CGSizeMake
(
0
,
250
);
bizChart
.
size
=
CGSizeMake
(
0
,
250
);
}
}
};
};
self
.
list
.
whenHeaderRefresh
=
^
self
.
list
.
whenHeaderRefresh
=
^
{
{
[
self
reloadSalesolumeModel
];
[
self
reloadSalesolumeModel
];
};
};
self
.
list
.
whenFooterRefresh
=
^
self
.
list
.
whenFooterRefresh
=
^
{
{
[
self
reloadSalesolumeModel
];
[
self
reloadSalesolumeModel
];
};
};
self
.
list
.
whenReachBottom
=
^
self
.
list
.
whenReachBottom
=
^
{
{
[
self
reloadSalesolumeModel
];
[
self
reloadSalesolumeModel
];
};
};
}
}
ON_DELETE_VIEWS
(
signal
)
ON_DELETE_VIEWS
(
signal
)
...
@@ -140,16 +126,6 @@ ON_LAYOUT_VIEWS( signal )
...
@@ -140,16 +126,6 @@ ON_LAYOUT_VIEWS( signal )
ON_WILL_APPEAR
(
signal
)
ON_WILL_APPEAR
(
signal
)
{
{
// if ( NO == self.info.loaded )
// {
// [self.info reload];
// }
//
// if ( NO == self.comments.loaded )
// {
// [self.comments firstPage];
// }
[
self
.
saleVolumeModel
reload
];
[
self
.
saleVolumeModel
reload
];
[
self
.
list
reloadData
];
[
self
.
list
reloadData
];
}
}
...
@@ -176,82 +152,28 @@ ON_RIGHT_BUTTON_TOUCHED( signal )
...
@@ -176,82 +152,28 @@ ON_RIGHT_BUTTON_TOUCHED( signal )
ON_SIGNAL3
(
DribbbleDetailBoardPlayer_iPhone
,
mask
,
signal
)
ON_SIGNAL3
(
DribbbleDetailBoardPlayer_iPhone
,
mask
,
signal
)
{
{
// DribbbleProfileBoard_iPhone * board = [DribbbleProfileBoard_iPhone board];
// board.player = self.info.shot.player;
// [self.stack pushBoard:board animated:YES];
}
}
#pragma mark -
#pragma mark -
ON_SIGNAL3
(
VankeFloorDetailBoardPhoto_iPhone
,
mask
,
signal
)
ON_SIGNAL3
(
VankeFloorDetailBoardPhoto_iPhone
,
mask
,
signal
)
{
{
// DribbblePreviewBoard_iPhone * board = [DribbblePreviewBoard_iPhone board];
// board.shot = self.info.shot;
// [self.stack pushBoard:board animated:YES];
}
#pragma mark -
ON_SIGNAL3
(
DribbbleDetailBoardComment_iPhone
,
mask
,
signal
)
{
// COMMENT * comment = signal.sourceCell.data;
// NSArray * urls = [comment.body allURLs];
//
// if ( urls.count )
// {
// BeeUIActionSheet * actionSheet = [[[BeeUIActionSheet alloc] init] autorelease];
//
// [actionSheet addButtonTitle:[NSString stringWithFormat:@"%@", comment.player.name]
// signal:self.VIEW_PROFILE
// object:comment.player];
//
// for ( NSString * url in urls )
// {
// [actionSheet addButtonTitle:url signal:self.VIEW_URL object:url];
// }
//
// [actionSheet addCancelTitle:@"Cancel"];
//
// [actionSheet showInViewController:self];
// }
// else
// {
// DribbbleProfileBoard_iPhone * board = [DribbbleProfileBoard_iPhone board];
// board.player = comment.player;
// [self.stack pushBoard:board animated:YES];
// }
}
#pragma mark -
ON_SIGNAL3
(
VankeFloorDetailBoard_iPhone
,
VIEW_PROFILE
,
signal
)
{
// DribbbleProfileBoard_iPhone * board = [DribbbleProfileBoard_iPhone board];
// board.player = signal.object;
// [self.stack pushBoard:board animated:YES];
}
ON_SIGNAL3
(
VankeFloorDetailBoard_iPhone
,
VIEW_URL
,
signal
)
{
// DribbbleWebBoard_iPhone * board = [DribbbleWebBoard_iPhone board];
// board.url = signal.object;
// [self.stack pushBoard:board animated:YES];
}
}
#pragma mark -
#pragma mark -
ON_SIGNAL3
(
VankeSaleVolumeModel
,
RELOADING
,
signal
)
ON_SIGNAL3
(
VankeSaleVolumeModel
,
RELOADING
,
signal
)
{
{
self
.
list
.
headerLoading
=
self
.
saleVolumeModel
.
loaded
;
self
.
list
.
headerLoading
=
self
.
saleVolumeModel
.
loaded
;
self
.
list
.
footerLoading
=
YES
;
self
.
list
.
footerLoading
=
YES
;
}
}
ON_SIGNAL3
(
VankeSaleVolumeModel
,
RELOADED
,
signal
)
ON_SIGNAL3
(
VankeSaleVolumeModel
,
RELOADED
,
signal
)
{
{
self
.
list
.
headerLoading
=
NO
;
self
.
list
.
headerLoading
=
NO
;
self
.
list
.
footerLoading
=
NO
;
self
.
list
.
footerLoading
=
NO
;
self
.
list
.
footerMore
=
NO
;
self
.
list
.
footerMore
=
NO
;
[
self
.
list
reloadData
];
[
self
.
list
reloadData
];
}
}
-
(
void
)
reloadSalesolumeModel
{
-
(
void
)
reloadSalesolumeModel
{
...
...
vanke/view_iPhone/templates/floor-list/VankeFloorListBoardCell_iPhone.h
View file @
e0684865
...
@@ -5,14 +5,21 @@
...
@@ -5,14 +5,21 @@
#pragma mark -
#pragma mark -
typedef
enum
{
CELL_TYPE_FLOOR
=
0
,
CELL_TYPE_PASSENGER
}
CellType
;
#pragma mark -
@interface
VankeFloorListBoardCell_iPhone
:
BeeUICell
@interface
VankeFloorListBoardCell_iPhone
:
BeeUICell
AS_OUTLET
(
BeeUIImageView
,
imgPhoto
)
AS_OUTLET
(
BeeUIImageView
,
imgPhoto
)
AS_OUTLET
(
BeeUILabel
,
lblName
)
AS_OUTLET
(
BeeUILabel
,
lblName
)
AS_OUTLET
(
BeeUILabel
,
lblOpenDate
)
AS_OUTLET
(
BeeUILabel
,
lblOpenDate
)
AS_OUTLET
(
BeeUILabel
,
lblSaleAmount
)
AS_OUTLET
(
BeeUILabel
,
lblSaleAmount
)
AS_OUTLET
(
BeeUILabel
,
lblPassenger
)
AS_OUTLET
(
BeeUILabel
,
lblPassengerFlow
)
AS_OUTLET
(
BeeUILabel
,
lblPrice
)
AS_OUTLET
(
BeeUILabel
,
lblPrice
)
@end
@end
...
@@ -22,6 +29,7 @@ AS_OUTLET( BeeUILabel, lblPrice )
...
@@ -22,6 +29,7 @@ AS_OUTLET( BeeUILabel, lblPrice )
@property
(
strong
,
nonatomic
)
NSString
*
theme
;
@property
(
strong
,
nonatomic
)
NSString
*
theme
;
@property
(
strong
,
nonatomic
)
ProjectCategory
*
project
;
@property
(
strong
,
nonatomic
)
ProjectCategory
*
project
;
@property
(
assign
,
nonatomic
)
CellType
cellType
;
@end
@end
...
...
vanke/view_iPhone/templates/floor-list/VankeFloorListBoardCell_iPhone.m
View file @
e0684865
...
@@ -10,38 +10,42 @@
...
@@ -10,38 +10,42 @@
SUPPORT_RESOURCE_LOADING
(
YES
)
SUPPORT_RESOURCE_LOADING
(
YES
)
SUPPORT_AUTOMATIC_LAYOUT
(
YES
)
SUPPORT_AUTOMATIC_LAYOUT
(
YES
)
DEF_OUTLET
(
BeeUIImageView
,
imgPhoto
)
DEF_OUTLET
(
BeeUIImageView
,
imgPhoto
)
DEF_OUTLET
(
BeeUILabel
,
lblName
)
DEF_OUTLET
(
BeeUILabel
,
lblName
)
DEF_OUTLET
(
BeeUILabel
,
lblOpenDate
)
DEF_OUTLET
(
BeeUILabel
,
lblOpenDate
)
DEF_OUTLET
(
BeeUILabel
,
lblSaleAmount
)
DEF_OUTLET
(
BeeUILabel
,
lblSaleAmount
)
DEF_OUTLET
(
BeeUILabel
,
lblPassenger
)
DEF_OUTLET
(
BeeUILabel
,
lblPassengerFlow
)
DEF_OUTLET
(
BeeUILabel
,
lblPrice
)
DEF_OUTLET
(
BeeUILabel
,
lblPrice
)
-
(
BOOL
)
dataWillChange
:
(
id
)
newData
-
(
BOOL
)
dataWillChange
:
(
id
)
newData
{
{
return
newData
!=
self
.
data
;
return
newData
!=
self
.
data
;
}
}
-
(
void
)
dataDidChanged
-
(
void
)
dataDidChanged
{
{
FloorCellValue
*
obj
=
self
.
data
;
FloorCellValue
*
obj
=
self
.
data
;
if
(
nil
==
obj
)
{
if
(
nil
==
obj
)
{
return
;
return
;
}
}
// $(self.lblSaleAmount).SET_CLASS(obj.theme);
$
(
self
.
lblSaleAmount
).
ADD_CLASS
(
obj
.
theme
);
ProjectCategory
*
prj
=
obj
.
project
;
ProjectCategory
*
prj
=
obj
.
project
;
if
(
prj
)
if
(
prj
)
{
{
self
.
lblName
.
data
=
prj
.
projectName
;
self
.
lblName
.
data
=
prj
.
projectName
;
self
.
imgPhoto
.
data
=
[
prj
getPictureUrlOrDefault
];
self
.
imgPhoto
.
data
=
[
prj
getPictureUrlOrDefault
];
self
.
lblOpenDate
.
data
=
prj
.
foundingDate
;
self
.
lblOpenDate
.
data
=
prj
.
foundingDate
;
self
.
lblSaleAmount
.
data
=
prj
.
salesAmount
;
self
.
lblSaleAmount
.
data
=
prj
.
salesAmount
;
self
.
lblPassenger
.
data
=
prj
.
passengerFlowVolume
;
self
.
lblPassenger
Flow
.
data
=
prj
.
passengerFlowVolume
;
self
.
lblPrice
.
data
=
prj
.
perCustomerTransaction
;
self
.
lblPrice
.
data
=
prj
.
perCustomerTransaction
;
}
}
if
(
obj
.
cellType
==
CELL_TYPE_PASSENGER
)
{
$
(
@".floor-ctr"
).
HIDE
();
$
(
self
.
lblPassengerFlow
).
ADD_CLASS
(
obj
.
theme
);
}
else
{
$
(
self
.
lblSaleAmount
).
ADD_CLASS
(
obj
.
theme
);
}
}
}
@end
@end
...
@@ -52,6 +56,7 @@ DEF_OUTLET( BeeUILabel, lblPrice )
...
@@ -52,6 +56,7 @@ DEF_OUTLET( BeeUILabel, lblPrice )
@synthesize
theme
=
_theme
;
@synthesize
theme
=
_theme
;
@synthesize
project
=
_project
;
@synthesize
project
=
_project
;
@synthesize
cellType
=
_cellType
;
@end
@end
...
...
vanke/view_iPhone/templates/floor-list/VankeFloorListBoardCell_iPhone.xml
View file @
e0684865
...
@@ -12,15 +12,11 @@
...
@@ -12,15 +12,11 @@
</linear>
</linear>
<linear
orientation=
"v"
class=
"data-wrapper"
>
<linear
orientation=
"v"
class=
"data-wrapper"
>
<linear
orientation=
"h"
class=
"row open-date-wrapper"
>
<label
class=
"lbl"
>
开盘日期:
</label>
<label
id=
"lblOpenDate"
class=
"value"
></label>
</linear>
<linear
orientation=
"h"
class=
"row
sale-amount
-wrapper"
>
<linear
orientation=
"h"
class=
"row
price
-wrapper"
>
<label
class=
"lbl"
>
销售额
:
</label>
<label
class=
"lbl"
>
客单价
:
</label>
<label
id=
"lbl
SaleAmount
"
class=
"value"
>
0
</label>
<label
id=
"lbl
Price
"
class=
"value"
>
0
</label>
<label
class=
"unit"
>
元
</label>
<label
class=
"unit"
>
元
/人
</label>
</linear>
</linear>
<linear
orientation=
"h"
class=
"row flow-wrapper"
>
<linear
orientation=
"h"
class=
"row flow-wrapper"
>
...
@@ -29,15 +25,23 @@
...
@@ -29,15 +25,23 @@
<label
class=
"unit"
>
人
</label>
<label
class=
"unit"
>
人
</label>
</linear>
</linear>
<linear
orientation=
"h"
class=
"row price-wrapper"
>
<linear
orientation=
"h"
class=
"row open-date-wrapper"
>
<label
class=
"lbl"
>
客单价:
</label>
<label
class=
"lbl floor-ctr"
>
开盘日期:
</label>
<label
id=
"lblPrice"
class=
"value"
>
0
</label>
<label
id=
"lblOpenDate"
class=
"value floor-ctr"
></label>
<label
class=
"unit"
>
元/人
</label>
</linear>
<linear
orientation=
"h"
class=
"row sale-amount-wrapper"
>
<label
class=
"lbl floor-ctr"
>
销售额:
</label>
<label
id=
"lblSaleAmount"
class=
"value floor-ctr"
>
0
</label>
<label
class=
"unit floor-ctr"
>
元
</label>
</linear>
</linear>
</linear>
</linear>
</linear>
</linear>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.wrapper {
.wrapper {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
@@ -55,13 +59,12 @@
...
@@ -55,13 +59,12 @@
.photo {
.photo {
width: 100%;
width: 100%;
height: 100%;
height: 155px;
padding-bottom: 90px;
background-color: #999;
background-color: #999;
image-mode: fill;
image-mode: fill;
image-loading: white;
image-loading: white;
}
}
.mask {
.mask {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
@@ -73,7 +76,7 @@
...
@@ -73,7 +76,7 @@
.name-wrapper {
.name-wrapper {
position: absolute;
position: absolute;
left: 0px;
left: 0px;
bottom: 90
px;
top: 115
px;
width: 100%;
width: 100%;
height: 40px;
height: 40px;
}
}
...
@@ -97,10 +100,9 @@
...
@@ -97,10 +100,9 @@
.data-wrapper {
.data-wrapper {
width: 100%;
width: 100%;
height: 80px;
position: absolute;
position: absolute;
left: 0px;
left: 0px;
bottom: 3
px;
top: 155
px;
}
}
.data-wrapper .row {
.data-wrapper .row {
...
@@ -138,21 +140,22 @@
...
@@ -138,21 +140,22 @@
padding-right: -32px;
padding-right: -32px;
}
}
.data-wrapper .sale-amount-wrapper .value {
.data-wrapper .value.red {
color: #ed1b23;
font-size: 15px;
font-size: 15px;
font-weight: bold;
font-weight: bold;
}
}
.data-wrapper .sale-amount-wrapper .red {
.data-wrapper .value.purple {
color: #ed1b23;
}
.data-wrapper .sale-amount-wrapper .purple {
color: #5435ad;
color: #5435ad;
font-size: 15px;
font-weight: bold;
}
}
.data-wrapper .
sale-amount-wrapper
.orange {
.data-wrapper .
value
.orange {
color: #ea6402;
color: #ea6402;
font-size: 15px;
font-weight: bold;
}
}
</style>
</style>
</ui>
</ui>
vanke/view_iPhone/templates/floor-list/VankeFloorListBoard_iPhone.h
View file @
e0684865
...
@@ -12,6 +12,8 @@ AS_MODEL( VankeProjectListModel, model );
...
@@ -12,6 +12,8 @@ AS_MODEL( VankeProjectListModel, model );
AS_OUTLET
(
BeeUIScrollView
,
list
);
AS_OUTLET
(
BeeUIScrollView
,
list
);
AS_OUTLET
(
BeeUITextField
,
txtQuery
);
AS_OUTLET
(
BeeUITextField
,
txtQuery
);
@property
(
assign
,
nonatomic
)
CellType
listType
;
// 项目分类名称
// 项目分类名称
@property
(
strong
,
nonatomic
)
NSString
*
projectCategory
;
@property
(
strong
,
nonatomic
)
NSString
*
projectCategory
;
// 项目名称类似
// 项目名称类似
...
@@ -19,4 +21,6 @@ AS_OUTLET( BeeUITextField, txtQuery);
...
@@ -19,4 +21,6 @@ AS_OUTLET( BeeUITextField, txtQuery);
// 销售日期
// 销售日期
@property
(
strong
,
nonatomic
)
NSString
*
salesDate
;
@property
(
strong
,
nonatomic
)
NSString
*
salesDate
;
+
(
id
)
boardWithType
:
(
CellType
)
type
;
@end
@end
vanke/view_iPhone/templates/floor-list/VankeFloorListBoard_iPhone.m
View file @
e0684865
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#import "VankeUtil.h"
#import "VankeUtil.h"
#import "VankeProjectListAPI.h"
#import "VankeProjectListAPI.h"
@interface
VankeFloorListBoard_iPhone
()
@interface
VankeFloorListBoard_iPhone
()
@end
@end
#pragma mark -
#pragma mark -
...
@@ -23,11 +23,18 @@ SUPPORT_AUTOMATIC_LAYOUT(YES)
...
@@ -23,11 +23,18 @@ SUPPORT_AUTOMATIC_LAYOUT(YES)
@synthesize
projectCategory
=
_projectCategory
;
@synthesize
projectCategory
=
_projectCategory
;
@synthesize
projectNameLike
=
_projectNameLike
;
@synthesize
projectNameLike
=
_projectNameLike
;
@synthesize
salesDate
=
_salesDate
;
@synthesize
salesDate
=
_salesDate
;
@synthesize
listType
=
_listType
;
DEF_MODEL
(
VankeProjectListModel
,
model
);
DEF_MODEL
(
VankeProjectListModel
,
model
);
DEF_OUTLET
(
BeeUIScrollView
,
list
);
DEF_OUTLET
(
BeeUIScrollView
,
list
);
DEF_OUTLET
(
BeeUITextField
,
txtQuery
);
DEF_OUTLET
(
BeeUITextField
,
txtQuery
);
+
(
id
)
boardWithType
:
(
CellType
)
type
{
VankeFloorListBoard_iPhone
*
board
=
[
super
board
];
board
.
listType
=
type
;
return
board
;
}
-
(
void
)
load
-
(
void
)
load
{
{
self
.
model
=
[
VankeProjectListModel
modelWithObserver
:
self
];
self
.
model
=
[
VankeProjectListModel
modelWithObserver
:
self
];
...
@@ -43,57 +50,74 @@ DEF_OUTLET( BeeUITextField, txtQuery);
...
@@ -43,57 +50,74 @@ DEF_OUTLET( BeeUITextField, txtQuery);
ON_CREATE_VIEWS
(
signal
)
ON_CREATE_VIEWS
(
signal
)
{
{
[
UIApplication
sharedApplication
].
statusBarHidden
=
NO
;
[
UIApplication
sharedApplication
].
statusBarHidden
=
NO
;
self
.
navigationBarShown
=
YES
;
self
.
navigationBarShown
=
YES
;
self
.
title
=
_projectCategory
;
self
.
title
=
_projectCategory
;
[
self
addLeftIconToTextField
:
_txtQuery
icon
:
@"search"
];
[
self
addLeftIconToTextField
:
_txtQuery
icon
:
@"search"
];
self
.
list
.
headerClass
=
[
PullLoader
class
];
self
.
list
.
headerClass
=
[
PullLoader
class
];
self
.
list
.
headerShown
=
YES
;
self
.
list
.
headerShown
=
YES
;
self
.
list
.
footerClass
=
[
FootLoader
class
];
self
.
list
.
footerClass
=
[
FootLoader
class
];
self
.
list
.
footerShown
=
YES
;
self
.
list
.
footerShown
=
YES
;
self
.
list
.
lineCount
=
2
;
self
.
list
.
lineCount
=
2
;
self
.
list
.
animationDuration
=
0
.
2
f
;
self
.
list
.
animationDuration
=
0
.
2
f
;
self
.
list
.
baseInsets
=
bee
.
ui
.
config
.
baseInsets
;
self
.
list
.
baseInsets
=
bee
.
ui
.
config
.
baseInsets
;
self
.
list
.
whenReloading
=
^
self
.
list
.
whenReloading
=
^
{
{
self
.
list
.
total
=
self
.
model
.
projects
.
count
;
self
.
list
.
total
=
self
.
model
.
projects
.
count
;
for
(
BeeUIScrollItem
*
item
in
self
.
list
.
items
)
if
(
self
.
list
.
total
<=
0
)
{
{
self
.
list
.
total
=
1
;
item
.
size
=
CGSizeMake
(
self
.
list
.
width
/
self
.
list
.
lineCount
,
250
);
BeeUIScrollItem
*
item
=
self
.
list
.
items
[
0
];
item
.
size
=
CGSizeMake
(
self
.
list
.
width
,
50
);
item
.
order
=
0
;
item
.
order
=
0
;
item
.
rule
=
BeeUIScrollLayoutRule_Fall
;
item
.
rule
=
BeeUIScrollLayoutRule_Fall
;
item
.
clazz
=
[
VankeFloorListBoardCell_iPhone
class
];
item
.
clazz
=
[
BeeUILabel
class
];
item
.
data
=
@"没有数据,请稍后重试!"
;
}
else
{
CGFloat
cellHeight
=
240
;
if
(
self
.
listType
==
CELL_TYPE_PASSENGER
)
{
cellHeight
=
200
;
}
ProjectCategory
*
prj
=
[
self
.
model
.
projects
safeObjectAtIndex
:
item
.
index
];
for
(
BeeUIScrollItem
*
item
in
self
.
list
.
items
)
FloorCellValue
*
cellValue
=
[[
FloorCellValue
alloc
]
init
];
{
cellValue
.
theme
=
self
.
theme
;
item
.
size
=
CGSizeMake
(
self
.
list
.
width
/
self
.
list
.
lineCount
,
cellHeight
);
cellValue
.
project
=
prj
;
item
.
order
=
0
;
item
.
data
=
cellValue
;
item
.
rule
=
BeeUIScrollLayoutRule_Fall
;
}
item
.
clazz
=
[
VankeFloorListBoardCell_iPhone
class
];
};
ProjectCategory
*
prj
=
[
self
.
model
.
projects
safeObjectAtIndex
:
item
.
index
];
FloorCellValue
*
cellValue
=
[[
FloorCellValue
alloc
]
init
];
cellValue
.
theme
=
self
.
theme
;
cellValue
.
project
=
prj
;
cellValue
.
cellType
=
self
.
listType
;
item
.
data
=
cellValue
;
}
}
};
self
.
list
.
whenAnimated
=
^
self
.
list
.
whenAnimated
=
^
{
{
};
};
self
.
list
.
whenScrolling
=
^
self
.
list
.
whenScrolling
=
^
{
{
};
};
self
.
list
.
whenStop
=
^
self
.
list
.
whenStop
=
^
{
{
};
};
self
.
list
.
whenHeaderRefresh
=
^
self
.
list
.
whenHeaderRefresh
=
^
{
{
[
self
.
model
firstPage
];
[
self
.
model
firstPage
];
};
};
self
.
list
.
whenFooterRefresh
=
^
self
.
list
.
whenFooterRefresh
=
^
{
{
[
self
.
model
nextPage
];
[
self
.
model
nextPage
];
};
};
self
.
model
.
classificationEquals
=
_projectCategory
;
self
.
model
.
classificationEquals
=
_projectCategory
;
self
.
model
.
nameLike
=
_projectNameLike
;
self
.
model
.
nameLike
=
_projectNameLike
;
...
@@ -112,14 +136,14 @@ ON_LAYOUT_VIEWS( signal )
...
@@ -112,14 +136,14 @@ ON_LAYOUT_VIEWS( signal )
ON_WILL_APPEAR
(
signal
)
ON_WILL_APPEAR
(
signal
)
{
{
self
.
navigationBarShown
=
YES
;
self
.
navigationBarShown
=
YES
;
[
self
.
list
reloadData
];
[
self
.
list
reloadData
];
if
(
NO
==
self
.
model
.
loaded
)
{
[
self
.
model
firstPage
];
}
[
BeeUIRouter
sharedInstance
].
view
.
pannable
=
YES
;
if
(
NO
==
self
.
model
.
loaded
)
{
[
self
.
model
firstPage
];
}
[
BeeUIRouter
sharedInstance
].
view
.
pannable
=
YES
;
}
}
ON_DID_APPEAR
(
signal
)
ON_DID_APPEAR
(
signal
)
...
@@ -128,7 +152,7 @@ ON_DID_APPEAR( signal )
...
@@ -128,7 +152,7 @@ ON_DID_APPEAR( signal )
ON_WILL_DISAPPEAR
(
signal
)
ON_WILL_DISAPPEAR
(
signal
)
{
{
[
BeeUIRouter
sharedInstance
].
view
.
pannable
=
NO
;
[
BeeUIRouter
sharedInstance
].
view
.
pannable
=
NO
;
}
}
ON_DID_DISAPPEAR
(
signal
)
ON_DID_DISAPPEAR
(
signal
)
...
@@ -148,7 +172,7 @@ ON_SIGNAL3( VankeFloorListBoard_iPhone, txtQuery, signal )
...
@@ -148,7 +172,7 @@ ON_SIGNAL3( VankeFloorListBoard_iPhone, txtQuery, signal )
ON_SIGNAL3
(
VankeFloorListBoardCell_iPhone
,
mask
,
signal
)
ON_SIGNAL3
(
VankeFloorListBoardCell_iPhone
,
mask
,
signal
)
{
{
FloorCellValue
*
cellValue
=
signal
.
sourceCell
.
data
;
FloorCellValue
*
cellValue
=
signal
.
sourceCell
.
data
;
VankeFloorDetailBoard_iPhone
*
board
=
[
VankeFloorDetailBoard_iPhone
board
];
VankeFloorDetailBoard_iPhone
*
board
=
[
VankeFloorDetailBoard_iPhone
board
];
board
.
data
=
cellValue
.
project
;
board
.
data
=
cellValue
.
project
;
board
.
salesDate
=
_salesDate
;
board
.
salesDate
=
_salesDate
;
...
@@ -160,17 +184,17 @@ ON_SIGNAL3( VankeFloorListBoardCell_iPhone, mask, signal )
...
@@ -160,17 +184,17 @@ ON_SIGNAL3( VankeFloorListBoardCell_iPhone, mask, signal )
ON_SIGNAL3
(
VankeProjectListModel
,
RELOADING
,
signal
)
ON_SIGNAL3
(
VankeProjectListModel
,
RELOADING
,
signal
)
{
{
self
.
list
.
headerLoading
=
YES
;
self
.
list
.
headerLoading
=
YES
;
self
.
list
.
footerLoading
=
YES
;
self
.
list
.
footerLoading
=
YES
;
}
}
ON_SIGNAL3
(
VankeProjectListModel
,
RELOADED
,
signal
)
ON_SIGNAL3
(
VankeProjectListModel
,
RELOADED
,
signal
)
{
{
self
.
list
.
headerLoading
=
NO
;
self
.
list
.
headerLoading
=
NO
;
self
.
list
.
footerLoading
=
NO
;
self
.
list
.
footerLoading
=
NO
;
self
.
list
.
footerMore
=
self
.
model
.
more
;
self
.
list
.
footerMore
=
self
.
model
.
more
;
[
self
.
list
reloadData
];
[
self
.
list
reloadData
];
}
}
-
(
void
)
addLeftIconToTextField
:
(
BeeUITextField
*
)
textField
icon
:
(
NSString
*
)
icon
{
-
(
void
)
addLeftIconToTextField
:
(
BeeUITextField
*
)
textField
icon
:
(
NSString
*
)
icon
{
...
...
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
View file @
e0684865
...
@@ -90,7 +90,7 @@ ON_DID_DISAPPEAR( signal )
...
@@ -90,7 +90,7 @@ ON_DID_DISAPPEAR( signal )
ON_SIGNAL3
(
VankeMainBoard_iPhone
,
txtQuery
,
signal
)
ON_SIGNAL3
(
VankeMainBoard_iPhone
,
txtQuery
,
signal
)
{
{
if
([
signal
is
:
BeeUITextField
.
RETURN
])
{
if
([
signal
is
:
BeeUITextField
.
RETURN
])
{
[
self
show
FloorListView
];
[
self
show
ListView
:
CELL_TYPE_FLOOR
];
}
}
}
}
...
@@ -122,7 +122,15 @@ ON_SIGNAL3( VankeTopMenuBoardCell_iPhone, menuSqure, signal ) {
...
@@ -122,7 +122,15 @@ ON_SIGNAL3( VankeTopMenuBoardCell_iPhone, menuSqure, signal ) {
ON_SIGNAL3
(
VankeServiceSaleCell_iPhone
,
mask
,
signal
)
{
ON_SIGNAL3
(
VankeServiceSaleCell_iPhone
,
mask
,
signal
)
{
[[
VankeAppBoard_iPhone
sharedInstance
]
hideMenu
];
[[
VankeAppBoard_iPhone
sharedInstance
]
hideMenu
];
[
self
showFloorListView
];
[
self
showListView
:
CELL_TYPE_FLOOR
];
}
ON_SIGNAL3
(
VankeServiceBoardCell_iPhone
,
mask
,
signal
)
{
VankeServiceBoardCell_iPhone
*
cell
=
(
VankeServiceBoardCell_iPhone
*
)
signal
.
sourceCell
;
if
([
@"当前客流"
eq
:
cell
.
lblTitle
.
data
])
{
[[
VankeAppBoard_iPhone
sharedInstance
]
hideMenu
];
[
self
showListView
:
CELL_TYPE_PASSENGER
];
}
}
}
#pragma mark - VankeProjectSummaryModel
#pragma mark - VankeProjectSummaryModel
...
@@ -250,8 +258,8 @@ ON_SIGNAL3(VankeProjectSummaryModel, RELOADED, signal) {
...
@@ -250,8 +258,8 @@ ON_SIGNAL3(VankeProjectSummaryModel, RELOADED, signal) {
[
_summaryModel
reload
];
[
_summaryModel
reload
];
}
}
-
(
void
)
show
FloorListView
{
-
(
void
)
show
ListView
:
(
CellType
)
type
{
VankeFloorListBoard_iPhone
*
board
=
[
VankeFloorListBoard_iPhone
board
];
VankeFloorListBoard_iPhone
*
board
=
[
VankeFloorListBoard_iPhone
board
WithType
:
type
];
if
(
nil
!=
_currDashBoard
)
{
if
(
nil
!=
_currDashBoard
)
{
board
.
projectCategory
=
_currDashBoard
.
name
;
board
.
projectCategory
=
_currDashBoard
.
name
;
board
.
salesDate
=
_summaryModel
.
salesDate
;
board
.
salesDate
=
_summaryModel
.
salesDate
;
...
...
vanke/view_iPhone/templates/main/VankeServiceBoardCell_iPhone.h
View file @
e0684865
...
@@ -6,12 +6,13 @@
...
@@ -6,12 +6,13 @@
@interface
VankeServiceBoardCell_iPhone
:
BeeUICell
@interface
VankeServiceBoardCell_iPhone
:
BeeUICell
AS_OUTLET
(
BeeUIImageView
,
imgBg
);
AS_OUTLET
(
BeeUIImageView
,
imgBg
)
AS_OUTLET
(
BeeUIImageView
,
imgIcon
);
AS_OUTLET
(
BeeUIImageView
,
imgIcon
)
AS_OUTLET
(
BeeUILabel
,
lblTitle
);
AS_OUTLET
(
BeeUILabel
,
lblTitle
)
AS_OUTLET
(
BeeUIImageView
,
imgAmountIcon
);
AS_OUTLET
(
BeeUIImageView
,
imgAmountIcon
)
AS_OUTLET
(
BeeUILabel
,
lblAmount
);
AS_OUTLET
(
BeeUILabel
,
lblAmount
)
AS_OUTLET
(
BeeUILabel
,
lblAmountUnit
);
AS_OUTLET
(
BeeUILabel
,
lblAmountUnit
)
AS_OUTLET
(
BeeUIButton
,
mask
)
-
(
void
)
asNotAvailableCell
;
-
(
void
)
asNotAvailableCell
;
...
...
vanke/view_iPhone/templates/main/VankeServiceBoardCell_iPhone.m
View file @
e0684865
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#pragma mark -
#pragma mark -
@interface
VankeServiceBoardCell_iPhone
()
@interface
VankeServiceBoardCell_iPhone
()
{
{
}
}
@end
@end
...
@@ -14,12 +14,14 @@
...
@@ -14,12 +14,14 @@
SUPPORT_AUTOMATIC_LAYOUT
(
YES
)
SUPPORT_AUTOMATIC_LAYOUT
(
YES
)
SUPPORT_RESOURCE_LOADING
(
YES
)
SUPPORT_RESOURCE_LOADING
(
YES
)
DEF_OUTLET
(
BeeUIImageView
,
imgBg
);
DEF_OUTLET
(
BeeUIImageView
,
imgBg
)
DEF_OUTLET
(
BeeUIImageView
,
imgIcon
);
DEF_OUTLET
(
BeeUIImageView
,
imgIcon
)
DEF_OUTLET
(
BeeUILabel
,
lblTitle
);
DEF_OUTLET
(
BeeUILabel
,
lblTitle
)
DEF_OUTLET
(
BeeUIImageView
,
imgAmountIcon
);
DEF_OUTLET
(
BeeUIImageView
,
imgAmountIcon
)
DEF_OUTLET
(
BeeUILabel
,
lblAmount
);
DEF_OUTLET
(
BeeUILabel
,
lblAmount
)
DEF_OUTLET
(
BeeUILabel
,
lblAmountUnit
);
DEF_OUTLET
(
BeeUILabel
,
lblAmountUnit
)
DEF_OUTLET
(
BeeUIButton
,
mask
)
-
(
void
)
load
-
(
void
)
load
{
{
...
...
vanke/view_iPhone/templates/main/VankeServiceBoardCell_iPhone.xml
View file @
e0684865
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
<ui
namespace=
"VankeServiceBoardCell_iPhone"
>
<ui
namespace=
"VankeServiceBoardCell_iPhone"
>
<linear
orientation=
"v"
class=
"wrapper"
>
<linear
orientation=
"v"
class=
"wrapper"
>
<image
id=
"imgBg"
class=
"bg"
/>
<image
id=
"imgBg"
class=
"bg"
/>
<button
id=
"mask"
class=
"mask"
/>
<linear
orientation=
"h"
class=
"label-wrapper"
>
<linear
orientation=
"h"
class=
"label-wrapper"
>
<linear
orientation=
"v"
class=
"icon-wrapper"
>
<linear
orientation=
"v"
class=
"icon-wrapper"
>
...
@@ -38,6 +39,14 @@
...
@@ -38,6 +39,14 @@
top: 0px;
top: 0px;
}
}
.mask {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
}
.wrapper > .label-wrapper,
.wrapper > .label-wrapper,
.wrapper > .detl-wrapper {
.wrapper > .detl-wrapper {
height: 50%;
height: 50%;
...
...
vanke/view_iPhone/templates/main/VankeServiceDashBoard_iPhone.m
View file @
e0684865
...
@@ -53,6 +53,7 @@ DEF_OUTLET( VankeServiceBoardCell_iPhone, complaint );
...
@@ -53,6 +53,7 @@ DEF_OUTLET( VankeServiceBoardCell_iPhone, complaint );
self
.
passenger
.
imgBg
.
backgroundColor
=
[
UIColor
colorWithRed
:
0
green
:
195
/
255
.
0
blue
:
230
/
255
.
0
alpha
:
1
];
self
.
passenger
.
imgBg
.
backgroundColor
=
[
UIColor
colorWithRed
:
0
green
:
195
/
255
.
0
blue
:
230
/
255
.
0
alpha
:
1
];
self
.
passenger
.
lblAmountUnit
.
data
=
@"人"
;
self
.
passenger
.
lblAmountUnit
.
data
=
@"人"
;
self
.
traffic
.
imgIcon
.
data
=
@"car.png"
;
self
.
traffic
.
imgIcon
.
data
=
@"car.png"
;
self
.
traffic
.
lblTitle
.
data
=
@"当前车流"
;
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
.
imgBg
.
backgroundColor
=
[
UIColor
colorWithRed
:
79
/
255
.
0
green
:
143
/
255
.
0
blue
:
248
/
255
.
0
alpha
:
1
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment