提交 80493c37 authored 作者: matian's avatar matian

修改右侧弹窗效果

上级 3322ec75
......@@ -53,8 +53,9 @@ 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,
isShowBtn: true,
tabBtnTarget: '',
projectName: '应用心理学硕士',
sendCode: '',
......@@ -66,19 +67,29 @@ export default {
}
}
},
mounted() {
window.addEventListener('scroll', this.scrollHandle)
},
watch: {
top(v) {
if (v > 500) {
this.tabBtnActive = false
}
if (v === 0) {
this.isOver = true
}
}
},
methods: {
scrollHandle(e) {
this.top = e.srcElement.scrollingElement.scrollTop // 获取页面滚动高度
},
handleClose() {
console.log('111')
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论