Authored by ccbikai(👎🏻🍜)

Merge branch 'feature/openapp' into gray

... ... @@ -8,7 +8,7 @@ const getAppPath = () => {
let ct = qs.mkt_code || qs.union_type;
if (ct) {
appPath = appPath.replace('goapp?', 'goapp?ct=' + ct + '&')
appPath = appPath.replace('goapp?', 'goapp?ct=' + ct + '&');
}
return appPath;
... ... @@ -16,9 +16,9 @@ const getAppPath = () => {
const u = navigator.userAgent;
const isFromYOHO = /m\.yohobuy\.com/i.test(document.referrer);
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // ios终端
const isiOS = /(iPhone|iPad|iPod|iOS)/i.test(u); // ios终端
// const isAndroid = u.indexOf('Android') > -1; // android终端
// const isAndroid = /Android/i.test(u); // android终端
// const iOSVersion = parseInt(u.match(/OS (\d+)_(\d+)_?(\d+)?/i)[1], 10);
... ...