Authored by wangqing

增加默认头像

@@ -304,9 +304,7 @@ @@ -304,9 +304,7 @@
304 </script> 304 </script>
305 <script type="text/html" id="tmpl-my-login-new"> 305 <script type="text/html" id="tmpl-my-login-new">
306 <div class="myyoho-info-header clearfix"> 306 <div class="myyoho-info-header clearfix">
307 - \{\{# head_ico \}\}  
308 - <div class="myyoho-photo" ><img src="" alt="" data-url ="\{\{it.head_ico\}\}"></div>  
309 - \{\{/ head_ico\}\} 307 + <div class="myyoho-photo" ><img src="\{\{headimg it.head_ico\}\}" alt="" data-url =""></div>
310 <h3 class="user-email"><a href="http://www.yohobuy.com/home?t=\{\{random\}\}">\{\{profile_name\}\}</a></h3> 308 <h3 class="user-email"><a href="http://www.yohobuy.com/home?t=\{\{random\}\}">\{\{profile_name\}\}</a></h3>
311 <h3 class="user-level"> 309 <h3 class="user-level">
312 VIP: 310 VIP:
@@ -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) {