Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wangqing
9 years ago
Commit
32b5595e6c6ba598db67fd03a126587d3392be27
1 parent
660fccf8
修改js
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
15 deletions
template/www.yohobuy.com/partials/layout/use.phtml
web-static/index.js
web-static/js/common.js
web-static/js/header.js
web-static/js/simple-header.js
template/www.yohobuy.com/partials/layout/use.phtml
View file @
32b5595
<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>
...
...
web-static/index.js
View file @
32b5595
var
webYohobuy
;
require
(
'./js/common'
);
require
(
'./js/header'
);
require
(
'./js/simple-header'
);
require
(
'./js/product/entry'
);
require
(
'./js/home/entry'
);
require
(
'./js/passport/entry'
);
...
...
web-static/js/common.js
View file @
32b5595
...
...
@@ -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
...
...
web-static/js/header.js
View file @
32b5595
...
...
@@ -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
...
...
web-static/js/simple-header.js
View file @
32b5595
...
...
@@ -94,8 +94,7 @@ function actionLoginInfo() {
* 初始化函数
* @return {[type]} [description]
*/
function
init
()
{
exports
.
init
=
function
()
{
actionLoginInfo
();
//获取登录信息
}
init
();
\ No newline at end of file
...
...
Please
register
or
login
to post a comment