修复下面图标连续点击不显示bug

main
liujianan 2023-11-30 11:51:15 +08:00
parent a00777acfd
commit 229b261a3f
1 changed files with 9 additions and 1 deletions

View File

@ -1031,9 +1031,10 @@ export default {
retryTimes: 0, retryTimes: 0,
// mqtt // mqtt
onePerLocArr: [], onePerLocArr: [],
iniOne: 0 iniOne: 0,
/* 一公司人员定位 结束*/ /* 一公司人员定位 结束*/
bottomClickDisable: false
} }
}, },
mounted() { mounted() {
@ -1578,6 +1579,7 @@ export default {
this.clearAllBottomOptionsItemsEntityCollection() this.clearAllBottomOptionsItemsEntityCollection()
}, },
bottomOptionsClick(index) { bottomOptionsClick(index) {
if (this.bottomClickDisable) return
if (this.bottomOptionsIndex === index) { if (this.bottomOptionsIndex === index) {
this.bottomOptionsIndex = '' this.bottomOptionsIndex = ''
// (this.gangkouActive === '00004' && index !== 1) && drag.addPolygon(this.gangkouActive) // (this.gangkouActive === '00004' && index !== 1) && drag.addPolygon(this.gangkouActive)
@ -2537,6 +2539,7 @@ export default {
} }
}, },
async bottomOptionsEnter(el, done) { async bottomOptionsEnter(el, done) {
this.bottomClickDisable = true
if (!this.bottomOptionsAnimationComplex) { if (!this.bottomOptionsAnimationComplex) {
// 使 // 使
await animate(el, { await animate(el, {
@ -2547,6 +2550,7 @@ export default {
translateY: 0, translateY: 0,
opacity: 1 opacity: 1
}, { duration: 1 }).finished }, { duration: 1 }).finished
this.bottomClickDisable = false
done() done()
return return
} }
@ -2581,15 +2585,18 @@ export default {
}, { duration }).finished }, { duration }).finished
} }
} }
this.bottomClickDisable = false
done() done()
}, },
async bottomOptionsLeave(el, done) { async bottomOptionsLeave(el, done) {
this.bottomClickDisable = true
if (!this.bottomOptionsAnimationComplex) { if (!this.bottomOptionsAnimationComplex) {
// 使 // 使
await animate(el, { await animate(el, {
translateY: -100, translateY: -100,
opacity: 0 opacity: 0
}, { duration: 1 }).finished }, { duration: 1 }).finished
this.bottomClickDisable = false
done() done()
return return
} }
@ -2626,6 +2633,7 @@ export default {
opacity: 0 opacity: 0
}, { duration }).finished }, { duration }).finished
} }
this.bottomClickDisable = false
done() done()
} }
} }