...
|
...
|
@@ -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) {
|
...
|
...
|
|