...
|
...
|
@@ -45,7 +45,7 @@ var appInfo = { |
|
|
apf: window.location.search.indexOf('app_version=') >= 0 ? 'Y' : 'N'
|
|
|
};
|
|
|
|
|
|
var isApp = navigator.userAgent.indexOf('app_version=') > -1 || window.location.search.indexOf('app_version=') > -1 || !!window.yohoInterface;
|
|
|
var isApp = /yohobuy/i.test(navigator.userAgent) || /app_version=/i.test(window.location.search) || !!window.yohoInterface;
|
|
|
var isMobile = /(iPhone|Android|iPad|iPod|iOS)/i.test(navigator.userAgent);
|
|
|
var isWechat = /micromessenger/i.test(navigator.userAgent);
|
|
|
var ismyhbuy = /m\.yohobuy\.com/i.test(document.domain);
|
...
|
...
|
@@ -374,7 +374,9 @@ function setUnionType() { |
|
|
for (var i = 0; i < aDom.length; i++) {
|
|
|
var href = aDom[i].getAttribute('href') || '';
|
|
|
|
|
|
if (href.indexOf('union.yoho.cn/union/app-downloads.html') > -1) {
|
|
|
if (href.indexOf('union.yoho.cn/union/downapp.html') > -1
|
|
|
|| href.indexOf('union.yoho.cn/union/app-downloads.html') > -1
|
|
|
|| href.indexOf('union.yoho.cn/union/ClickUnionRest/addUnion4Jump') > -1) {
|
|
|
if (mktc && href.indexOf('union_type') === -1) {
|
|
|
href += '?union_type=' + mktc;
|
|
|
aDom[i].setAttribute('href', href);
|
...
|
...
|
|