소스 검색

edit video

ctt_dev
chutingting 1 년 전
부모
커밋
dccff45b4b
1개의 변경된 파일6개의 추가작업 그리고 11개의 파일을 삭제
  1. +6
    -11
      src/pages/login/index.vue

+ 6
- 11
src/pages/login/index.vue 파일 보기

@@ -1,11 +1,11 @@
<template>
<view class="page">
<!-- <image src="../../assets/img/homeImg.jpg" mode="scaleToFill" /> -->
<!-- <image src="../../assets/img/homeImg.jpg" mode="scaleToFill" />
muted-->
<video id="myVideo"
ref="myVideo"
:src='videoUrl'
autoplay
muted
loop
:controls="false">
</video>
@@ -23,7 +23,7 @@

<script setup>
//#region 导入
import { getCurrentInstance, ref,nextTick, onMounted } from "vue";
import { getCurrentInstance, ref,nextTick } from "vue";
import { isPlainObject, onLoad, onUnload, onShow } from "@dcloudio/uni-app";
import { userInfoModules } from "@/store/modules/userInfo";
import { getVideoApi } from "@/api/login.js";
@@ -85,9 +85,9 @@ function getVideoFn() {
getVideoApi().then(res => {
videoUrl.value = res.data
nextTick(()=>{
const video = document.querySelector("video.uni-video-video");
video.muted = false
video.play()
// const video = document.querySelector("video.uni-video-video");
// video.muted = false
// video.play()
// proxy.$refs.myVideo.muted = false
// proxy.$refs.myVideo.play();
})
@@ -99,11 +99,6 @@ onShow(() => {
getVideoFn()
})
//#region 初始化
// const myVideo = ref(null);
onMounted(() => {
// getVideoFn()
})

onLoad(() => {
getVideoFn()
runGetAndroidId();


불러오는 중...
취소
저장