修复下面图标连续点击不显示bug
parent
a00777acfd
commit
229b261a3f
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue