From 898e38014bc3d32d138bc4365cab6920fdc5d6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Sun, 14 May 2023 00:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PicturesBox.vue | 149 +++++++++++++ src/components/ProductsClassify.vue | 1 + src/components/ProductsTabsItem.vue | 151 ++++++++++++++ src/i18n/i18n.js | 16 -- src/i18n/langs/cn.js | 55 ----- src/i18n/langs/en.js | 53 ----- src/i18n/langs/index.js | 6 - src/main.js | 7 - src/router/index.js | 5 + src/views/aboutUs/index.vue | 130 +++--------- src/views/attractAndJoin/index.vue | 109 +++------- src/views/contactUs/index.vue | 87 ++------ src/views/imageDisplay/index.vue | 244 ++++------------------ src/views/news/detail.vue | 114 ++++++++++ src/views/news/index.vue | 313 ++++++---------------------- src/views/productsCenter/detail.vue | 222 ++++++++++++++++++++ src/views/productsCenter/index.vue | 219 +++---------------- 17 files changed, 841 insertions(+), 1040 deletions(-) create mode 100644 src/components/PicturesBox.vue create mode 100644 src/components/ProductsTabsItem.vue delete mode 100644 src/i18n/i18n.js delete mode 100644 src/i18n/langs/cn.js delete mode 100644 src/i18n/langs/en.js delete mode 100644 src/i18n/langs/index.js create mode 100644 src/views/news/detail.vue create mode 100644 src/views/productsCenter/detail.vue diff --git a/src/components/PicturesBox.vue b/src/components/PicturesBox.vue new file mode 100644 index 0000000..2159d91 --- /dev/null +++ b/src/components/PicturesBox.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/src/components/ProductsClassify.vue b/src/components/ProductsClassify.vue index 78bdf43..9281126 100644 --- a/src/components/ProductsClassify.vue +++ b/src/components/ProductsClassify.vue @@ -134,6 +134,7 @@ export default { transition: all 0.6s; img { + display: block; width: 440px; } } diff --git a/src/components/ProductsTabsItem.vue b/src/components/ProductsTabsItem.vue new file mode 100644 index 0000000..9acc714 --- /dev/null +++ b/src/components/ProductsTabsItem.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/src/i18n/i18n.js b/src/i18n/i18n.js deleted file mode 100644 index 9934760..0000000 --- a/src/i18n/i18n.js +++ /dev/null @@ -1,16 +0,0 @@ -//i18n.js -import Vue from 'vue' -import locale from 'element-ui/lib/locale' -import VueI18n from 'vue-i18n' -import messages from './langs' - -Vue.use(VueI18n) - -const i18n = new VueI18n({ - locale: localStorage.lang || 'cn', - messages -}) - -locale.i18n((key, value) => i18n.t(key, value)) //重点:为了实现element插件的多语言切换 - -export default i18n diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js deleted file mode 100644 index e0cf0be..0000000 --- a/src/i18n/langs/cn.js +++ /dev/null @@ -1,55 +0,0 @@ -//cn.js - -import zhLocale from 'element-ui/lib/locale/lang/zh-CN' - - -//{{ $t('message.news_ceter') }} -const cn = { - message: { - 'student': '学生', - 'staff': '教职工', - 'alumni': '校友', - 'examine': '考生', - 'services_portal': '服务门户', - 'switch': 'English', - 'home': '学院首页', - 'news_ceter': '新闻中心', - 'more': '更多', - 'research': '科学研究', - 'academic': '学术交流', - 'party': '党群工作', - 'party_education': '党史教育', - 'teaching_work': '教学工作', - - 'data_information': '数据中的信息', - 'notice': '通知公告', - 'scientific': '科学研究', - 'undergraduate_education': '本科教育', - 'postgraduate_education': '研究生教育', - 'employees': '职工人数', - 'number_students': '在校学生人数', - 'graduate_tutor': '研究生导师', - 'research_team': '科研团队', - 'high_level_talents': '省部级以上高层次人才', - 'major_projects': '国家级重大重点项目', - 'contact_us': '联系我们', - 'person': '人', - 'pics': '个', - 'adress': '犀浦校区地址:中国四川省成都市郫都区犀安路 999 号西南交通大学信息科学与技术学院', - 'code': '邮政编码:611756', - 'tel': '电话:+86 28 66366709(行政)', - 'copyright': '版权所有◎2015西南交通大学信息科学与技术学院. All rights reserved.意见反馈', - 'chinese_site': '西南交通大学(中文)', - 'english_site': '西南交通大学(ENGLISH)', - 'affairs_office': '西南交通大学国际合作与交流处', - 'scholarship': '国家留学基金管理委员会', - 'foreign': '中华人民共和国外交部', - 'education': '中华人民共和国教育部门户网站', - 'ieee': '电气和电子工程师协会(IEEE)', - 'search': '搜索', - 'placeholder': '请输入内容', - }, - ...zhLocale -} - -export default cn diff --git a/src/i18n/langs/en.js b/src/i18n/langs/en.js deleted file mode 100644 index e509b41..0000000 --- a/src/i18n/langs/en.js +++ /dev/null @@ -1,53 +0,0 @@ -//en.js - -import enLocale from 'element-ui/lib/locale/lang/en' - -const en = { - message: { - 'student': 'Student', - 'staff': 'Staff', - 'alumni': 'Alumni', - 'examine': 'Examine', - 'services_portal': 'Services Portal', - 'switch': '简体中文', - 'home': 'Home', - 'news_ceter': 'News Center', - 'more': 'More', - 'research': 'Research', - 'academic': 'Academic', - 'party': 'Party', - 'party_education': 'Party Education', - 'teaching_work': 'Teaching work', - - 'data_information': 'DATA INFORMATION', - 'notice': 'Notice', - 'scientific': 'Scientific', - 'undergraduate_education': 'Undergraduate education', - 'postgraduate_education': 'Postgraduate education', - 'employees': 'Faculty Members', - 'number_students': 'Internal Students', - 'graduate_tutor': 'Tutors', - 'research_team': 'Scientific Research Team', - 'high_level_talents': 'Outstanding Talents', - 'major_projects': 'Major projects', - 'contact_us': '', - 'person': '', - 'pics': '', - 'adress': '', - 'code': '', - 'tel': '', - 'copyright': 'Copyright © 2014 School of Information Science and Technology, SWJTU. All rights reserved. Feedback', - 'chinese_site': 'Southwest Jiaotong University(中文)', - 'english_site': 'Southwest Jiaotong University(ENGLISH)', - 'affairs_office': 'SWJTU International Affairs Office', - 'scholarship': 'China Scholarship Counsil', - 'foreign': 'Ministry of Foreign Affairs', - 'education': 'Ministry of Education', - 'ieee': 'IEEE', - 'search': 'search', - 'placeholder': 'please input', - - }, -} - -export default en diff --git a/src/i18n/langs/index.js b/src/i18n/langs/index.js deleted file mode 100644 index 6cd8b42..0000000 --- a/src/i18n/langs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import en from './en' -import cn from './cn' -export default { - en, - cn -} diff --git a/src/main.js b/src/main.js index a3c179b..ecbc73a 100644 --- a/src/main.js +++ b/src/main.js @@ -2,12 +2,9 @@ import Vue from 'vue' import Vuex from 'vuex' import App from './App.vue' import router from './router' -import i18n from './i18n/i18n' import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import 'element-ui/lib/theme-chalk/display.css'; -import en from 'element-ui/lib/locale/lang/en' -import cn from 'element-ui/lib/locale/lang/zh-CN' //要添加的代码 router.beforeEach((to, from, next) => { @@ -20,9 +17,6 @@ router.beforeEach((to, from, next) => { next() }) -i18n.mergeLocaleMessage('en', en) -i18n.mergeLocaleMessage('zh', cn) - Vue.config.productionTip = false Vue.use(ElementUI) Vue.use(Vuex) @@ -51,7 +45,6 @@ const store = new Vuex.Store({ new Vue({ - i18n, router, store: store, render: h => h(App) diff --git a/src/router/index.js b/src/router/index.js index 1784061..7707cd5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -47,6 +47,11 @@ const routes = [ name: 'products_center', component: () => import('../views/productsCenter/index') }, + { + path: '/products_detail', + name: 'products_detail', + component: () => import('../views/productsCenter/detail') + } ] const router = new VueRouter({ diff --git a/src/views/aboutUs/index.vue b/src/views/aboutUs/index.vue index a5cca27..c1b9127 100644 --- a/src/views/aboutUs/index.vue +++ b/src/views/aboutUs/index.vue @@ -3,20 +3,8 @@
-
- - - - - 关于我们 - 关于我们 - 关于我们 - 关于我们 - - - -
- + + @@ -38,33 +26,14 @@ {{ item.text3 }}

