Authored by 毕凯

Merge remote-tracking branch 'origin/master' into feature/shareBuy3

@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 a.async = 1; 12 a.async = 1;
13 a.src = j; 13 a.src = j;
14 m.parentNode.insertBefore(a, m); 14 m.parentNode.insertBefore(a, m);
15 - }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.4.1/yas.js', '_yas')); 15 + }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.4.2/yas.js', '_yas'));
16 16
17 var _hmt = _hmt || []; 17 var _hmt = _hmt || [];
18 18
@@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
56 uid = uid === 0 ? '' : uid; 56 uid = uid === 0 ? '' : uid;
57 window._ozuid = uid; // 暴露ozuid 57 window._ozuid = uid; // 暴露ozuid
58 if (window._yas) { 58 if (window._yas) {
59 - window._yas(1 * new Date(), '2.4.1', 'yohobuy_m', uid, '', ''); 59 + window._yas(1 * new Date(), '2.4.2', 'yohobuy_m', uid, '', '');
60 } 60 }
61 61
62 setTimeout(function() { 62 setTimeout(function() {
1 { 1 {
2 "name": "m-yohobuy-node", 2 "name": "m-yohobuy-node",
3 - "version": "5.9.10", 3 + "version": "5.9.11",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -256,28 +256,30 @@ $.extend({ @@ -256,28 +256,30 @@ $.extend({
256 5. yas的cookies 种在 .yohobuy.com 根域下 256 5. yas的cookies 种在 .yohobuy.com 根域下
257 257
258 周奇琪 258 周奇琪
259 - */  
260 -  
261 - let isWechat = /micromessenger/i.test(navigator.userAgent || '');  
262 - let mktc = queryString().mkt_code || queryString().union_type || '';  
263 259
264 - function saveMktCode() {  
265 - if (mktc) {  
266 - setCookie('mkt_code', mktc, {  
267 - path: '/',  
268 - domain: 'yohobuy.com',  
269 - expires: 7 // 7天  
270 - });  
271 - }  
272 - } 260 + mkt_code 控制移动到 YAS 2017.07.13
  261 + */
273 262
274 - if (isWechat) {  
275 - saveMktCode();  
276 - } else {  
277 - if (!cookie('mkt_code') || mktc === '100000000000349') {  
278 - saveMktCode();  
279 - }  
280 - } 263 + // let isWechat = /micromessenger/i.test(navigator.userAgent || '');
  264 + // let mktc = queryString().mkt_code || queryString().union_type || '';
  265 +
  266 + // function saveMktCode() {
  267 + // if (mktc) {
  268 + // setCookie('mkt_code', mktc, {
  269 + // path: '/',
  270 + // domain: 'yohobuy.com',
  271 + // expires: 7 // 7天
  272 + // });
  273 + // }
  274 + // }
  275 +
  276 + // if (isWechat) {
  277 + // saveMktCode();
  278 + // } else {
  279 + // if (!cookie('mkt_code') || mktc === '100000000000349') {
  280 + // saveMktCode();
  281 + // }
  282 + // }
281 283
282 // 尝试打开 APP 284 // 尝试打开 APP
283 require('./common/open-app'); 285 require('./common/open-app');