首屏添加视频播放

This commit is contained in:
17792275749
2025-12-29 13:34:44 +08:00
parent d95a6942cb
commit bb0536c7e4
3 changed files with 136 additions and 0 deletions
+6
View File
@@ -33,10 +33,13 @@
<a-spin size="large" />
</div>
</div>
<VideoComponent :src="videoUrl" />
</div>
</template>
<script setup lang="ts">
import LoginOutButton from '/@/views/components/loginOutButton.vue';
import VideoComponent from '/@/views/components/videoComponent.vue';
import { useUserStore } from '/@/store/modules/user.ts';
import { onMounted, ref, watch } from 'vue';
import dayjs from 'dayjs';
@@ -86,6 +89,9 @@
document.title = centerInfo.screenTitle || '健康服务中心';
});
// 定义网络视频地址
const videoUrl = 'https://api-xj.tri.icdat.cn/file/show/temp/20251229/20251229_1766980290812.mp4';
const getTime = () => {
dateInfo.value = {
day: dayjs().format('YYYY年MM月DD日'),