|
@@ -187,7 +187,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import { ref, reactive, nextTick } from "vue";
|
|
|
+import { ref, reactive, nextTick, defineEmits } from "vue";
|
|
|
import {
|
|
|
getStore,
|
|
|
getSendVerifyCode,
|
|
@@ -236,6 +236,7 @@ const text = reactive({
|
|
|
...data[type - 1],
|
|
|
width,
|
|
|
});
|
|
|
+const emits = defineEmits(["autoAudio"]);
|
|
|
const isCode = ref(0); // 验证码
|
|
|
const bgimg = ref(url.bg);
|
|
|
const kuangimg = ref(url.kuang);
|
|
@@ -346,6 +347,7 @@ let current = 0;
|
|
|
|
|
|
function showVideo(url) {
|
|
|
showOverlay.value = true;
|
|
|
+ emits("autoAudio");
|
|
|
nextTick(() => {
|
|
|
let ele = document.querySelector(".sevenvideo");
|
|
|
ele.src = url;
|
|
@@ -384,6 +386,7 @@ function closeSeven() {
|
|
|
});
|
|
|
let ele = document.querySelector(".sevenvideo");
|
|
|
ele.pause();
|
|
|
+ emits("autoAudio");
|
|
|
showOverlay.value = false;
|
|
|
}
|
|
|
|