|
|
@@ -28,9 +28,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
console.log('x_app:' +xAPP)
|
|
|
- if (xAPP.toLowerCase() === 'ios') { //判断iPhone|iPad|iPod|iOS APP
|
|
|
+ if (xAPP.toLowerCase().indexOf('ios') !== -1) { //判断iPhone|iPad|iPod|iOS APP
|
|
|
this.deviceType = 'ios';
|
|
|
- } else if (xAPP.toLowerCase() === 'android') { //判断Android app
|
|
|
+ } else if (xAPP.toLowerCase().indexOf('android') !== -1) { //判断Android app
|
|
|
this.deviceType = 'android';
|
|
|
} else { // pc OR H5 todo 判断UA,精准识别是H5还是PC
|
|
|
this.deviceType = 'pc';
|