Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
674598c6ae90701184c9773b5ebc37f8b2963485
1 parent
7bb0d1f3
细节修改
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
template/www.yohobuy.com/partials/index/commodity.phtml
web-static/js/common/new-arrivls.js
web-static/sass/home/_index.scss
yohobuy/www.yohobuy.com/application/controllers/Boys.php
template/www.yohobuy.com/partials/index/commodity.phtml
View file @
674598c
...
...
@@ -5,6 +5,6 @@
</ul>
<div
class=
"loading"
>
<
p>Loading...</p
>
<
a>Loading...</a
>
</div>
</div>
\ No newline at end of file
...
...
web-static/js/common/new-arrivls.js
View file @
674598c
...
...
@@ -6,7 +6,7 @@ var InfiniteLoad = require('../common/infinite-load');
(
function
(
$
)
{
var
$container
=
$
(
'div.commodity ul'
);
var
$load
=
$
(
'.loading'
);
var
$load
=
$
(
'.loading
a
'
);
var
load
=
new
InfiniteLoad
({
offset
:
{
height
:
function
()
{
...
...
@@ -16,6 +16,7 @@ var InfiniteLoad = require('../common/infinite-load');
});
load
.
on
(
'after'
,
function
(
p
)
{
console
.
log
(
p
.
index
);
var
options
=
{
type
:
'POST'
,
url
:
'/boys/commodity'
,
...
...
@@ -40,7 +41,7 @@ var InfiniteLoad = require('../common/infinite-load');
load
.
emit
();
}
else
{
$load
.
html
(
'
END
'
);
$load
.
html
(
'
查看更多
'
);
}
},
error
:
function
()
{
...
...
web-static/sass/home/_index.scss
View file @
674598c
...
...
@@ -342,6 +342,7 @@
.commodity
{
margin-left
:
-10px
;
margin-bottom
:
80px
;
position
:
relative
;
li
{
float
:
left
;
...
...
@@ -383,10 +384,8 @@
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
p
{
text-align
:
center
;
font-size
:
20px
;
}
text-align
:
center
;
font-size
:
20px
;
}
}
...
...
yohobuy/www.yohobuy.com/application/controllers/Boys.php
View file @
674598c
...
...
@@ -443,8 +443,8 @@ class BoysController extends AbstractAction
/**
* 男装首页 新品上架 接口数据
*
* @param int $pageIndex 当前页数
* @param int $pageCount 一页显示个数
* @param int pageIndex 当前页数
* @param int pageCount 一页显示个数
* @param string flag 类型(男装/女装等,用于区分)
* @return json
*/
...
...
@@ -457,6 +457,10 @@ class BoysController extends AbstractAction
if
(
!
$this
->
isAjax
())
{
break
;
}
$pageIndex
=
$this
->
post
(
'pageIndex'
);
if
(
$pageIndex
>=
3
){
break
;
}
$result
=
array
(
'code'
=>
200
,
...
...
Please
register
or
login
to post a comment