王强 4 miesięcy temu
rodzic
commit
a2b0537933

BIN
src/assets/images/menu.png


BIN
src/assets/images/net.png


+ 26 - 11
src/components/common/footer/FooterNew.vue

@@ -8,7 +8,7 @@
             <div class="footerContainer">
                 <div>{{ $t('message.mianze') }}</div>
                 <div>|</div>
-                 <div>{{ $t('message.wzasm') }}</div>
+                <div>{{ $t('message.wzasm') }}</div>
                 <div>|</div>
                 <div>{{ $t('message.siyin') }}</div>
                 <div>|</div>
@@ -19,26 +19,40 @@
     </div>
 </template>
 <style>
-.footerBox{
-    display: flex; 
+.footerBox {
+    display: flex;
     justify-content: center;
     font-weight: 700;
-    color:#666;
-    padding:2rem;
-    >div:nth-child(1){
+    color: #666;
+    padding: 2rem;
+
+    >div:nth-child(1) {
         height: 3.4rem;
-        border-left: 6px solid #F7B334;
-        margin-right:5.3rem;
-        margin-top:2px;
+        border-left: 0.4rem solid #F7B334;
+        margin-right: 5.3rem;
+        margin-top: 2px;
     }
 }
+
 .footerContainer {
     width: 100%;
     height: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
-    font-size: 12px;
+    font-size: 0.8rem;
+
+    >div:nth-child(2) {
+        margin: 0px 1rem;
+    }
+
+    >div:nth-child(4) {
+        margin: 0px 1rem;
+    }
+
+    >div:nth-child(6) {
+        margin: 0px 1rem;
+    }
 
     @media screen and (min-width: 1024px) {
         >div:nth-child(2) {
@@ -48,7 +62,8 @@
         >div:nth-child(4) {
             margin: 0px 1rem;
         }
-         >div:nth-child(6) {
+
+        >div:nth-child(6) {
             margin: 0px 1rem;
         }
     }

+ 1 - 1
src/components/common/header/Header.vue

@@ -241,7 +241,7 @@ onBeforeUnmount(() => {
 	height: 4.5rem;
 	display: flex;
 	justify-content: start;
-	padding: 10px 0;
+	padding: 0.66rem 0;
 	>img{
 		width: 4.5rem;
 		height: 4.5rem;

+ 33 - 13
src/views/IndexView.vue

@@ -190,13 +190,14 @@ const outputValue3 = useTransition(source3, {
 source3.value = 0.97;
 // const videoPlayer = ref(null);
 const newsList = ref([
-	{   id:1,
+	{
+		id: 1,
 		title: '国际集团组织员工参观沙头角禁区及香港回归纪念塔活动',
 		content: '2025年6月27日,为庆祝香港回归祖国暨香港特别行政区成立二十八周年,国际集团组织全体员工赴新界沙头角禁区开展专题参观学习。队伍依次参观“沙头角之角”石碑,远眺中英街界碑及“一街两制”警戒线,随后考察沙头角口岸旅检大楼旧址,系统了解边境管理沿革与深港合作历程;',
 		date: '2025-06-27'
 	},
 	{
-		id:2,
+		id: 2,
 		title: '国际集团召开2025年一季度经济运行分析会',
 		content: '4月15日,中烟国际集团有限公司召开一季度经济运行分析会,传达国家局、总公司经济运行分析会精神,分析研究国际集团一季度经济运行情况,安排部署下一步重点工作。国际集团党组书记、总经理邵岩同志指出,一季度国际',
 		date: '2025-04-15'
@@ -303,7 +304,7 @@ const handleGoNew = () => {
 	// 跳转到新闻页面
 	route.push('/news');
 }
-const goDetail = (id)=>{
+const goDetail = (id) => {
 	route.push(`/newsDetail/${id}`);
 }
 onMounted(() => {
@@ -340,7 +341,8 @@ onBeforeUnmount(() => {
 		</div>
 		<div class="news-section">
 			<div>
-				<img src="../assets/images/newIndex/news.jpg" alt="" style="width: 100%; height: 100%;" @click="goDetail(4)">
+				<img src="../assets/images/newIndex/news.jpg" alt="" style="width: 100%; height: 100%;"
+					@click="goDetail(4)">
 			</div>
 			<div class="news-content">
 				<div class="newsTitle">{{ $t('message.t3') }}</div>
@@ -398,6 +400,7 @@ onBeforeUnmount(() => {
 	// 分页器样式
 	:deep(.swiper-pagination) {
 		bottom: 20px !important;
+
 		.swiper-pagination-bullet {
 			background: rgba(255, 255, 255, 0.9);
 			opacity: 1;
@@ -408,7 +411,8 @@ onBeforeUnmount(() => {
 
 			&.swiper-pagination-bullet-active {
 				background: #F7B334;
-				width: 3rem; /* 激活状态下的横线更长 */
+				width: 3rem;
+				/* 激活状态下的横线更长 */
 				height: 0.6rem;
 				transform: scale(1.1);
 				border-radius: 3px;
@@ -718,12 +722,16 @@ onBeforeUnmount(() => {
 // 新闻部分响应式
 .news-section {
 	padding-top: 0;
+	width: 70%;
+	display: flex;
+	justify-content: space-between;
+	margin-top: 1.8rem;
 
 	@media screen and (min-width: 1024px) {
 		width: 70%;
 		display: flex;
 		flex: 1;
-		margin-top: 90px;
+		margin-top: 18rem;
 		height: 46.6rem;
 
 	}
@@ -746,11 +754,11 @@ onBeforeUnmount(() => {
 	}
 
 	>div:nth-child(1) {
-		width: 60%;
+		width: 57%;
 	}
 
 	>div:nth-child(2) {
-		width: 40%;
+		width: 38%;
 	}
 
 	.news-content {
@@ -815,7 +823,8 @@ onBeforeUnmount(() => {
 		overflow: hidden;
 		text-overflow: ellipsis;
 		line-height: 1.4;
-		max-height: 4.2em; /* 3行 × 1.4行高 = 4.2em */
+		max-height: 4.2em;
+		/* 3行 × 1.4行高 = 4.2em */
 	}
 
 	.news-item-date {
@@ -833,15 +842,20 @@ onBeforeUnmount(() => {
 			font-size: 1.1rem;
 			text-align: center;
 			width: 10rem;
-			margin-top:1rem;
+			margin-top: 1rem;
 		}
 	}
 }
-.group-section{
+
+.group-section {
 	width: 70%;
 }
 
 .group-title {
+	font-size: 2rem;
+		font-weight: bold;
+		text-align: center;
+		margin-top: 4rem;
 	@media screen and (min-width: 1024px) {
 		font-size: 2rem;
 		font-weight: bold;
@@ -858,6 +872,12 @@ onBeforeUnmount(() => {
 }
 
 .group-list {
+	margin-top: 0.8rem;
+	display: flex;
+	flex-wrap: wrap;
+	justify-content: space-between;
+	text-align: center;
+
 	@media screen and (min-width: 1024px) {
 		margin-top: 0.8rem;
 		display: flex;
@@ -868,7 +888,7 @@ onBeforeUnmount(() => {
 }
 
 .group-item {
-	@media screen and (min-width: 1024px) {
+	// @media screen and (min-width: 1024px) {
 		width: 17.5%;
 		margin: 1rem 0rem;
 		padding: 0.65rem 0.4rem;
@@ -899,7 +919,7 @@ onBeforeUnmount(() => {
 			height: 1.5rem;
 			margin-top: 0.3rem;
 		}
-	}
+	// }
 }
 
 // 响应式图片