|
@@ -24,7 +24,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { ref, defineEmits } from "vue";
|
|
import { ref, defineEmits } from "vue";
|
|
// import { onMounted, reactive } from "vue";
|
|
// import { onMounted, reactive } from "vue";
|
|
-// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
|
|
|
|
|
|
+import { isAndroid, isIphone } from "../../../utils/isTerminal";
|
|
/**
|
|
/**
|
|
* window.$originData.orginParames.title 页面标题
|
|
* window.$originData.orginParames.title 页面标题
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
@@ -45,26 +45,27 @@ window.addEventListener(
|
|
console.log("----------------start------------");
|
|
console.log("----------------start------------");
|
|
if (px || py || pz) {
|
|
if (px || py || pz) {
|
|
// 手机摇晃
|
|
// 手机摇晃
|
|
- dou.value = 2;
|
|
|
|
- let t = setTimeout(() => {
|
|
|
|
- clearTimeout(t);
|
|
|
|
- emits("changePage", "five");
|
|
|
|
- }, 2000);
|
|
|
|
|
|
+ toNext();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
false
|
|
false
|
|
);
|
|
);
|
|
|
|
|
|
|
|
+function toNext() {
|
|
|
|
+ dou.value = 2;
|
|
|
|
+ let t = setTimeout(() => {
|
|
|
|
+ clearTimeout(t);
|
|
|
|
+ emits("changePage", "five");
|
|
|
|
+ }, 2000);
|
|
|
|
+}
|
|
|
|
+
|
|
function inputFile() {
|
|
function inputFile() {
|
|
dou.value = 1;
|
|
dou.value = 1;
|
|
- // let t = setTimeout(() => {
|
|
|
|
- // clearTimeout(t);
|
|
|
|
- // dou.value = 2;
|
|
|
|
- // t = setTimeout(() => {
|
|
|
|
- // clearTimeout(t);
|
|
|
|
- // emits("changePage", "five");
|
|
|
|
- // }, 2000);
|
|
|
|
- // }, 2000);
|
|
|
|
|
|
+ if (isAndroid || isIphone) return;
|
|
|
|
+ let t = setTimeout(() => {
|
|
|
|
+ clearTimeout(t);
|
|
|
|
+ toNext();
|
|
|
|
+ }, 2000);
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|