clay commit : 小修改
This commit is contained in:
@@ -66,13 +66,13 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clickTo(link) {
|
clickTo(link) {
|
||||||
//console.log(link)
|
// let userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
|
||||||
if (/android/i.test(navigator.userAgent)) {
|
window.location.href = link
|
||||||
window.open(link, "_blank")
|
// if (userAgent.indexOf("Safari") > -1) {
|
||||||
}
|
// window.location.href = link
|
||||||
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
// } else {
|
||||||
window.location.href = window.location.origin + link;//当前标签页
|
// window.open(link, "_blank")
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
constructor() {
|
constructor() {
|
||||||
this.bannerWrap = document.getElementsByClassName("banner-card")[0];
|
this.bannerWrap = document.getElementsByClassName("banner-card")[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user