-
- - - - - - - - - - - - - - - - -
+
- {{ item.text1 }} {{ item.text2 }} -
@@ -74,11 +43,31 @@ diff --git a/src/views/news/index.vue b/src/views/news/index.vue index 4e24fbd..3cf8ade 100644 --- a/src/views/news/index.vue +++ b/src/views/news/index.vue @@ -4,122 +4,47 @@
-
- - - - - 公司新闻 - 行业动态 - 瓷砖百科 - - - -
+ - + + + + + - -
- - - -
-
-
- 当前位置: - - 首页 - {{tabs_title}} - -
-
- 分享到: - - - - - - -
-
- -
-
-
-
+ +
@@ -316,62 +224,6 @@ export default { display: none; } -/deep/ .el-tabs { - position: relative; - line-height: 55px; -} - -/deep/ .el-tabs__nav { - float: right; - height: 100%; -} - -/deep/ .el-tabs__header { - margin: 0; -} - -/deep/ .el-tabs__content { - position: absolute; - top: 0; -} - -/deep/ .el-tabs__item { - height: 55px; - line-height: 55px; - border-left: 1px solid #f1f1f1; - padding: 0 20px !important; - -} - -/deep/ .el-tabs__item.is-active { - color: #000; - border-bottom: 1px solid #333; -} - -/deep/ .el-tabs__item:hover { - color: #000; - text-decoration: underline; -} - -/deep/ .el-tabs--top .el-tabs__item.is-top:last-child { - border-right: 1px solid #f1f1f1; -} - -/deep/ .el-tabs__active-bar { - display: none; -} - -/deep/ .el-tabs__nav-wrap::after { - display: none; -} - -/deep/ .el-tab-pane { - color: #333; - height: 55px; - line-height: 55px; - float: left; - font-size: 18px; -} @media only screen and (max-width: 1660px) { .list2 ul li { @@ -389,20 +241,14 @@ export default { min-width: 1300px; -.news_bg { - background-image: url("http://www.yipengtaoci.com/upfiles/images/20181215/15448384274864820.jpg"); - width: 100%; - height: 360px; - background-repeat: no-repeat; - background-position: center center; -} + .news_bg { + background-image: url("http://www.yipengtaoci.com/upfiles/images/20181215/15448384274864820.jpg"); + width: 100%; + height: 360px; + background-repeat: no-repeat; + background-position: center center; + } -.news_border { - width: 100%; - height: 55px; - border-bottom: 1px solid #ebebeb; - background-color: #fff; -} .list2 { padding: 20px 0; @@ -457,45 +303,16 @@ export default { } } } - .news_detail { - padding: 40px 0; - display: none; - .detail { - .detail_top { - width: 100%; - height: 20px; - margin: 0 0 40px 0; - padding: 0 0 15px 0; - border-bottom: 3px solid #ddd; - display: flex; - justify-content: space-between; - .tabs { - display: flex; - } - - .shares { - display: flex; - //line-height: 35px; - img { - cursor: pointer; - width: 25px; - } - } - } - - } - } } - - #industry_dynamics { .inf { text-align: left; } } -#ceramic{ + +#ceramic { .inf { text-align: left; } diff --git a/src/views/productsCenter/detail.vue b/src/views/productsCenter/detail.vue new file mode 100644 index 0000000..4126514 --- /dev/null +++ b/src/views/productsCenter/detail.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/views/productsCenter/index.vue b/src/views/productsCenter/index.vue index b76d54a..14c4142 100644 --- a/src/views/productsCenter/index.vue +++ b/src/views/productsCenter/index.vue @@ -1,25 +1,7 @@