1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <template>
- <div id="index">
- <el-row>
- <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
- <cHead :is_menu="false" :is_head="false">
- <template v-slot:info>
- <div class="w_1200">
- <el-col :span="24" class="one">
- <el-col :span="24" class="name">{{ info.title || '暂无标题' }}</el-col>
- <el-col :span="24" class="time"><span>发布时间</span> {{ info.time || '暂无发布时间' }}</el-col>
- <el-col :span="24" class="video">
- <cVideo :src="info.file" :second="3" />
- </el-col>
- </el-col>
- </div>
- </template>
- </cHead>
- </el-col>
- </el-row>
- </div>
- </template>
- <script setup lang="ts">
- // 基础
- import type { Ref } from 'vue';
- import { onMounted, getCurrentInstance, ref } from 'vue';
- // 图片引入
- import home from '@/assets/home.mp4';
- // 接口
- // import { ToolsStore } from '@/stores/tool';
- // import type { IQueryResult } from '@/util/types.util';
- // const toolsAxios = ToolsStore();
- const { proxy } = getCurrentInstance() as any;
- // 加载中
- const loading: Ref<any> = ref(false);
- const info: Ref<any> = ref({
- file: home,
- title: '2022年杭州市技术经纪人培训班-第1课',
- time: '2024-01-05 09:12:23'
- });
- // 请求
- onMounted(async () => {
- loading.value = true;
- await searchOther();
- await search();
- loading.value = false;
- });
- const search = async () => {
- // const res: IQueryResult = await userCheckAxios.query(info);
- // if (res.errcode == '0') {
- // list.value = res.data;
- // total.value = res.total;
- // }
- };
- // 查询其他信息
- const searchOther = async () => {
- // let res: IQueryResult;
- // // 性别
- // res = await dictAxios.query({ type: 'common_gender' });
- // if (res.errcode == '0') genderList.value = res.data;
- };
- </script>
- <style scoped lang="scss">
- .main {
- background: url(@/assets/videobg.png) right top no-repeat;
- background-size: 100%;
- .one {
- .name {
- font-size: 24px;
- font-weight: 600;
- padding: 12px 0;
- color: #ffffff;
- }
- .time {
- font-size: 14px;
- color: rgb(108, 127, 163);
- span {
- padding: 0 10px;
- line-height: 24px;
- border-radius: 10px;
- text-align: center;
- background-color: rgb(120, 137, 162);
- color: white;
- }
- }
- .video {
- width: 100%;
- margin: 20px 0;
- }
- }
- }
- </style>
|