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
xuqi
9 years ago
Commit
4fd478d24be0634741f78d568e6e2be173bdd5f7
1 parent
04449506
set channel cookie
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
static/js/home/home.js
template/m.yohobuy.com/partials/layout/use.phtml
static/js/home/home.js
View file @
4fd478d
...
...
@@ -211,3 +211,8 @@ setTimeout(tsAnimate, 3000);
$
(
'#yoho-footer'
).
css
({
'margin-bottom'
:
'2.5rem'
});
//set cookie
exports
.
set
=
function
(
c
)
{
window
.
setCookie
(
'_Channel'
,
c
);
};
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
4fd478d
...
...
@@ -96,25 +96,33 @@
{{!-- 首页 --}}
{{#if grilsHomePage}}
<script>
seajs.use('js/home/home');
seajs.use('js/home/home', function(h) {
h.set('girls');
});
seajs.use('js/index/footer');
</script>
{{/if}}
{{#if boysHomePage}}
<script>
seajs.use('js/home/home');
seajs.use('js/home/home', function(h) {
h.set('boys');
});
seajs.use('js/index/footer');
</script>
{{/if}}
{{#if kidsHomePage}}
<script>
seajs.use('js/home/home');
seajs.use('js/home/home', function(h) {
h.set('kids');
});
seajs.use('js/index/footer');
</script>
{{/if}}
{{#if lifestyleHomePage}}
<script>
seajs.use('js/home/home');
seajs.use('js/home/home', function(h) {
h.set('lifestyle');
});
seajs.use('js/index/footer');
</script>
{{/if}}
...
...
Please
register
or
login
to post a comment