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();


読み込み中…
キャンセル
保存