|
@@ -20,7 +20,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="screen" @click="click">
|
|
|
+ <div class="screen">
|
|
|
<video
|
|
|
muted
|
|
|
loop
|
|
@@ -62,7 +62,7 @@ import five from "./pages/five.vue";
|
|
|
import sex from "./pages/sex.vue";
|
|
|
|
|
|
// import { onMounted, reactive } from "vue";
|
|
|
-import { ref, onMounted } from "vue";
|
|
|
+import { ref } from "vue";
|
|
|
import audioFile from "../../assets/music/BGM.mp3";
|
|
|
// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
|
|
|
/**
|
|
@@ -84,22 +84,18 @@ const audio = new Audio();
|
|
|
audio.src = audioFile;
|
|
|
audio.loop = true;
|
|
|
|
|
|
-function click() {
|
|
|
+function tosecond() {
|
|
|
+ changePage("second");
|
|
|
const video = document.querySelector("video");
|
|
|
- console.log(video.playing,audio.playing)
|
|
|
+ console.log(video.playing, audio.playing);
|
|
|
!video.playing && video.play();
|
|
|
!audio.playing && audio.play();
|
|
|
}
|
|
|
-
|
|
|
-function tosecond() {
|
|
|
- changePage("second");
|
|
|
- click();
|
|
|
-}
|
|
|
-onMounted(() => {
|
|
|
- click();
|
|
|
- document.addEventListener("WeixinJSBridgeReady", click, false);
|
|
|
- document.addEventListener("touchstart", click, false);
|
|
|
-});
|
|
|
+// onMounted(() => {
|
|
|
+// click();
|
|
|
+// document.addEventListener("WeixinJSBridgeReady", click, false);
|
|
|
+// document.addEventListener("touchstart", click, false);
|
|
|
+// });
|
|
|
function changePage(type) {
|
|
|
page.value = type;
|
|
|
}
|