|
@@ -1,6 +1,6 @@
|
|
|
import { Button, Popup } from "vant";
|
|
|
import { } from "vant";
|
|
|
-import { defineComponent, nextTick, onMounted, reactive, ref, watch } from "vue";
|
|
|
+import { defineComponent, nextTick, onMounted, onUnmounted, reactive, ref, watch } from "vue";
|
|
|
import styles from "./index.module.less";
|
|
|
import { getImage } from "./images";
|
|
|
import { useRect } from "@vant/use";
|
|
@@ -80,6 +80,8 @@ export default defineComponent({
|
|
|
width: eleRect.width + "px",
|
|
|
height: eleRect.height + "px",
|
|
|
};
|
|
|
+ }else{
|
|
|
+ handleNext()
|
|
|
}
|
|
|
};
|
|
|
onMounted(() => {
|
|
@@ -92,9 +94,15 @@ export default defineComponent({
|
|
|
}
|
|
|
getStepELe();
|
|
|
},300)
|
|
|
-
|
|
|
+ window.addEventListener("resize", resetSize);
|
|
|
});
|
|
|
+ const resetSize = ()=>{
|
|
|
+ getStepELe();
|
|
|
+ }
|
|
|
|
|
|
+ onUnmounted(()=>{
|
|
|
+ window.removeEventListener("resize", resetSize);
|
|
|
+ })
|
|
|
const handleNext = () => {
|
|
|
if (data.step >= 3) {
|
|
|
endGuide();
|