Authored by 毕凯

Merge remote-tracking branch 'origin/master' into release/6.0.2

@@ -293,17 +293,15 @@ module.exports = class extends global.yoho.BaseModel { @@ -293,17 +293,15 @@ module.exports = class extends global.yoho.BaseModel {
293 293
294 let perOrder = this._getOrderStatus(value); 294 let perOrder = this._getOrderStatus(value);
295 295
296 - /* 是否是虚拟商品 */  
297 - let isTickets = this.order.virtual_type && parseInt(this.order.virtual_type, 10) === 3;  
298 296
299 Object.assign(perOrder, { 297 Object.assign(perOrder, {
300 orderNum: value.order_code, 298 orderNum: value.order_code,
301 orderStatus: value.status_str, 299 orderStatus: value.status_str,
302 sumCost: value.amount, 300 sumCost: value.amount,
303 - goods: this._formatOrderGoods(value.order_goods, count, false, isTickets), 301 + goods: this._formatOrderGoods(value.order_goods, count, false),
304 detailUrl: helpers.urlFormat('/home/orderdetail', {order_code: value.order_code}), 302 detailUrl: helpers.urlFormat('/home/orderdetail', {order_code: value.order_code}),
305 count: value.buy_total, 303 count: value.buy_total,
306 - isVirtual: isTickets, 304 + isVirtual: _.get(value, 'order_goods[0].goods_type'),
307 orderTitle: value.order_title 305 orderTitle: value.order_title
308 }); 306 });
309 307
@@ -112,7 +112,7 @@ class Auth { @@ -112,7 +112,7 @@ class Auth {
112 }), '&'); 112 }), '&');
113 113
114 return { 114 return {
115 - refer: `${backurl.protocol}//${backurl.host}?${queryStr}` 115 + refer: `${backurl.protocol}//${backurl.host}${backurl.pathname}?${queryStr}`
116 }; 116 };
117 } 117 }
118 res.clearCookie('third_type', { 118 res.clearCookie('third_type', {
@@ -74,7 +74,11 @@ @@ -74,7 +74,11 @@
74 })(); 74 })();
75 75
76 {{#if @root.isLogin}} 76 {{#if @root.isLogin}}
  77 + {{#if @root.isApp}}
  78 + _hmt.push(['_setCustomVar', 1, 'loginFromApp', true, 2]);
  79 + {{^}}
77 _hmt.push(['_setCustomVar', 1, 'login', true, 2]); 80 _hmt.push(['_setCustomVar', 1, 'login', true, 2]);
  81 + {{/if}}
78 {{/if}} 82 {{/if}}
79 }, 1000); 83 }, 1000);
80 }()); 84 }());