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
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
10 years ago
Commit
a29b195cbf91b4bb073b56a7cc7f35d6b35e806a
1 parent
5f20a822
info icon change
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
docs/data-structure.md
static/js/guang/home.js
template/m.yohobuy.com/partials/guang/tvls.phtml
docs/data-structure.md
View file @
a29b195
...
...
@@ -243,8 +243,7 @@
publishTime: '',
pageView: '',
like: {
isLiked: true,
count: 1
isLiked: true
},
share: false,
isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic
...
...
static/js/guang/home.js
View file @
a29b195
...
...
@@ -18,7 +18,7 @@ var $infoList = $('#info-list'),
$infos
=
$infoList
.
children
(
'.info-list'
),
$nav
=
$
(
'#guang-nav'
),
$curNav
=
$nav
.
children
(
'.focus'
),
cur
Index
=
$curNav
.
index
(
);
cur
Type
=
$curNav
.
data
(
'type'
);
var
state
=
{};
...
...
@@ -67,15 +67,11 @@ $nav.delegate('.guang-nav-item', 'touchstart', function() {
setLazyLoadAndMellipsis
(
$content
.
children
(
'.guang-info'
));
$curNav
=
$this
;
cur
Index
=
index
;
cur
Type
=
$this
.
data
(
'type'
)
;
});
$
(
document
).
scroll
(
function
()
{
if
(
state
[
curIndex
].
end
)
{
return
;
}
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
loadMoreH
)
{
loadMore
(
$infos
,
state
[
curIndex
]);
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
loadMoreH
&&
!
state
[
curType
].
end
)
{
loadMore
(
$infos
,
state
[
curType
]);
}
});
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/guang/tvls.phtml
View file @
a29b195
...
...
@@ -5,8 +5,7 @@
<span class="page-view">{{pageView}}</span>
<div class="like-share-container">
{{# like}}
<a href="javascript:;" class="iconfont like-btn{{#isLiked}} like{{/isLiked}}"></a>
<span class="like-count">{{count}}</span>
<a href="javascript:;" class="iconfont like-btn{{#isLiked}} like{{/isLiked}}"></a>
{{/ like}}
{{# share}}
<a href="{{.}}" class="iconfont share-btn"></a>
...
...
Please
register
or
login
to post a comment