提交 08b64d74 authored 作者: 王鹏飞's avatar 王鹏飞

Merge branch 'ciis' of https://gitlab.ezijing.com/ezijing/new-project into ciis

......@@ -24,7 +24,7 @@ export default {
const height = document.documentElement
? document.documentElement.clientHeight
: window.innerHeight
this.heightdy = height
this.heightdy = this.isTerminal() === 'Mobile' ? '700' : height
},
watchScroll() {
this.scrollTop =
......@@ -47,6 +47,12 @@ export default {
if (this.dyScroll) {
this.dyScroll(present, this.scrollTop)
}
},
isTerminal() {
const detectDeviceType = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
? 'Mobile'
: 'Desktop'
return detectDeviceType
}
},
created() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论