提交 7d69bb34 authored 作者: matian's avatar matian

修改右侧弹窗展示效果

上级 fff0a4d7
......@@ -71,6 +71,7 @@ const MOBILE_REG = /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35
export default {
data() {
return {
top: 0,
tabBtnActive: true,
isShowBtn: false,
tabBtnTarget: '',
......@@ -92,18 +93,30 @@ export default {
]
}
},
mounted() {
window.addEventListener('scroll', this.scrollHandle)
},
watch: {
top(v) {
if (v > 500) {
this.tabBtnActive = false
this.isShowBtn = true
}
if (v === 0) {
this.isOver = true
}
}
},
methods: {
scrollHandle(e) {
this.top = e.srcElement.scrollingElement.scrollTop // 获取页面滚动高度
},
handleClose() {
this.tabBtnActive = !this.tabBtnActive
this.tabBtnActive = false
this.isShowBtn = true
},
handleMsOver() {
this.tabBtnActive = !this.tabBtnActive
this.isShowBtn = false
// if (type !== '') {
// this.tabBtnTarget = type
// }
this.tabBtnActive = true
},
submitEnroll() {
let flag = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论