Browse Source

~~新需求

王强 3 weeks ago
parent
commit
f814a28ee3

+ 2 - 2
src/assets/css/common.min.css

@@ -443,9 +443,9 @@
     .section .section--header .section--description-index{
         font-size: 16px;
     }
-    .nav{
+    /* .nav{
         width: 55%!important;
-    }
+    } */
     .moremore{
         width: 45%;
         margin-top:10px!important;

+ 2 - 2
src/components/common/footer/FooterNew.vue

@@ -150,7 +150,7 @@ body.no-scroll {
     display: flex;
     justify-content: center;
     align-items: center;
-    font-size: 0.8rem;
+    font-size: 1rem;
 
     >div:nth-child(1),
     >div:nth-child(5),
@@ -214,7 +214,7 @@ body.no-scroll {
 
 .footerFooter {
     width: 100%;
-    font-size: 0.8rem;
+    font-size: 1rem;
     margin-top: 1rem;
 }
 

+ 9 - 3
src/components/common/header/Header.vue

@@ -84,6 +84,12 @@ const handleClose = (done) => {
 const isNews = computed(() => {
 	return currentLanguage.value !== 'en'
 })
+// 返回到首页
+const goHome = () => {
+	console.log('返回首页');
+	
+	router.push('/index');
+}
 
 onMounted(() => {
 	// 初始化检查移动端
@@ -117,7 +123,7 @@ onBeforeUnmount(() => {
 			<img src="../../../assets/images/menu.png" alt="" srcset="" @click="showMenu">
 			<div class="header-mobile-title">
 				<!-- <div> -->
-				<img src="../../../assets/images/logo.png" alt="">
+				<img src="../../../assets/images/logo.png" alt="" @click="goHome" >
 				<!-- </div> -->
 
 			</div>
@@ -131,7 +137,7 @@ onBeforeUnmount(() => {
 				<!-- <img src="../../../assets/images/inlogo.png" alt=""> -->
 				<div>
 					<!-- <div class="mainTitle">中烟国际集团有限公司</div> -->
-					<img src="../../../assets/images/logo.png" alt="" class="logoImg">
+					<img src="../../../assets/images/logo.png" alt="" class="logoImg" @click="goHome">
 				</div>
 
 			</div>
@@ -518,7 +524,7 @@ onBeforeUnmount(() => {
 	}
 
 	@media screen and (min-width: 1024px) {
-		width: 25rem;
+		width: 27rem;
 		height: 4.5rem;
 		// margin-right:29.6rem;
 	}

+ 0 - 1
src/router/index.js

@@ -31,7 +31,6 @@ const router = createRouter({
     { path: '/MainBusiness', component: MainBusiness },
     { path: '/ContactInformation', component: ContactInformation },
     {path:'/JoinUs', component: JoinUs},
-    // {path:'/news',component: News},
     {path:'/newsDetail/:id?',component: newsDetail},
     {path:'/subGroup/:id?',component: subGroup}
   ]

+ 0 - 10
src/views/IndexView.vue

@@ -2,17 +2,9 @@
 import Layout from '../components/common/Layout.vue';
 import { onBeforeUnmount, onMounted, ref, computed } from "vue";
 import { onLanguageChange, getCurrentLanguage } from '@/utils/language.js';
-// import { getstudentAPI } from '@/apis/studentlistAPI.js';
-// import { getSlidephotoAPI, getAdvantageAPI, getServiceAPI } from '@/apis/indexAPI.js';
-// import index1 from '../assets/images/newIndex/lunbo1.png';
-// import index2 from '../assets/images/newIndex/lunbo2.png';
-// import index3 from '../assets/images/newIndex/lunbo3.png';
 import c1 from '../assets/images/newIndex/c1.png';
 import c2 from '../assets/images/newIndex/c2.png';
 import c3 from '../assets/images/newIndex/c3.png';
-// import news from '../assets/images/newIndex/news.png';
-// import news1 from '../assets/images/newIndex/news1.png';
-// import news2 from '../assets/images/newIndex/news2.png';
 import bannner from '../assets/images/banner.png';
 import { useRouter } from 'vue-router';
 import zhounian from '../assets/images/newIndex/80zhounian.jpg';
@@ -20,8 +12,6 @@ import guanaishequ from '../assets/images/newsPic/guanaishequ.png';
 import lifa from '../assets/images/newsPic/lifa.png';
 import { useI18n } from 'vue-i18n'
 const { t, locale, messages } = useI18n()
-// import { yangyEmail } from '@/config/contact.js';
-
 // 当前语言(可在模板或逻辑中使用)
 const currentLanguage = ref(getCurrentLanguage());
 // 存储取消订阅函数