Commit 10f6feaf authored by 吕 成东's avatar 吕 成东
Browse files

修改样式

parent f0308861
<template> <template>
<div class="center-width"> <div class="container">
<div class="left-title"> <div class="center-width">
<div class="serve-title"> <div class="left-title">
<div class="index">03</div> <div class="serve-title">
<div class="name">新闻资讯</div> <div class="index">03</div>
<div class="english">NEWS INFORMMATION</div> <div class="name">新闻资讯</div>
<div class="english">NEWS INFORMMATION</div>
</div>
</div> </div>
</div> <div class="content product">
<div class="new-index" ref="scrollRef" @mouseenter="stopScroll" @mouseleave="startScroll"> <div class="left ">
<div v-for="item in data" :key="item.comm_msg_info.id" class="news-item"> 记录创新足迹,传递科技温度。
<div class="news-content"> 从重大突破到温暖日常,
<h3 class="news-title">{{ item.app_msg_ext_info.title }}</h3> 从行业前沿到团队风采,
<p class="news-digest" v-if="item.app_msg_ext_info.digest">{{ item.app_msg_ext_info.digest }}</p> 与您共见成长,共赴未来。
<div class="news-meta">
<span class="news-author" v-if="item.app_msg_ext_info.author">{{ item.app_msg_ext_info.author
}}</span>
<span class="news-date">{{ formatDate(item.comm_msg_info.datetime) }}</span>
</div>
</div> </div>
<div class="news-cover" v-if="item.app_msg_ext_info.cover"> <div class="new-index" ref="scrollRef" @mouseenter="stopScroll" @mouseleave="startScroll">
<img :src="getLocalCover(item)" :alt="item.app_msg_ext_info.title" <div v-for="item in data" :key="item.comm_msg_info.id" class="news-item">
@error="e => { const target = e.target as HTMLImageElement; if (target) target.src = item.app_msg_ext_info.cover }"> <div class="news-content">
<h3 class="news-title">{{ item.app_msg_ext_info.title }}</h3>
<p class="news-digest" v-if="item.app_msg_ext_info.digest">{{ item.app_msg_ext_info.digest
}}
</p>
<div class="news-meta">
<span class="news-author" v-if="item.app_msg_ext_info.author">{{
item.app_msg_ext_info.author
}}</span>
<span class="news-date">{{ formatDate(item.comm_msg_info.datetime) }}</span>
</div>
</div>
<div class="news-cover" v-if="item.app_msg_ext_info.cover">
<img :src="getLocalCover(item)" :alt="item.app_msg_ext_info.title"
@error="e => { const target = e.target as HTMLImageElement; if (target) target.src = item.app_msg_ext_info.cover }">
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -416,11 +429,10 @@ onBeforeUnmount(() => { ...@@ -416,11 +429,10 @@ onBeforeUnmount(() => {
</script> </script>
<style scoped> <style scoped>
.center-width {
display: flex;
height: 320px !important;
}
.container{
padding-top: 60px;
}
.left-title { .left-title {
min-width: 263px; min-width: 263px;
max-width: 263px; max-width: 263px;
...@@ -433,7 +445,7 @@ onBeforeUnmount(() => { ...@@ -433,7 +445,7 @@ onBeforeUnmount(() => {
overflow-x: auto; overflow-x: auto;
width: 100%; width: 100%;
gap: 32px; gap: 32px;
padding: 20px 0 30px 0; padding: 0px 0 30px 0;
scrollbar-width: none; scrollbar-width: none;
/* Firefox */ /* Firefox */
} }
...@@ -443,6 +455,16 @@ onBeforeUnmount(() => { ...@@ -443,6 +455,16 @@ onBeforeUnmount(() => {
/* Chrome/Safari/Edge */ /* Chrome/Safari/Edge */
} }
.content {
width: 100%;
display: flex;
}
.content>.left {
margin-right: 30px;
width: 263px;
}
.news-item { .news-item {
flex: 0 0 200px; flex: 0 0 200px;
min-width: 300px; min-width: 300px;
...@@ -452,15 +474,15 @@ onBeforeUnmount(() => { ...@@ -452,15 +474,15 @@ onBeforeUnmount(() => {
background: #fff; background: #fff;
border-radius: 16px; border-radius: 16px;
box-shadow: inset 0 4px 24px 0 rgba(0, 0, 0, 0.1); box-shadow: inset 0 4px 24px 0 rgba(0, 0, 0, 0.1);
padding: 28px 28px 18px 28px; padding: 0px 18px 10px 18px;
transition: box-shadow 0.2s, transform 0.2s; transition: box-shadow 0.2s, transform 0.2s;
margin-bottom: 0; margin-bottom: 0;
position: relative; position: relative;
} }
.news-item:hover { .news-item:hover {
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.16); /* box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.16); */
transform: translateY(-4px) scale(1.02); /* transform: translateY(-4px) scale(1.02); */
} }
.news-content { .news-content {
...@@ -498,7 +520,7 @@ onBeforeUnmount(() => { ...@@ -498,7 +520,7 @@ onBeforeUnmount(() => {
.news-cover { .news-cover {
width: 100%; width: 100%;
height: 100px; height: 200px;
overflow: hidden; overflow: hidden;
border-radius: 8px; border-radius: 8px;
background: #f6f6f6; background: #f6f6f6;
......
...@@ -40,5 +40,4 @@ const services = [ ...@@ -40,5 +40,4 @@ const services = [
width: 100%; width: 100%;
} }
</style> </style>
\ No newline at end of file
...@@ -55,5 +55,17 @@ const products = [ ...@@ -55,5 +55,17 @@ const products = [
<style scoped> <style scoped>
.blue-print { .blue-print {
width: 100%; width: 100%;
background: linear-gradient(135deg, #d4e0f0 0%, #f0f5fa 100%);
padding: 60px 0;
position: relative;
overflow: hidden;
} }
.product>.right {
border-radius: 10px;
}
/* .product>.right:hover{
margin-top: -10px;
transition: 0.5s;
} */
</style> </style>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment