|
@@ -1,51 +1,69 @@
|
|
<template>
|
|
<template>
|
|
- <div v-if="videoData.length === 1" class="video-container1 ">
|
|
|
|
|
|
+ <div v-if="videoData.length === 1" class="video-container1">
|
|
<div class="video-item">
|
|
<div class="video-item">
|
|
- <div class="name">{{ videoData[0].name }}</div>
|
|
|
|
- <HKVideo :dot_data="videoData[0]" :height="866" />
|
|
|
|
|
|
+ <div class="tag" :title="videoData[0].name">
|
|
|
|
+ <div class="name">{{ videoData[0].name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="videoData[0]" :height="1100" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else-if="videoData.length >= 2 && videoData.length <= 4" class="video-container2">
|
|
<div v-else-if="videoData.length >= 2 && videoData.length <= 4" class="video-container2">
|
|
<div v-for="(item, index) in videoData" :key="index" class="video-item">
|
|
<div v-for="(item, index) in videoData" :key="index" class="video-item">
|
|
- <div class="name">{{ item.name }}</div>
|
|
|
|
- <HKVideo :dot_data="item" :height="410" />
|
|
|
|
|
|
+ <div class="tag" :title="item.name">
|
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="item" :height="8" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else-if="videoData.length >= 5 && videoData.length <= 6" class="video-container3">
|
|
<div v-else-if="videoData.length >= 5 && videoData.length <= 6" class="video-container3">
|
|
<div class="box1">
|
|
<div class="box1">
|
|
<div class="video-item2">
|
|
<div class="video-item2">
|
|
- <div class="name">{{ videoData[0].name }}</div>
|
|
|
|
- <HKVideo :dot_data="videoData[0]" :height="562" />
|
|
|
|
|
|
+ <div class="tag" :title="videoData[1].name">
|
|
|
|
+ <div class="name">{{ videoData[1].name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="videoData[0]" :height="730" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box2">
|
|
<div class="box2">
|
|
<div class="video-item3">
|
|
<div class="video-item3">
|
|
- <div class="name">{{ videoData[1].name }}</div>
|
|
|
|
- <HKVideo :dot_data="videoData[1]" :height="258" />
|
|
|
|
|
|
+ <div class="tag" :title="videoData[0].name">
|
|
|
|
+ <div class="name">{{ videoData[0].name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="videoData[1]" :height="365" />
|
|
</div>
|
|
</div>
|
|
<div class="video-item3">
|
|
<div class="video-item3">
|
|
- <div class="name">{{ videoData[2].name }}</div>
|
|
|
|
- <HKVideo :dot_data="videoData[2]" :height="258" />
|
|
|
|
|
|
+ <div class="tag" :title="videoData[2].name">
|
|
|
|
+ <div class="name">{{ videoData[2].name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="videoData[2]" :height="365" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box3">
|
|
<div class="box3">
|
|
<div class="video-item">
|
|
<div class="video-item">
|
|
- <div class="name">{{ videoData[3].name }}</div>
|
|
|
|
- <HKVideo :dot_data="videoData[3]" :height="258" />
|
|
|
|
|
|
+ <div class="tag" :title="videoData[3].name">
|
|
|
|
+ <div class="name">{{ videoData[3].name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="videoData[3]" :height="365" />
|
|
</div>
|
|
</div>
|
|
<div class="video-item">
|
|
<div class="video-item">
|
|
- <div class="name">{{ videoData[4].name }}</div>
|
|
|
|
- <HKVideo :dot_data="videoData[4]" :height="258" />
|
|
|
|
|
|
+ <div class="tag" :title="videoData[4].name">
|
|
|
|
+ <div class="name">{{ videoData[4].name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="videoData[4]" :height="365" />
|
|
</div>
|
|
</div>
|
|
<div class="video-item">
|
|
<div class="video-item">
|
|
- <div class="name">{{ videoData[5].name }}</div>
|
|
|
|
- <HKVideo :dot_data="videoData[5]" :height="258" />
|
|
|
|
|
|
+ <div class="tag" :title="videoData[5].name">
|
|
|
|
+ <div class="name">{{ videoData[5].name }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <HKVideo :dot_data="videoData[5]" :height="365" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else-if="videoData.length >= 7" class="video-container4">
|
|
<div v-else-if="videoData.length >= 7" class="video-container4">
|
|
<div v-for="(item, index) in videoData" :key="index" class="video-item">
|
|
<div v-for="(item, index) in videoData" :key="index" class="video-item">
|
|
- <div class="name">{{ item.name }}</div>
|
|
|
|
|
|
+ <div class="tag" :title="item.name">
|
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
|
+ </div>
|
|
<HKVideo :dot_data="item" :height="258" />
|
|
<HKVideo :dot_data="item" :height="258" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -60,12 +78,44 @@ const props = withDefaults(defineProps<Props>(), {});
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.video-item,
|
|
|
|
+.video-item2,
|
|
|
|
+.video-item3 {
|
|
|
|
+ position: relative;
|
|
|
|
+ background: url('@/assets/images/video/videoBg.png') no-repeat;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ padding: 17px;
|
|
|
|
+ .tag {
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 17px;
|
|
|
|
+ right: 17px;
|
|
|
|
+ color: #fff;
|
|
|
|
+ z-index: 11;
|
|
|
|
+ width: 546px;
|
|
|
|
+ height: 67px;
|
|
|
|
+ background: url('@/assets/images/video/tag.png') no-repeat;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
+ align-items: center;
|
|
|
|
+ .name {
|
|
|
|
+ width: 480px;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
.video-container1 {
|
|
.video-container1 {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
.video-item {
|
|
.video-item {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ padding: 70px 50px;
|
|
|
|
+ }
|
|
|
|
+ .tag {
|
|
|
|
+ right: 49px;
|
|
|
|
+ bottom: 73px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.video-container2 {
|
|
.video-container2 {
|
|
@@ -75,9 +125,14 @@ const props = withDefaults(defineProps<Props>(), {});
|
|
height: 100%;
|
|
height: 100%;
|
|
.video-item {
|
|
.video-item {
|
|
width: calc(50% - 12px);
|
|
width: calc(50% - 12px);
|
|
- height: 432px;
|
|
|
|
|
|
+ height: 620px;
|
|
margin-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
|
|
+ padding: 30px 20px 30px 30px;
|
|
|
|
+ .tag {
|
|
|
|
+ bottom: 31px;
|
|
|
|
+ right: 20px;
|
|
|
|
+ }
|
|
&:nth-child(2n) {
|
|
&:nth-child(2n) {
|
|
margin-right: 0;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
@@ -90,21 +145,27 @@ const props = withDefaults(defineProps<Props>(), {});
|
|
height: 100%;
|
|
height: 100%;
|
|
.box1 {
|
|
.box1 {
|
|
width: calc(66.66666% - 6px);
|
|
width: calc(66.66666% - 6px);
|
|
- height: 596px;
|
|
|
|
|
|
+ height: 830px;
|
|
margin-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
.video-item2 {
|
|
.video-item2 {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ padding: 48px 30px 30px 40px;
|
|
|
|
+ .tag {
|
|
|
|
+ bottom: 50px;
|
|
|
|
+ right: 29px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.box2 {
|
|
.box2 {
|
|
width: calc(33.33333% - 6px);
|
|
width: calc(33.33333% - 6px);
|
|
- height: 596px;
|
|
|
|
|
|
+ height: 830px;
|
|
.video-item3 {
|
|
.video-item3 {
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 292px;
|
|
|
|
|
|
+ height: 415px;
|
|
margin-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
|
|
+ padding: 25px 17px 20px 24px;
|
|
&:nth-child(2) {
|
|
&:nth-child(2) {
|
|
margin-top: 12px;
|
|
margin-top: 12px;
|
|
}
|
|
}
|
|
@@ -112,14 +173,15 @@ const props = withDefaults(defineProps<Props>(), {});
|
|
}
|
|
}
|
|
.box3 {
|
|
.box3 {
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 292px;
|
|
|
|
|
|
+ height: 415px;
|
|
display: flex;
|
|
display: flex;
|
|
}
|
|
}
|
|
.video-item {
|
|
.video-item {
|
|
width: calc(33.33333% - 8px);
|
|
width: calc(33.33333% - 8px);
|
|
- height: 292px;
|
|
|
|
|
|
+ height: 415px;
|
|
margin-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
|
|
+ padding: 25px 17px 20px 24px;
|
|
&:nth-child(3n) {
|
|
&:nth-child(3n) {
|
|
margin-right: 0;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
@@ -149,19 +211,5 @@ const props = withDefaults(defineProps<Props>(), {});
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
-.video-item,
|
|
|
|
-.video-item2,
|
|
|
|
-.video-item3 {
|
|
|
|
- position: relative;
|
|
|
|
- background: url('@/assets/images/video/videoBg.png');
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
- padding: 17px;
|
|
|
|
- .name {
|
|
|
|
- position: absolute;
|
|
|
|
- bottom: 17px;
|
|
|
|
- right: 17px;
|
|
|
|
- color: #fff;
|
|
|
|
- z-index: 11;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+
|
|
</style>
|
|
</style>
|