|
|
@ -671,6 +671,10 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
getShortAppinfo(data => { |
|
|
|
getShortAppinfo(data => { |
|
|
|
if (data.code === 1000) { |
|
|
|
if (data.code === 1000) { |
|
|
|
|
|
|
|
if (data.redirect && data.data) { |
|
|
|
|
|
|
|
window.location.href = data.data; |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
if (data.ad && data.ad.ad_uri) { |
|
|
|
if (data.ad && data.ad.ad_uri) { |
|
|
|
this.ad_info = data.ad; |
|
|
|
this.ad_info = data.ad; |
|
|
|
} |
|
|
|
} |
|
|
@ -804,7 +808,7 @@ export default { |
|
|
|
trident: u.indexOf('Trident') > -1, //IE内核 |
|
|
|
trident: u.indexOf('Trident') > -1, //IE内核 |
|
|
|
presto: u.indexOf('Presto') > -1, //opera内核 |
|
|
|
presto: u.indexOf('Presto') > -1, //opera内核 |
|
|
|
webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 |
|
|
|
webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 |
|
|
|
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核 |
|
|
|
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') === -1, //火狐内核 |
|
|
|
mobile: !!u.match(/AppleWebKit.*Mobile/i) || !!u.match(/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/), //是否为移动终端 |
|
|
|
mobile: !!u.match(/AppleWebKit.*Mobile/i) || !!u.match(/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/), //是否为移动终端 |
|
|
|
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 |
|
|
|
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 |
|
|
|
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 |
|
|
|
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 |
|
|
|