Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
wangqing
9 years ago
Commit
8eefd3c1291aa247692c0da0eaf5dcb9da1744d0
1 parent
27eca359
增加默认头像
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
template/www.yohobuy.com/partials/layout/page-header.phtml
web-static/js/header.js
template/www.yohobuy.com/partials/layout/page-header.phtml
View file @
8eefd3c
...
...
@@ -304,9 +304,7 @@
</script>
<script
type=
"text/html"
id=
"tmpl-my-login-new"
>
<div
class=
"myyoho-info-header clearfix"
>
\
{
\{#
head_ico
\
}
\}
<div
class=
"myyoho-photo"
><img
src=
""
alt=
""
data-url
=
"\{\{it.head_ico\}\}"
></div>
\
{
\{/
head_ico\
}
\}
<div
class=
"myyoho-photo"
><img
src=
"\{\{headimg it.head_ico\}\}"
alt=
""
data-url
=
""
></div>
<h
3
class=
"user-email"
><a
href=
"http://www.yohobuy.com/home?t=\{\{random\}\}"
>\
{
\{profile_name\
}
\}</a></h
3
>
<h
3
class=
"user-level"
>
VIP:
...
...
web-static/js/header.js
View file @
8eefd3c
...
...
@@ -288,6 +288,21 @@ handlebars.registerHelper('timestamp', function() {
return
new
Date
().
getTime
();
});
/**
* 头像
* @param {[type]} v1 [description]
* @param {[type]} options) { if (v1 [description]
* @return {[type]} [description]
*/
handlebars
.
registerHelper
(
'headerimg'
,
function
(
headerimg
)
{
if
(
headerimg
===
''
){
return
'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100'
;
}
else
{
return
headerimg
;
}
});
/**
* 判断等级为3的helper
* @param {[type]} v1 [description]
* @param {[type]} options) { if (v1 [description]
...
...
@@ -1207,7 +1222,7 @@ function actionGetBannerAndNotice() {
if
(
url
.
indexOf
(
'kids'
)
!==
-
1
)
{
code
=
bannerMap
[
INDEXKIDS
];
}
if
(
url
.
indexOf
(
'woman'
)
!==
-
1
)
{
if
(
url
.
indexOf
(
'woman'
)
!==
-
1
||
url
.
indexOf
(
'girls'
)
!==
-
1
)
{
code
=
bannerMap
[
INDEXWOMAN
];
}
if
(
url
.
indexOf
(
'lifestyle'
)
!==
-
1
)
{
...
...
Please
register
or
login
to post a comment