소스 검색

edit

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

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

@@ -28,8 +28,8 @@ import { isPlainObject, onLoad, onUnload, onShow } from "@dcloudio/uni-app";
import { userInfoModules } from "@/store/modules/userInfo"; import { userInfoModules } from "@/store/modules/userInfo";
import { getVideoApi } from "@/api/login.js"; import { getVideoApi } from "@/api/login.js";



const userInfoModulesPinia = userInfoModules(); const userInfoModulesPinia = userInfoModules();

//#endregion ---------------------------------- //#endregion ----------------------------------


function toChooseStyle() { function toChooseStyle() {
@@ -79,9 +79,18 @@ function fileReaderTest() {




const videoUrl = ref('') const videoUrl = ref('')
const { proxy } = getCurrentInstance();

function getVideoFn() { function getVideoFn() {
getVideoApi().then(res => { getVideoApi().then(res => {
videoUrl.value = res.data videoUrl.value = res.data
nextTick(()=>{
// const video = document.querySelector("video.uni-video-video");
// video.muted = false
// video.play()
proxy.$refs.myVideo.muted = false
proxy.$refs.myVideo.play();
})
}) })
} }
@@ -91,20 +100,11 @@ onShow(() => {
}) })
//#region 初始化 //#region 初始化
// const myVideo = ref(null); // const myVideo = ref(null);
const { proxy } = getCurrentInstance();
onMounted(() => { onMounted(() => {
// nextTick(()=>{
// proxy.$refs.myVideomuted = false
// proxy.$refs.myVideo.play();
// })
// getVideoFn()
}) })


onLoad(() => { onLoad(() => {
nextTick(()=>{
// const video = document.querySelector("video.uni-video-video");
// video.muted = false
// video.play()
})
getVideoFn() getVideoFn()
runGetAndroidId(); runGetAndroidId();
// fileReaderTest(); // fileReaderTest();


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