Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
9 years ago
Commit
3319cd89bc334f00f9d21a79effe982c2e77794a
1 parent
7166b647
'160920-shopjs-ok'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
public/js/product/shop/shop.js
public/js/product/shop/shop.js
View file @
3319cd8
...
...
@@ -224,6 +224,7 @@ function hotData(callback) {
req
.
callBack
=
function
(
data
)
{
$
(
'#popularity'
).
append
(
data
);
navInfo
.
hot
.
page
++
;
// myScroll.refresh();
lazyLoad
(
$
(
'#popularity .lazy'
));
scH
=
$
(
'#scroller'
).
outerHeight
();
...
...
@@ -270,6 +271,7 @@ function tabChange(dom, index) {
$nav1
.
removeClass
(
'fixed-top absolute'
);
$nav2
.
removeClass
(
'fixed-top absolute'
);
}
// myScroll && myScroll.refresh();
scH
=
$
(
'#scroller'
).
outerHeight
();
if
(
!
$nav1
.
hasClass
(
'hide'
))
{
...
...
@@ -598,7 +600,7 @@ function search(opt) {
return
;
}
//封面图,defaultOpt对象也有可能包含coverChannel,但defaultOpt优先级高
//
封面图,defaultOpt对象也有可能包含coverChannel,但defaultOpt优先级高
if
(
coverChannel
)
{
setting
.
coverChannel
=
coverChannel
;
}
...
...
@@ -708,7 +710,7 @@ $subNav.on('touchend touchcancel', function(e) {
filter
.
hideFilter
();
myScroll
&&
myScroll
.
enable
();
}
else
{
myScroll
&&
myScroll
.
scrollTo
(
0
,
-
(
imgH
+
main1oH
+
nav1H
));
theY
=
imgH
+
main1oH
+
nav1H
;
...
...
@@ -753,8 +755,8 @@ $subNav.on('touchend touchcancel', function(e) {
// 价格/折扣切换排序状态
$this
.
find
(
'.icon > .iconfont'
).
toggleClass
(
'cur'
);
nav
.
reload
=
true
;
//重置reload,HTML会被替换为逆序的HTML
nav
.
order
=
nav
.
order
===
0
?
1
:
0
;
//切换排序
nav
.
reload
=
true
;
// 重置reload,HTML会被替换为逆序的HTML
nav
.
order
=
nav
.
order
===
0
?
1
:
0
;
// 切换排序
$goodsContainer
.
children
(
'.container:not(.hide)'
).
addClass
(
'hide'
);
...
...
@@ -844,6 +846,7 @@ $listNav.on('touchstart', 'li', function(e) {
$
(
this
).
addClass
(
'bytouch'
);
}).
on
(
'touchend touchcancel'
,
function
()
{
$listNav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
// myScroll && myScroll.refresh();
});
...
...
@@ -851,6 +854,7 @@ $nav2.on('touchstart', 'li', function(e) {
$
(
this
).
addClass
(
'bytouch'
);
}).
on
(
'touchend touchcancel'
,
function
()
{
$nav2
.
find
(
'li'
).
removeClass
(
'bytouch'
);
// myScroll && myScroll.refresh();
});
...
...
Please
register
or
login
to post a comment