Authored by 陈峰

Merge branch 'hotfix/mars-issue' into 'master'

fix mars add carts



See merge request !1754
{
"name": "yohobuywap-node",
"version": "6.9.2-14",
"version": "6.9.2-15",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -4,7 +4,6 @@
const qs = require('yoho-qs');
const cookie = require('yoho-cookie');
const dialog = require('js/plugin/dialog');
const yoho = require('js/yoho-app');
const u = navigator.userAgent;
const isFromYOHO = /m\.yohobuy\.com/i.test(document.referrer);
... ... @@ -87,7 +86,7 @@ const getIOSVersion = () => {
};
const ua = navigator.userAgent;
const isOriginalChrome = /chrome\/[\d.]+ Mobile Safari\/[\d.]+/i.test(ua) &&
yoho.isAndroid &&
isAndroid &&
ua.indexOf('Version') < 0;
... ... @@ -148,7 +147,7 @@ const callA = (url, noFall) => {
export const toAppPage = (appUrl, noFall) => {
if (isOriginalChrome) {
callA(appUrl, noFall);
} else if (yoho.isiOS) {
} else if (isiOS) {
if (getIOSVersion() < 9) {
callIframe(appUrl, noFall);
} else {
... ...