Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
7 years ago
Commit
4de3b629c3c054b80cde267a4996df4f5e2ec69f
1 parent
e08f76ce
change nav
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
public/js/product/detail.page.js
public/js/product/detail/change-nav.js
public/js/product/detail.page.js
View file @
4de3b62
...
...
@@ -19,6 +19,7 @@ var setPager = require('./detail/pager');
var
notify
=
require
(
'./detail/notify'
);
var
favorite
=
require
(
'./detail/brand-fav'
);
var
intro
=
require
(
'./detail/intro'
);
var
changeNav
=
require
(
'./detail/change-nav'
);
var
bindEvent
=
$
.
Callbacks
();
// eslint-disable-line
var
cartEvent
=
new
EventProxy
();
...
...
@@ -2009,6 +2010,9 @@ $(function() {
shownum
:
5
,
isCircle
:
true
});
// 修改导航
changeNav
();
});
yasAtBottom
.
yasBottom
();
...
...
public/js/product/detail/change-nav.js
0 → 100644
View file @
4de3b62
var
$
=
require
(
'yoho-jquery'
);
module
.
exports
=
function
()
{
var
_channel
=
{
// eslint-disable-line
boys
:
{
url
:
'//www.yohobuy.com'
,
name
:
'BOYS首页'
},
girls
:
{
url
:
'//new.yohobuy.com/woman'
,
name
:
'GIRLS首页'
},
kids
:
{
url
:
'//new.yohobuy.com/kids'
,
name
:
'KIDS首页'
},
lifestyle
:
{
url
:
'//new.yohobuy.com/lifestyle'
,
name
:
'LIFESTYLE首页'
}
};
var
current
=
_channel
[
window
.
cookie
(
'_Channel'
)]
||
_channel
.
boys
;
// eslint-disable-line
$
(
'.path-nav > a'
).
first
()
.
attr
(
'href'
,
current
.
url
)
.
text
(
current
.
name
);
};
...
...
Please
register
or
login
to post a comment