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
365ac2ab
Commit
365ac2ab
authored
Dec 26, 2015
by
Achilles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add swipe gesture
parent
b156608d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
33 deletions
+27
-33
VankeFloorListBoard_iPhone.m
..._iPhone/templates/floor-list/VankeFloorListBoard_iPhone.m
+1
-1
VankeMainBoard_iPhone.m
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
+8
-29
ICRSystemViewController.m
.../view_iPhone/templates/settings/ICRSystemViewController.m
+16
-0
VankeStatementDetailListBoard_iPhone.m
...emplates/statement/VankeStatementDetailListBoard_iPhone.m
+1
-1
VankeStatementMonthCell_iPhone.xml
...ne/templates/statement/VankeStatementMonthCell_iPhone.xml
+1
-2
No files found.
vanke/view_iPhone/templates/floor-list/VankeFloorListBoard_iPhone.m
View file @
365ac2ab
...
...
@@ -77,7 +77,7 @@ ON_CREATE_VIEWS( signal )
self
.
list
.
total
=
1
;
BeeUIScrollItem
*
item
=
self
.
list
.
items
[
0
];
item
.
size
=
CGSizeMake
(
self
.
list
.
width
,
1
0
0
);
item
.
size
=
CGSizeMake
(
self
.
list
.
width
,
1
5
0
);
item
.
order
=
0
;
item
.
rule
=
BeeUIScrollLayoutRule_Fall
;
item
.
clazz
=
[
NoDataCell_iPhoneCell
class
];
...
...
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
View file @
365ac2ab
...
...
@@ -9,9 +9,6 @@
#import "GEToast.h"
@interface
VankeMainBoard_iPhone
()
//@property (strong, nonatomic) VankeServiceDashBoard_iPhone *communityDashBoard;
//@property (strong, nonatomic) VankeServiceDashBoard_iPhone *centerDashBoard;
//@property (strong, nonatomic) VankeServiceDashBoard_iPhone *squreDashBoard;
@property
(
strong
,
nonatomic
)
VankeServiceDashBoard_iPhone
*
currDashBoard
;
@end
...
...
@@ -56,10 +53,10 @@ ON_CREATE_VIEWS( signal )
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
[
self
addLeftIconToTextField
:
_txtQuery
icon
:
@"search"
];
[
_weatherBoard
reloadLocationAndWeather
];
[
self
initSwipeGesture
];
self
.
view
.
swipeDirection
=
UISwipeGestureRecognizerDirectionLeft
|
UISwipeGestureRecognizerDirectionRight
;
self
.
view
.
swipeble
=
YES
;
}
ON_DELETE_VIEWS
(
signal
)
{
}
...
...
@@ -70,7 +67,7 @@ ON_LAYOUT_VIEWS( signal )
ON_WILL_APPEAR
(
signal
)
{
[
BeeUIRouter
sharedInstance
].
view
.
pannable
=
YES
;
[
BeeUIRouter
sharedInstance
].
view
.
pannable
=
NO
;
self
.
navigationBarShown
=
NO
;
[[
VankeAppBoard_iPhone
sharedInstance
]
showMenu
];
[
_summaryModel
reload
];
...
...
@@ -248,35 +245,17 @@ ON_SIGNAL3(VankeProjectSummaryModel, RELOADED, signal) {
return
[
df
stringFromDate
:[
NSDate
date
]];
}
#pragma SwipeGesture
-
(
void
)
initSwipeGesture
{
UISwipeGestureRecognizer
*
swipeGestureRecognizerToLeft
=
[[
UISwipeGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
handleSwipesToLeft
:
)];
/*Swipes that are performed from right to left are to be detected*/
swipeGestureRecognizerToLeft
.
direction
=
UISwipeGestureRecognizerDirectionLeft
;
/*just one finger needed*/
swipeGestureRecognizerToLeft
.
numberOfTouchesRequired
=
1
;
swipeGestureRecognizerToLeft
.
cancelsTouchesInView
=
NO
;
/*add it to the view*/
[
self
.
serviceDashBoardView
addGestureRecognizer
:
swipeGestureRecognizerToLeft
];
UISwipeGestureRecognizer
*
swipeGestureRecognizerToRight
=
[[
UISwipeGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
handleSwipesToRight
:
)];
/*Swipes that are performed from right to left are to be detected*/
swipeGestureRecognizerToRight
.
direction
=
UISwipeGestureRecognizerDirectionRight
;
/*just one finger needed*/
swipeGestureRecognizerToRight
.
numberOfTouchesRequired
=
1
;
swipeGestureRecognizerToRight
.
cancelsTouchesInView
=
NO
;
/*add it to the view*/
[
self
.
serviceDashBoardView
addGestureRecognizer
:
swipeGestureRecognizerToRight
];
}
#pragma VankeMainBoard_iPhone
-
(
void
)
handleSwipesToLeft
:
(
UISwipeGestureRecognizer
*
)
paramSender
{
ON_SIGNAL3
(
VankeMainBoard_iPhone
,
SWIPE_LEFT
,
signal
)
{
if
(
_curTopMenuIndex
>
0
)
{
[
self
showTab
:
_curTopMenuIndex
-
1
];
}
}
-
(
void
)
handleSwipesToRight
:
(
UISwipeGestureRecognizer
*
)
paramSender
{
ON_SIGNAL3
(
VankeMainBoard_iPhone
,
SWIPE_RIGHT
,
signal
)
{
if
(
_curTopMenuIndex
<
2
)
{
[
self
showTab
:
_curTopMenuIndex
+
1
];
}
...
...
vanke/view_iPhone/templates/settings/ICRSystemViewController.m
View file @
365ac2ab
...
...
@@ -14,6 +14,7 @@
#import "ICRAboutViewController.h"
#import "ICRAppMacro.h"
#import "AppDelegate.h"
#import "GEToast.h"
#import "VankeCommonModel.h"
#define TAG_ACTION_SHEET_EXIT 0
...
...
@@ -135,6 +136,16 @@ ON_DID_APPEAR( signal )
cellInfo
.
fCellHeight
=
fCellHeight
;
[
secInfo
addCell
:
cellInfo
];
// 检查版本更新
cellInfo
=
[
IBTTableViewCellInfo
normalCellForSel
:
@selector
(
onCheckNewVersion
:)
target
:
self
title
:
@"检查版本更新"
rightValue
:
nil
accessoryType
:
UITableViewCellAccessoryDisclosureIndicator
];
[
cellInfo
addUserInfoValue
:
titleColor
forKey
:
CInfoTitleColorKey
];
cellInfo
.
fCellHeight
=
fCellHeight
;
[
secInfo
addCell
:
cellInfo
];
[
self
.
m_tableViewInfo
addSection
:
secInfo
];
}
...
...
@@ -178,6 +189,11 @@ ON_DID_APPEAR( signal )
[
self
.
stack
pushBoard
:
board
animated
:
YES
];
}
-
(
void
)
onCheckNewVersion
:
(
__unused
id
)
sender
{
// TODO
[
GEToast
showWithText
:
@"当前已经是最新版本了"
bottomOffset
:
45
.
0
f
duration
:
1
.
0
f
];
}
-
(
void
)
confirmToLogout
{
UIActionSheet
*
as
=
[[
UIActionSheet
alloc
]
initWithTitle
:
nil
delegate
:
self
cancelButtonTitle
:
@"取消"
destructiveButtonTitle
:
@"退出登录"
otherButtonTitles
:
@"退出应用"
,
nil
];
as
.
tag
=
TAG_ACTION_SHEET_EXIT
;
...
...
vanke/view_iPhone/templates/statement/VankeStatementDetailListBoard_iPhone.m
View file @
365ac2ab
...
...
@@ -296,7 +296,7 @@ ON_SIGNAL3(VankeStatementDetailListBoard_iPhone, btnConfirm, signal) {
self
.
list
.
total
=
1
;
BeeUIScrollItem
*
item
=
self
.
list
.
items
[
0
];
item
.
size
=
CGSizeMake
(
self
.
list
.
width
,
1
0
0
);
item
.
size
=
CGSizeMake
(
self
.
list
.
width
,
1
5
0
);
item
.
order
=
0
;
item
.
rule
=
BeeUIScrollLayoutRule_Fall
;
item
.
clazz
=
[
NoDataCell_iPhoneCell
class
];
...
...
vanke/view_iPhone/templates/statement/VankeStatementMonthCell_iPhone.xml
View file @
365ac2ab
...
...
@@ -27,9 +27,8 @@
<linear
orientation=
"h"
class=
"col-body"
>
<linear
orientation=
"h"
class=
"row"
>
<linear
orientation=
"h"
class=
"row1-wrapper"
>
<label
class=
"lbl"
>
共
</label>
<label
id=
"lblCount"
class=
"lbl"
></label>
<label
class=
"lbl"
>
家商铺
:
</label>
<label
class=
"lbl"
>
家商铺
:
</label>
<label
id=
"lblTotalPrefix"
class=
"lbl"
>
应收总额
</label>
</linear>
</linear>
...
...
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