|
@@ -288,6 +288,21 @@ handlebars.registerHelper('timestamp', function() { |
|
@@ -288,6 +288,21 @@ handlebars.registerHelper('timestamp', function() { |
288
|
return new Date().getTime();
|
288
|
return new Date().getTime();
|
289
|
});
|
289
|
});
|
290
|
/**
|
290
|
/**
|
|
|
291
|
+ * 头像
|
|
|
292
|
+ * @param {[type]} v1 [description]
|
|
|
293
|
+ * @param {[type]} options) { if (v1 [description]
|
|
|
294
|
+ * @return {[type]} [description]
|
|
|
295
|
+ */
|
|
|
296
|
+handlebars.registerHelper('headerimg', function(headerimg) {
|
|
|
297
|
+
|
|
|
298
|
+ if(headerimg ===''){
|
|
|
299
|
+ return 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100';
|
|
|
300
|
+ }else{
|
|
|
301
|
+ return headerimg;
|
|
|
302
|
+ }
|
|
|
303
|
+
|
|
|
304
|
+});
|
|
|
305
|
+/**
|
291
|
* 判断等级为3的helper
|
306
|
* 判断等级为3的helper
|
292
|
* @param {[type]} v1 [description]
|
307
|
* @param {[type]} v1 [description]
|
293
|
* @param {[type]} options) { if (v1 [description]
|
308
|
* @param {[type]} options) { if (v1 [description]
|
|
@@ -1207,7 +1222,7 @@ function actionGetBannerAndNotice() { |
|
@@ -1207,7 +1222,7 @@ function actionGetBannerAndNotice() { |
1207
|
if (url.indexOf('kids') !== -1) {
|
1222
|
if (url.indexOf('kids') !== -1) {
|
1208
|
code = bannerMap[INDEXKIDS];
|
1223
|
code = bannerMap[INDEXKIDS];
|
1209
|
}
|
1224
|
}
|
1210
|
- if (url.indexOf('woman') !== -1) {
|
1225
|
+ if (url.indexOf('woman') !== -1 || url.indexOf('girls') !== -1) {
|
1211
|
code = bannerMap[INDEXWOMAN];
|
1226
|
code = bannerMap[INDEXWOMAN];
|
1212
|
}
|
1227
|
}
|
1213
|
if (url.indexOf('lifestyle') !== -1) {
|
1228
|
if (url.indexOf('lifestyle') !== -1) {
|