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
zhangxiaoru
9 years ago
Commit
db617e07ff917347ead5ee11d6e31c8bcc1e1b0c
1 parent
1b375802
ge dist
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
static/dist/myohobuy/1.3.17/index-debug.js
static/dist/myohobuy/1.3.17/index.css
static/dist/myohobuy/1.3.17/index.js
static/dist/myohobuy/1.3.17/index-debug.js
View file @
db617e0
...
...
@@ -8528,8 +8528,10 @@ var $listNav = $('#list-nav'),
$pre
=
$listNav
.
find
(
'.active'
),
//纪录进入筛选前的active项,初始为选中项
searching
;
var
viewType
=
1
;
// 1-首页,2-上新,3-人气
var
viewType
=
1
;
// 1-首页,2-上新,3-人气
lazyLoad
(
$
(
'img.lazy'
));
//焦点效果
if
(
$
(
'.banner-swiper'
).
find
(
'li'
).
size
()
>
1
)
{
bannerSwiper
=
new
Swiper
(
'.banner-swiper'
,
{
...
...
@@ -8665,6 +8667,7 @@ $.jqtab = function(nav, posNav, main) {
};
$
.
jqtab
(
'#nav'
,
'#pos-nav'
,
'.main'
);
$
(
'#wrapper'
).
addClass
(
'scroll-wrapper'
);
// lazyLoad($('img.lazy'));
myScroll
=
new
IScroll
(
'#wrapper'
,
{
...
...
@@ -8696,6 +8699,7 @@ myScroll.on('scroll', function() {
break
;
}
}
if
(
sTop
<
imgH
)
{
if
(
!
$nav1
.
hasClass
(
'hide'
))
{
$nav1
.
addClass
(
'hide'
);
...
...
@@ -8848,7 +8852,6 @@ function search(opt) {
$
.
extend
(
defaultOpt
,
ext
);
//扩展筛选项
}
//导航类别
if
(
$pre
.
hasClass
(
'new'
))
{
navType
=
'newest'
;
...
...
@@ -8868,7 +8871,6 @@ function search(opt) {
//不需要重新加载并且数据请求结束
return
;
}
console
.
log
(
page
)
$
.
extend
(
setting
,
defaultOpt
,
{
type
:
navType
,
order
:
nav
.
order
,
...
...
@@ -9109,7 +9111,7 @@ $listNav.on('touchstart', 'li', function(e) {
}).
on
(
'touchend touchcancel'
,
function
()
{
$listNav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
myScroll
.
refresh
();
});
});
$posList
.
on
(
'touchstart'
,
'li'
,
function
(
e
)
{
$
(
this
).
addClass
(
'bytouch'
);
...
...
static/dist/myohobuy/1.3.17/index.css
View file @
db617e0
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.3.17/index.js
View file @
db617e0
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment