|
@@ -140,6 +140,10 @@ import moment from 'moment';
|
|
|
import type { Ref } from 'vue';
|
|
|
import { ref, onMounted, getCurrentInstance } from 'vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
+// 图片引入
|
|
|
+import home from '@/assets/home.mp4';
|
|
|
+import video_1 from '@/assets/video_1.png';
|
|
|
+import video_2 from '@/assets/video_2.jpg';
|
|
|
// 路由
|
|
|
const router = useRouter();
|
|
|
const { proxy } = getCurrentInstance() as any;
|
|
@@ -220,20 +224,20 @@ const trends: Ref<any> = ref([
|
|
|
}
|
|
|
]);
|
|
|
const video: Ref<any> = ref([
|
|
|
- { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '“哪吒计划”先进电子专场路演——杭州专场', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' },
|
|
|
- { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: '/src/assets/video.mp4', time: '2023-12-11 08:00:00', status: '1' }
|
|
|
+ { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '“哪吒计划”先进电子专场路演——杭州专场', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '2023年中国浙江网上技术市场活动周 首届浙江科技创新合作大会', url: home, time: '2023-12-11 08:00:00', status: '1' },
|
|
|
+ { title: '浙江海宁—英国技术成果转移转化“云对接”活动', url: home, time: '2023-12-11 08:00:00', status: '1' }
|
|
|
]);
|
|
|
-const carouselList: Ref<any> = ref([{ url: '/src/assets/video_1.png' }, { url: '/src/assets/video_1.png' }, { url: '/src/assets/video_2.jpg' }]);
|
|
|
+const carouselList: Ref<any> = ref([{ url: video_1 }, { url: video_1 }, { url: video_2 }]);
|
|
|
const activeName = ref('0');
|
|
|
const pageSizeOptions = ref<string[]>(['12', '24', '60', '120']);
|
|
|
let total: Ref<number> = ref(12);
|
|
@@ -274,7 +278,7 @@ const onShowSizeChange = (current: number, pageSize: number) => {
|
|
|
margin: 20px 0px;
|
|
|
padding: 10px 50px 0 50px;
|
|
|
height: 520px;
|
|
|
- background: url(/src/assets/hdbg.png) no-repeat 100%;
|
|
|
+ background: url(@/assets/hdbg.png) no-repeat 100%;
|
|
|
background-size: cover;
|
|
|
|
|
|
.one {
|
|
@@ -300,7 +304,7 @@ const onShowSizeChange = (current: number, pageSize: number) => {
|
|
|
margin: 20px 0 30px;
|
|
|
padding: 10px;
|
|
|
display: flex;
|
|
|
- background-image: url(/src/assets/hdbg2.png);
|
|
|
+ background-image: url(//hdbg2.png);
|
|
|
background-repeat: no-repeat;
|
|
|
background-size: 570px 142px;
|
|
|
background-position: 100%;
|