clay commit : header icon

This commit is contained in:
clay
2022-10-23 00:24:45 +08:00
parent a113696dfd
commit 408c27fad2
4 changed files with 39 additions and 19 deletions

View File

@@ -8,7 +8,8 @@
<el-row>
<el-col :span="12">
<div class="fLeft" style="margin-top: 1rem">
<p style="font-family:Verdana, Geneva, sans-serif;font-weight:500;font-size:2rem; padding-bottom:6px; ">{{ $t('message.contact_us') }}
<p style="font-family:Verdana, Geneva, sans-serif;font-weight:500;font-size:2rem; padding-bottom:6px; ">
{{ $t('message.contact_us') }}
<!--CONTACT US-->
</p>
<p style="margin-top: 6px;">
@@ -31,8 +32,9 @@
</el-col>
<el-col :span="12">
<table class="fRight" cellpadding="0" cellspacing="0" border="0">
<tbody><tr>
<td><img style="width: 6.7rem;" src="http://sist.swjtu.edu.cn:80/zh/images/logo3.jpg"></td>
<tbody>
<tr>
<td><img style="width: 6.7rem;" src="http://sist.swjtu.edu.cn:80/zh/images/logo3.jpg"></td>
<td><p><a href="http://www.swjtu.edu.cn/" target="_blank">
{{ $t('message.chinese_site') }}
<!--西南交通大学中文-->
@@ -63,7 +65,8 @@
</a></p>
</td>
</tr>
</tbody></table>
</tbody>
</table>
</el-col>
</el-row>
</el-col>
@@ -84,21 +87,25 @@ export default {
background-color: rgb(107, 109, 108);
color: #b2b2b2 !important;
font-size: 1.2rem;
a{
a {
color: #b2b2b2 !important;
text-decoration:none;
text-decoration: none;
}
.fLeft{
.fLeft {
text-decoration: none;
margin-top: 1rem;
p {
margin-top: .5rem;
}
}
.fRight{
.fRight {
margin-top: 1rem;
text-decoration: red;
p {
margin-left: 1rem;
margin-top: .5rem;

View File

@@ -35,20 +35,33 @@
</template>
<span v-for="(item,itemIndex) in menu.children" :key="itemIndex">
<el-submenu :index="menuIndex +'-'+itemIndex" v-if="item.children.length > 0 && item.displayType != 4" >
<template slot="title" v-if="item.children.length > 0 &&$i18n.locale === 'cn' ">{{ item.title }}</template>
<template slot="title" v-if="item.children.length > 0 && $i18n.locale === 'en'">{{ item.englishTitle }}</template>
<el-submenu :index="menuIndex +'-'+itemIndex" v-if="item.children.length > 0 && item.displayType != 4">
<template slot="title" v-if="item.children.length > 0 &&$i18n.locale === 'cn' ">{{
item.title
}}</template>
<template slot="title" v-if="item.children.length > 0 && $i18n.locale === 'en'">{{
item.englishTitle
}}</template>
<el-menu-item v-for="(chile ,chileIndex) in item.children" :key="chileIndex"
v-if="chile.displayType != 4"
:index="menuIndex + '-' +itemIndex + '-' +chileIndex" @click="clickMenu(chile,item)">
<span v-if="$i18n.locale === 'cn'&&(chile.displayType == 1 || chile.displayType == 3)">{{ chile.title }}</span>
<span v-if="$i18n.locale === 'en'&&(chile.displayType == 1 || chile.displayType == 2)">{{ chile.englishTitle }}</span>
<span v-if="$i18n.locale === 'cn'&&(chile.displayType == 1 || chile.displayType == 3)">{{
chile.title
}}</span>
<span v-if="$i18n.locale === 'en'&&(chile.displayType == 1 || chile.displayType == 2)">{{
chile.englishTitle
}}</span>
</el-menu-item>
</el-submenu>
<el-menu-item v-if="!item.children.length>0 && (item.displayType != 4)" :key="itemIndex" :index="menuIndex +'-'+itemIndex"
<el-menu-item v-if="!item.children.length>0 && (item.displayType != 4)" :key="itemIndex"
:index="menuIndex +'-'+itemIndex"
@click="clickSecondMenu(item)">
<span v-if="$i18n.locale === 'cn'&&(item.displayType == 1 || item.displayType == 3)">{{ item.title }}</span>
<span v-if="$i18n.locale === 'en'&&(item.displayType == 1 || item.displayType == 2)">{{ item.englishTitle }}</span>
<span v-if="$i18n.locale === 'cn'&&(item.displayType == 1 || item.displayType == 3)">{{
item.title
}}</span>
<span v-if="$i18n.locale === 'en'&&(item.displayType == 1 || item.displayType == 2)">{{
item.englishTitle
}}</span>
</el-menu-item>
</span>
</el-submenu>

View File

@@ -233,7 +233,7 @@ export default {
pageSize: 5
}
this.listDataType = 0
if (this.type === 4||menu.isSimple == 1) {
if (this.type === 4 || menu.isSimple == 1) {
data.pageSize = 20
this.listDataType = 1
}