|
@@ -12,7 +12,7 @@ class Phone {
|
|
|
isIos() {
|
|
|
console.log("成功进入isIos这个方法")
|
|
|
var u = navigator.userAgent;
|
|
|
- if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
|
|
|
+ if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1 ||(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|