Authored by xuqi

set channel cookie

... ... @@ -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
... ...
... ... @@ -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}}
... ...