Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -273,7 +273,7 @@ @@ -273,7 +273,7 @@
273 \{\{/need_pay_gifts\}\} 273 \{\{/need_pay_gifts\}\}
274 </ul> 274 </ul>
275 <ul class="activity-list"> 275 <ul class="activity-list">
276 - \{{#equalone has_promotion\}\} 276 + \{{#if has_promotion\}\}
277 <li class="activity-item"> 277 <li class="activity-item">
278 <span class="activity-name">活动</span> 278 <span class="activity-name">活动</span>
279 <h3 class="activity-content"> 279 <h3 class="activity-content">
@@ -286,13 +286,13 @@ @@ -286,13 +286,13 @@
286 \{\{/equalone\}\} 286 \{\{/equalone\}\}
287 </h3> 287 </h3>
288 </li> 288 </li>
289 - \{\{/equalone\}\}  
290 - \{\{#equalone fit_free_shipping \}\} 289 + \{\{/if\}\}
  290 + \{\{#if fit_free_shipping \}\}
291 <li class="activity-item"> 291 <li class="activity-item">
292 <span class="activity-name">免运费</span> 292 <span class="activity-name">免运费</span>
293 <h3 class="activity-content">全场满 499免运费</h3> 293 <h3 class="activity-content">全场满 499免运费</h3>
294 </li> 294 </li>
295 - \{\{/equalone\}\} 295 + \{\{/if\}\}
296 </ul> 296 </ul>
297 </div> 297 </div>
298 <div class="gobuy-notempty-footer"> 298 <div class="gobuy-notempty-footer">
@@ -317,7 +317,7 @@ @@ -317,7 +317,7 @@
317 <span class="has">\{\{vip.curYearCost\}\}</span> 317 <span class="has">\{\{vip.curYearCost\}\}</span>
318 <span class="total">\{\{vip.nextVipInfo.needCost\}\}</span> 318 <span class="total">\{\{vip.nextVipInfo.needCost\}\}</span>
319 </div> 319 </div>
320 - <p class="\{\{#equalzero it.vip.curYearCostPer\}\}integrate\{\{/equalzero\}\}" style="width: \{\{vip.curYearCostPer\}\}%;"></p> 320 + <p class="\{\{#unless vip.curYearCostPer\}\}integrate\{\{/unless\}\}" style="width: \{\{vip.curYearCostPer\}\}%;"></p>
321 </div> 321 </div>
322 <span class="cardcate float-left">\{\{vip.nextVipInfo.title\}\}</span> 322 <span class="cardcate float-left">\{\{vip.nextVipInfo.title\}\}</span>
323 </div> 323 </div>
@@ -360,5 +360,6 @@ @@ -360,5 +360,6 @@
360 </div> 360 </div>
361 </script> 361 </script>
362 </div> 362 </div>
  363 +<input id="api-domain" type="hidden" value="{{apiDomain}}">
363 {{/headerdata}} 364 {{/headerdata}}
364 365
@@ -8,7 +8,7 @@ var handlebars = require('yoho.handlebars'); @@ -8,7 +8,7 @@ var handlebars = require('yoho.handlebars');
8 var json2 = require('json2'); 8 var json2 = require('json2');
9 var vipInfoCombine = null; //用户信息编译模板 9 var vipInfoCombine = null; //用户信息编译模板
10 var loginInfoCombine = null; //登录信息编译模板 10 var loginInfoCombine = null; //登录信息编译模板
11 -var apiDomain = 'http://test.open.yohobuy.com/'; //获取数据的地址http://api.open.yohobuy.com 11 +var apiDomain = $('#api-domain').val(); //获取数据的地址
12 var cartTpl = ''; //购物车模板 12 var cartTpl = ''; //购物车模板
13 /** 13 /**
14 * 搜寻的时候过滤非法字符(+-/:等非法字符单独出现) 14 * 搜寻的时候过滤非法字符(+-/:等非法字符单独出现)
@@ -65,6 +65,8 @@ var bannerMap = { @@ -65,6 +65,8 @@ var bannerMap = {
65 }; 65 };
66 var cookieMap = {}; 66 var cookieMap = {};
67 67
  68 +$('#api-domain').remove(); //删除信息表单
  69 +
68 function getSource(column, postition, event) { 70 function getSource(column, postition, event) {
69 try { 71 try {
70 dataLayer.push({ 72 dataLayer.push({