From daa3cf6e64a4a387a101fbcc0f5a916fe759dd2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=ABMT?= <18253750314@163.com> Date: Thu, 11 Jan 2024 22:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=BD=E8=BD=A6=E8=B5=84=E8=AE=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/information/index.vue | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/information/index.vue b/src/views/information/index.vue index 8e554ec..7f5a39f 100644 --- a/src/views/information/index.vue +++ b/src/views/information/index.vue @@ -10,7 +10,7 @@
- 汽车文章 + 热点新闻 MORE+
@@ -31,7 +31,9 @@
- +
+
{{ item.title }}
@@ -44,7 +46,7 @@
@@ -153,9 +155,11 @@ export default { const { data: { message, data } } = await videoList() if (message === 'success') { for (const iter of data.list) { + console.log(iter) this.carvideoList.push({ title: iter.title, - img: iter.image + img: iter.image, + video: iter.link }) } } @@ -376,15 +380,23 @@ export default { } :deep .el-carousel__indicators--outside, .el-carousel__indicators--horizontal { display: none; + } + .el-carousel__mask { + background-color: #00000000 !important; } .el-carousel__item { display: flex; flex-direction: column; // justify-content: center; align-items: center; - img { - width: 800px; - height: 80%; + .carvideo { + width: 700px; + height: 70%; + border-radius: 20px; + video { + width: 100%; + height: 100%; + } } a { font-size: 24px;