|
|
@@ -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%; |
|
|
|