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
fd3782f5
Commit
fd3782f5
authored
9 years ago
by
Achilles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页允许切换日期
parent
cb899c68
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
12 deletions
+38
-12
VankeProjectSummaryModel.m
vanke/model/VankeProjectSummaryModel.m
+0
-5
VankeMainBoard_iPhone.m
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
+31
-0
VankeServiceSaleCell_iPhone.h
.../view_iPhone/templates/main/VankeServiceSaleCell_iPhone.h
+2
-5
VankeServiceSaleCell_iPhone.m
.../view_iPhone/templates/main/VankeServiceSaleCell_iPhone.m
+2
-0
VankeServiceSaleCell_iPhone.xml
...iew_iPhone/templates/main/VankeServiceSaleCell_iPhone.xml
+3
-2
No files found.
vanke/model/VankeProjectSummaryModel.m
View file @
fd3782f5
...
...
@@ -43,11 +43,6 @@
_trafficDate
=
[
self
today
:
df
];
}
// TODO for debug
// _salesDate = @"2015-09-21";
// _passengerDate = @"2015-09-21";
// _trafficDate = @"2015-09-21";
api
.
salesDate
=
_salesDate
;
api
.
passengerDate
=
_passengerDate
;
api
.
trafficDate
=
_trafficDate
;
...
...
This diff is collapsed.
Click to expand it.
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
View file @
fd3782f5
...
...
@@ -144,6 +144,37 @@ ON_SIGNAL3( VankeServiceSaleCell_iPhone, mask, signal ) {
[
self
showListView
:
CELL_TYPE_FLOOR
];
}
ON_SIGNAL3
(
VankeServiceSaleCell_iPhone
,
btnHistoryMask
,
signal
)
{
UIAlertController
*
alertController
=
[
UIAlertController
alertControllerWithTitle
:
@"
\n\n\n\n\n\n\n\n\n\n\n
"
message
:
nil
preferredStyle
:
UIAlertControllerStyleActionSheet
];
UIDatePicker
*
picker
=
[[
UIDatePicker
alloc
]
init
];
picker
.
datePickerMode
=
UIDatePickerModeDate
;
NSDate
*
yesterday
=
[[
NSDate
alloc
]
initWithTimeIntervalSinceNow
:
-
24
*
60
*
60
];
picker
.
maximumDate
=
yesterday
;
picker
.
locale
=
[
NSLocale
localeWithLocaleIdentifier
:
@"zh-Hans"
];
[
picker
setDatePickerMode
:
UIDatePickerModeDate
];
[
alertController
.
view
addSubview
:
picker
];
[
alertController
addAction
:({
UIAlertAction
*
action
=
[
UIAlertAction
actionWithTitle
:
@"确定"
style
:
UIAlertActionStyleDefault
handler
:^
(
UIAlertAction
*
action
)
{
if
(
nil
!=
_currDashBoard
)
{
NSDateFormatter
*
df
=
[[
NSDateFormatter
alloc
]
init
];
[
df
setDateFormat
:
@"yyyy-MM-dd"
];
NSString
*
dateStr
=
[
df
stringFromDate
:
picker
.
date
];
_currDashBoard
.
salesInfo
.
lblDate
.
text
=
dateStr
;
_summaryModel
.
salesDate
=
dateStr
;
_summaryModel
.
passengerDate
=
dateStr
;
_summaryModel
.
trafficDate
=
dateStr
;
[
_summaryModel
reload
];
}
}];
action
;
})];
UIPopoverPresentationController
*
popoverController
=
alertController
.
popoverPresentationController
;
popoverController
.
sourceView
=
self
.
view
;
popoverController
.
sourceRect
=
[
self
.
view
bounds
];
[
self
presentViewController
:
alertController
animated
:
YES
completion
:
nil
];
}
ON_SIGNAL3
(
VankeServiceBoardCell_iPhone
,
mask
,
signal
)
{
VankeServiceBoardCell_iPhone
*
cell
=
(
VankeServiceBoardCell_iPhone
*
)
signal
.
sourceCell
;
if
([
@"昨日客流"
eq
:[
cell
name
]])
{
...
...
This diff is collapsed.
Click to expand it.
vanke/view_iPhone/templates/main/VankeServiceSaleCell_iPhone.h
View file @
fd3782f5
...
...
@@ -14,10 +14,7 @@ AS_OUTLET( BeeUIImageView, imgLeftIcon );
AS_OUTLET
(
BeeUIImageView
,
imgAmountIcon
);
AS_OUTLET
(
BeeUILabel
,
lblAmount
);
AS_OUTLET
(
BeeUILabel
,
lblAmountUnit
);
//- (void) redTheme;
//- (void) purpleTheme;
//- (void) orangeTheme;
//- (void) setAmount: (float) amount;
AS_OUTLET
(
BeeUIButton
,
btnHistoryMask
);
AS_OUTLET
(
BeeUILabel
,
lblDate
);
@end
This diff is collapsed.
Click to expand it.
vanke/view_iPhone/templates/main/VankeServiceSaleCell_iPhone.m
View file @
fd3782f5
...
...
@@ -17,6 +17,8 @@ DEF_OUTLET( BeeUIImageView, imgLeftIcon );
DEF_OUTLET
(
BeeUIImageView
,
imgAmountIcon
);
DEF_OUTLET
(
BeeUILabel
,
lblAmount
);
DEF_OUTLET
(
BeeUILabel
,
lblAmountUnit
);
DEF_OUTLET
(
BeeUIButton
,
btnHistoryMask
);
DEF_OUTLET
(
BeeUILabel
,
lblDate
);
-
(
void
)
load
...
...
This diff is collapsed.
Click to expand it.
vanke/view_iPhone/templates/main/VankeServiceSaleCell_iPhone.xml
View file @
fd3782f5
...
...
@@ -3,17 +3,18 @@
<ui
namespace=
"VankeServiceSaleCell_iPhone"
>
<linear
orientation=
"h"
class=
"wrapper"
>
<image
class=
"bg"
/>
<button
id=
"mask"
class=
"mask"
/>
<linear
orientation=
"v"
class=
"left-wrapper"
>
<button
id=
"btnHistoryMask"
class=
"mask"
/>
<image
id=
"imgLeftBg"
class=
"bg"
/>
<linear
orientation=
"v"
class=
"inner"
>
<image
id=
"imgLeftIcon"
class=
"icon red"
/>
<label
class=
"lbl"
>
查看详情
</label>
<label
id=
"lblDate"
class=
"lbl"
>
查看历史
</label>
</linear>
</linear>
<linear
orientation=
"v"
class=
"right-wrapper"
>
<button
id=
"mask"
class=
"mask"
/>
<image
id=
"imgRightBg"
class=
"bg red"
/>
<image
class=
"indictor"
/>
...
...
This diff is collapsed.
Click to expand it.
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