Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
e249d4e7ca2f821f5c04b79ee16b3e0eeb379182
2 parents
af18ce4c
500b11ba
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
static/js/product/list.js
yohobuy/m.yohobuy.com/application/controllers/Boys.php
yohobuy/m.yohobuy.com/application/controllers/Girls.php
yohobuy/m.yohobuy.com/application/controllers/Kids.php
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
static/js/product/list.js
View file @
e249d4e
...
...
@@ -173,6 +173,7 @@ function search(opt) {
data
:
setting
,
success
:
function
(
data
)
{
var
noResult
=
'<p class="no-result">未找到相关搜索结果</p>'
,
num
,
$container
;
switch
(
navType
)
{
...
...
@@ -196,11 +197,15 @@ function search(opt) {
}
else
{
if
(
nav
.
reload
)
{
$container
.
html
(
data
);
lazyLoad
(
$container
.
find
(
'.lazy'
));
}
else
{
num
=
$container
.
find
(
'.good-info'
).
length
;
$container
.
append
(
data
);
//lazy good-infos who append in
lazyLoad
(
$container
.
find
(
'.good-info:gt('
+
(
num
-
1
)
+
') .lazy'
));
}
lazyLoad
(
$container
.
find
(
'.lazy'
));
}
nav
.
reload
=
false
;
...
...
yohobuy/m.yohobuy.com/application/controllers/Boys.php
View file @
e249d4e
...
...
@@ -27,7 +27,7 @@ class BoysController extends AbstractAction
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'boysHomePage'
=>
true
,
'showFooterTab'
=>
tru
e
,
'showFooterTab'
=>
fals
e
,
'maybeLike'
=>
true
,
'content'
=>
Index\HomeModel
::
getBoysFloor
(),
'pageFooter'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/controllers/Girls.php
View file @
e249d4e
...
...
@@ -27,7 +27,7 @@ class GirlsController extends AbstractAction
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'grilsHomePage'
=>
true
,
'showFooterTab'
=>
tru
e
,
'showFooterTab'
=>
fals
e
,
'maybeLike'
=>
true
,
'content'
=>
Index\HomeModel
::
getGirlsFloor
(),
'pageFooter'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/controllers/Kids.php
View file @
e249d4e
...
...
@@ -26,7 +26,7 @@ class KidsController extends AbstractAction
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'kidsHomePage'
=>
true
,
'showFooterTab'
=>
tru
e
,
'showFooterTab'
=>
fals
e
,
'maybeLike'
=>
true
,
'content'
=>
Index\HomeModel
::
getKidsFloor
(),
'pageFooter'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
View file @
e249d4e
...
...
@@ -26,7 +26,7 @@ class LifestyleController extends AbstractAction
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'lifestyleHomePage'
=>
true
,
'showFooterTab'
=>
tru
e
,
'showFooterTab'
=>
fals
e
,
'maybeLike'
=>
true
,
'content'
=>
Index\HomeModel
::
getLifestyleFloor
(),
'pageFooter'
=>
true
,
...
...
Please
register
or
login
to post a comment