ソースを参照

video

ctt_dev
chutingting 1年前
コミット
a62f230f9b
2個のファイルの変更5117行の追加2行の削除
  1. +5089
    -0
      package-lock.json
  2. +28
    -2
      src/pages/login/index.vue

+ 5089
- 0
package-lock.json
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 28
- 2
src/pages/login/index.vue ファイルの表示

@@ -1,6 +1,14 @@
<template>
<view class="page">
<image src="../../assets/img/homeImg.jpg" mode="scaleToFill" />
<!-- <image src="../../assets/img/homeImg.jpg" mode="scaleToFill" /> -->
<video id="myVideo"
src='https://video.metavatar.cc/sv/30f2d513-18c4739c509/30f2d513-18c4739c509.mp4'
autoplay
muted
loop
:controls="false">
</video>
<view class="bottomBox">
<view class="orangeBtn" @click="toChooseStyle">拍摄数码写真</view>
<view class="IMEI" @click="Imei"
@@ -14,7 +22,7 @@

<script setup>
//#region 导入
import { ref } from "vue";
import { getCurrentInstance, ref } from "vue";
import { isPlainObject, onLoad, onUnload } from "@dcloudio/uni-app";
import { userInfoModules } from "@/store/modules/userInfo";

@@ -66,11 +74,21 @@ function fileReaderTest() {
}
}

// // 播放
// const handelPlay = () => {
// const video = document.querySelector("video.uni-video-video");
// video.play();
// }

const videoContext = ref()
//#region 初始化
onLoad(() => {
runGetAndroidId();
// fileReaderTest();
userInfoModulesPinia.clearStorage();

});
//#endregion ----------------------------------

@@ -137,6 +155,14 @@ function reFresh() {
position: relative;
width: 100vw;
height: 100vh;
// uni-video{
// width:100%;
// height:100%;
// }
#myVideo{
width: 100%;
height: 100%;
}
image {
position: absolute;
width: 100%;


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