实训消失问题调整2
This commit is contained in:
parent
32430607dd
commit
f2efa437df
@ -101,9 +101,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async tipInit(timetamp) {
|
async tipInit(timetamp) {
|
||||||
if (this.timetamp !== timetamp) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (this.teachMode === ScriptMode.TEACH) {
|
if (this.teachMode === ScriptMode.TEACH) {
|
||||||
this.tipShow = true;
|
this.tipShow = true;
|
||||||
const offset = this.$store.state.config.canvasOffset;
|
const offset = this.$store.state.config.canvasOffset;
|
||||||
@ -123,28 +120,34 @@ export default {
|
|||||||
x: position.x + offset.x,
|
x: position.x + offset.x,
|
||||||
y: position.y + offset.y - distance
|
y: position.y + offset.y - distance
|
||||||
};
|
};
|
||||||
this.popTipShow();
|
this.popTipShow(timetamp);
|
||||||
}
|
}
|
||||||
} else if (stepInfo.tipPosition && stepInfo.tipPosition.domId) {
|
} else if (stepInfo.tipPosition && stepInfo.tipPosition.domId) {
|
||||||
const position = await this.getOtherTipPoint(stepInfo.tipPosition);
|
const position = await this.getOtherTipPoint(stepInfo.tipPosition);
|
||||||
if (position) {
|
if (position) {
|
||||||
this.position = position;
|
this.position = position;
|
||||||
this.position.y -= distance;
|
this.position.y -= distance;
|
||||||
this.popTipShow();
|
this.popTipShow(timetamp);
|
||||||
} else {
|
} else {
|
||||||
this.popTipHide();
|
this.popTipHide(timetamp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.popTipHide();
|
this.popTipHide(timetamp);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.tipShow = false;
|
this.tipShow = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popTipShow() {
|
popTipShow(timetamp) {
|
||||||
|
if (this.timetamp !== timetamp) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.popShow = true;
|
this.popShow = true;
|
||||||
},
|
},
|
||||||
popTipHide() {
|
popTipHide(timetamp) {
|
||||||
|
if (this.timetamp !== timetamp) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.popShow = false;
|
this.popShow = false;
|
||||||
},
|
},
|
||||||
// 获取地图设备提示位置
|
// 获取地图设备提示位置
|
||||||
|
Loading…
Reference in New Issue
Block a user