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
89529e70
Commit
89529e70
authored
9 years ago
by
Achilles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面查询优化
parent
46151da3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
10 deletions
+31
-10
VankeMainBoard_iPhone.h
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.h
+1
-1
VankeMainBoard_iPhone.m
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
+24
-5
VankeMainBoard_iPhone.xml
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.xml
+6
-4
No files found.
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.h
View file @
89529e70
...
...
@@ -13,7 +13,7 @@
AS_OUTLET
(
VankeWeatherCell_iPhone
,
weatherBoard
);
AS_OUTLET
(
VankeTopMenuBoardCell_iPhone
,
topMenu
);
AS_OUTLET
(
BeeUIView
,
serviceDashBoardView
);
AS_OUTLET
(
BeeUI
TextField
,
txtQuery
);
AS_OUTLET
(
BeeUI
SearchBar
,
searchBar
);
AS_MODEL
(
VankeProjectSummaryModel
,
summaryModel
);
...
...
This diff is collapsed.
Click to expand it.
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.m
View file @
89529e70
...
...
@@ -29,7 +29,7 @@ SUPPORT_RESOURCE_LOADING( YES )
DEF_OUTLET
(
VankeWeatherCell_iPhone
,
weatherBoard
);
DEF_OUTLET
(
VankeTopMenuBoardCell_iPhone
,
topMenu
);
DEF_OUTLET
(
BeeUIView
,
serviceDashBoardView
);
DEF_OUTLET
(
BeeUI
TextField
,
txtQuery
);
DEF_OUTLET
(
BeeUI
SearchBar
,
searchBar
);
DEF_MODEL
(
VankeProjectSummaryModel
,
summaryModel
);
...
...
@@ -51,10 +51,29 @@ DEF_MODEL( VankeProjectSummaryModel, summaryModel );
ON_CREATE_VIEWS
(
signal
)
{
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
[
self
addLeftIconToTextField
:
_txtQuery
icon
:
@"search"
];
//
[self addLeftIconToTextField:_txtQuery icon:@"search"];
[
_weatherBoard
reloadLocationAndWeather
];
self
.
view
.
swipeDirection
=
UISwipeGestureRecognizerDirectionLeft
|
UISwipeGestureRecognizerDirectionRight
;
self
.
view
.
swipeble
=
YES
;
//去掉搜索框背景
float
version
=
[[[
UIDevice
currentDevice
]
systemVersion
]
floatValue
];
if
([
_searchBar
respondsToSelector
:
@selector
(
barTintColor
)])
{
float
iosversion7_1
=
7
.
1
;
if
(
version
>=
iosversion7_1
)
{
//iOS7.1
[[[[
_searchBar
.
subviews
objectAtIndex
:
0
]
subviews
]
objectAtIndex
:
0
]
removeFromSuperview
];
[
_searchBar
setBackgroundColor
:[
UIColor
clearColor
]];
}
else
{
//iOS7.0
[
_searchBar
setBarTintColor
:[
UIColor
clearColor
]];
[
_searchBar
setBackgroundColor
:[
UIColor
clearColor
]];
}
}
else
{
//iOS7.0 以下
[[
_searchBar
.
subviews
objectAtIndex
:
0
]
removeFromSuperview
];
[
_searchBar
setBackgroundColor
:[
UIColor
clearColor
]];
}
}
ON_DELETE_VIEWS
(
signal
)
...
...
@@ -90,9 +109,9 @@ ON_DID_DISAPPEAR( signal )
{
}
ON_SIGNAL3
(
VankeMainBoard_iPhone
,
txtQuery
,
signal
)
ON_SIGNAL3
(
VankeMainBoard_iPhone
,
searchBar
,
signal
)
{
if
([
signal
is
:
BeeUI
TextField
.
RETURN
])
{
if
([
signal
is
:
BeeUI
SearchBar
.
SEARCH
])
{
[
self
showListView
:
CELL_TYPE_FLOOR
];
}
}
...
...
@@ -228,7 +247,7 @@ ON_SIGNAL3(VankeProjectSummaryModel, RELOADED, signal) {
if
(
nil
!=
_currDashBoard
)
{
board
.
projectCategory
=
_currDashBoard
.
name
;
board
.
theme
=
_currDashBoard
.
theme
;
NSString
*
nameLike
=
[
VankeUtil
trim
:
$
(
self
.
txtQuery
).
data
];
NSString
*
nameLike
=
[
VankeUtil
trim
:
self
.
searchBar
.
text
];
board
.
projectNameLike
=
nameLike
;
}
...
...
This diff is collapsed.
Click to expand it.
vanke/view_iPhone/templates/main/VankeMainBoard_iPhone.xml
View file @
89529e70
...
...
@@ -6,7 +6,8 @@
<linear
orientation=
"h"
class=
"logo-bar"
>
<image
class=
"logo"
/>
<input
id=
"txtQuery"
class=
"input"
></input>
<!-- <input id="txtQuery" class="input"></input>-->
<searchbar
id=
"searchBar"
class=
"search"
/>
</linear>
<VankeWeatherCell_iPhone
id=
"weatherBoard"
/>
...
...
@@ -15,6 +16,7 @@
</linear>
<style
type=
"text/css"
>
.wrapper {
width: 100%;
height: 100%;
...
...
@@ -42,10 +44,10 @@
margin-left: 15px;
}
.logo-bar .
input
{
width: 1
0
0px;
.logo-bar .
search
{
width: 1
5
0px;
float: right;
placeholder: "
楼盘查询
";
placeholder: "
输入楼盘名称
";
input-return-key: search;
}
...
...
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