Authored by wangqing

修改js

<script>
seajs.use('js/common');
</script>
{{!-- 正常头部 --}}
{{#headerdata}}
<script>
seajs.use('js/header',function(header){
header.init();
});
</script>
{{/headerdata}}
{{!-- 简单头部 --}}
{{#simpleHeader}}
<script>
seajs.use('js/simple-header',function(simpleheader){
simpleheader.init();
});
</script>
{{/simpleHeader}}
{{!-- 首页 --}}
{{#if boysHomePage}}
<script>
... ...
var webYohobuy;
require('./js/common');
require('./js/header');
require('./js/simple-header');
require('./js/product/entry');
require('./js/home/entry');
require('./js/passport/entry');
... ...
... ... @@ -5,10 +5,6 @@
*/
var $ = require('yoho.jquery');
require('./footer');
function cookie(name) {
var cookies = document.cookie,
... ... @@ -116,7 +112,7 @@ function getShoppingKey() {
uid = uid === 0 ? '' : uid;
window._ozuid = uid;//暴露ozuid
window._ozuid = uid; //暴露ozuid
if (window._yas) {
window._yas(1 * new Date(), '1.0.14', 'yohobuy_web', uid, '', '');
... ... @@ -132,9 +128,5 @@ window.getUser = getUser;
window.getUid = getUid;
window.getShoppingKey = getShoppingKey;
if($('.simple-header').hasClass('simple-header')){
require('./simple-header');
}else{
require('./header');
}
require('./footer');
\ No newline at end of file
... ...
... ... @@ -1509,7 +1509,7 @@ function actionLoginInfo() {
* 初始化函数
* @return {[type]} [description]
*/
function init() {
exports.init = function() {
actionNav(); //处理导航
actionTipPic(); //鼠标移入后查询
actionExeTemplate(); //处理模板
... ... @@ -1535,4 +1535,3 @@ function init() {
actionAddKeyWords(); //增加关键字
}
init();
\ No newline at end of file
... ...
... ... @@ -94,8 +94,7 @@ function actionLoginInfo() {
* 初始化函数
* @return {[type]} [description]
*/
function init() {
exports.init = function() {
actionLoginInfo(); //获取登录信息
}
init();
\ No newline at end of file
... ...