Authored by linlong

Merge branch 'master' into fix_0206

@@ -143,6 +143,7 @@ @@ -143,6 +143,7 @@
143 var url = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}'; 143 var url = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}';
144 var u = navigator.userAgent.toLowerCase(); 144 var u = navigator.userAgent.toLowerCase();
145 var isiOS = u.indexOf('os') > -1 || u.indexOf('iphone') > -1 || u.indexOf('mac') > -1 || u.indexOf('ipad') > -1; 145 var isiOS = u.indexOf('os') > -1 || u.indexOf('iphone') > -1 || u.indexOf('mac') > -1 || u.indexOf('ipad') > -1;
  146 + var isWechat = /micromessenger/i.test(navigator.userAgent || '');
146 var version, type, appid, td, params; 147 var version, type, appid, td, params;
147 148
148 params = queryString(); 149 params = queryString();
@@ -236,7 +237,7 @@ @@ -236,7 +237,7 @@
236 function downloadApp() { 237 function downloadApp() {
237 var url; 238 var url;
238 var channel = window.cookie('_Channel'); 239 var channel = window.cookie('_Channel');
239 - var isWechat = /micromessenger/i.test(navigator.userAgent || ''); 240 +
240 if(isWechat){ 241 if(isWechat){
241 url = 'http://union.yoho.cn/union/downapp.html'; 242 url = 'http://union.yoho.cn/union/downapp.html';
242 } 243 }