Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
uedxwg
9 years ago
Commit
3115fa83bd94b3e04724775fe7a4de0b83455e54
1 parent
ad82fbe4
hotfix
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
18 deletions
static/js/category/index.js
static/js/guang/home.js
static/js/guang/plus-star/list.js
static/js/product/list.js
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/js/category/index.js
View file @
3115fa8
...
...
@@ -4,8 +4,7 @@
* @date: 2015/10/14
*/
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
);
var
$
=
require
(
'jquery'
);
var
$nav
=
$
(
'.category-nav'
),
$categoryContainer
=
$
(
'.category-container'
),
...
...
@@ -39,8 +38,7 @@ $('.category-container').bind('contextmenu', function(e) {
return
false
;
});
navHammer
=
new
Hammer
(
$nav
[
0
]);
navHammer
.
on
(
'tap pressup'
,
function
(
e
)
{
$nav
.
on
(
'touchend touchcancel'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
),
index
=
$this
.
index
();
...
...
static/js/guang/home.js
View file @
3115fa8
...
...
@@ -5,7 +5,6 @@
*/
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
),
Swiper
=
require
(
'yoho.iswiper'
);
var
info
=
require
(
'./info'
),
...
...
@@ -59,8 +58,7 @@ info.initInfosEvt($infoList);
$nav
.
bind
(
'contextmenu'
,
function
(
e
)
{
return
false
;
});
navHammer
=
new
Hammer
(
$nav
[
0
]);
navHammer
.
on
(
'tap pressup'
,
function
(
e
)
{
$nav
.
on
(
'touchend touchcancel'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'.guang-nav-item'
),
$content
,
...
...
static/js/guang/plus-star/list.js
View file @
3115fa8
...
...
@@ -5,7 +5,6 @@
*/
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
Swiper
=
require
(
'yoho.iswiper'
);
...
...
@@ -23,8 +22,7 @@ mySwiper = new Swiper('.swiper-container', {
$
(
'#nav-tab'
).
bind
(
'contextmenu'
,
function
(
e
)
{
return
false
;
});
navHammer
=
new
Hammer
(
document
.
getElementById
(
'nav-tab'
));
navHammer
.
on
(
'tap pressup'
,
function
(
e
)
{
$
(
'#nav-tab'
).
on
(
'touchend touchcancel'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
);
if
(
$this
.
hasClass
(
'focus'
))
{
...
...
static/js/product/list.js
View file @
3115fa8
...
...
@@ -285,8 +285,8 @@ writeSearch.bindWirteLocal($('#search-form'));
$listNav
.
bind
(
'contextmenu'
,
function
(
e
)
{
return
false
;
});
navHammer
=
new
Hammer
(
$listNav
[
0
]);
navHammer
.
on
(
'tap pressup'
,
function
(
e
)
{
$listNav
.
on
(
'touchend touchcancel'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
),
nav
,
navType
,
...
...
static/js/product/newsale/discount.js
View file @
3115fa8
...
...
@@ -266,8 +266,8 @@ lazyLoad($('.lazy'));
$listNav
.
bind
(
'contextmenu'
,
function
(
e
)
{
return
false
;
});
navHammer
=
new
Hammer
(
$listNav
[
0
]);
navHammer
.
on
(
'tap pressup'
,
function
(
e
)
{
$listNav
.
on
(
'touchend touchcancel'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
),
nav
,
navType
,
...
...
static/js/product/newsale/newarrival.js
View file @
3115fa8
...
...
@@ -6,7 +6,6 @@
var
$
=
require
(
'jquery'
),
Swiper
=
require
(
'yoho.iswiper'
),
Hammer
=
require
(
'yoho.hammer'
),
lazyLoad
=
require
(
'yoho.lazyload'
);
var
swiper
,
...
...
@@ -295,8 +294,8 @@ $listNav.bind('contextmenu', function(e) {
//3.筛选无active时点击展开筛选面板
//4.筛选有active时点击隐藏筛选面板并恢复点击筛选前active项的active状态
//5.当前active为筛选并且点击其他项时,隐藏筛选面板
navHammer
=
new
Hammer
(
$listNav
[
0
]);
navHammer
.
on
(
'tap pressup'
,
function
(
e
)
{
// navHammer = new Hammer($listNav[0]);
$listNav
.
on
(
'touchend touchcancel'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
),
nav
,
navType
,
...
...
@@ -373,7 +372,7 @@ navHammer.on('tap pressup', function(e) {
search
();
}
}
e
.
s
rcEvent
.
s
topPropagation
();
e
.
stopPropagation
();
});
$
(
window
).
scroll
(
function
()
{
...
...
Please
register
or
login
to post a comment