Ver código fonte

按钮样式

master
我叫MT 1 ano atrás
pai
commit
23ff504168
3 arquivos alterados com 18 adições e 11 exclusões
  1. +2
    -2
      src/components/header.vue
  2. +9
    -6
      src/views/home/index.vue
  3. +7
    -3
      src/views/information/index.vue

+ 2
- 2
src/components/header.vue Ver arquivo

@@ -1,6 +1,6 @@
<template>
<el-menu
:default-active="activeIndex"
:default-active="this.$route.path"
class="el-menu-demo"
mode="horizontal"
background-color="#00000063"
@@ -15,7 +15,7 @@ export default {
name: 'yqheaders',
data () {
return {
activeIndex: '/',
activeIndex: this.$route.path,
layers: [
{ path: '/', name: '首页' },
{ path: '/information', name: '汽车资讯' },


+ 9
- 6
src/views/home/index.vue Ver arquivo

@@ -45,7 +45,7 @@
<p class="content">{{ item.news.detailText }}</p>
</div>
<div class="btn">
<el-button plain class="more" size="small" @click="routerToMate">MORE</el-button>
<el-button plain class="more more1" size="small" @click="routerToMate">MORE</el-button>
</div>
</div>
<div class="yyzrbimg lr" >
@@ -210,9 +210,6 @@ export default {
#hot, #daliay {
width: 100%;
background: #E3E5EA;
// display: flex;
// align-items: center;
// justify-content: center;
padding: 25px 0;
.content {
width: 1200px;
@@ -315,8 +312,6 @@ export default {
position: relative;
text-align: left;
.more {
// position: absolute;
// left: 0px;
background: none !important;
border: 1px solid #00F6BD;
opacity: 0.8;
@@ -324,6 +319,10 @@ export default {
color: #00F6BD;
margin-top: 30px;
}
.more:hover {
border: 1px solid #088669;
color: #088669;
}
}
}
}
@@ -405,6 +404,10 @@ export default {
border-radius: 4px;
width: 80px;
}
.more1:hover {
border: 1px solid #202020;
color: #202020;
}
}
}
.yyzrbimg {


+ 7
- 3
src/views/information/index.vue Ver arquivo

@@ -31,7 +31,7 @@
<div class="content">
<div class="htitle">
<a class="tle">汽车文章</a>
<el-button type="text" @click="routerTo">MORE+</el-button>
<el-button type="text" class="more" @click="routerTo">MORE+</el-button>
</div>
<div id="hotList">
<div class="list" v-for="(item, index) in carList" :key="index" @click="routerToarticleDetails(item.detail)">
@@ -87,7 +87,7 @@ export default {
},
methods: {
handleChange(newIndex) {
this.currentIndex = newIndex;
this.currentIndex = newIndex;
},
routerToarticleDetails (value) {
localStorage.setItem('article', value)
@@ -258,6 +258,10 @@ export default {
cursor: pointer;
z-index: 9999;
}
.more:hover {
border: 1px solid #088669;
color: #088669;
}
}
}
#hotList {
@@ -349,7 +353,7 @@ export default {
.carvideoShadow{
box-shadow: 0 2px 12px 0 #666;
margin: 12px;
}
}
.carvideo {
position: relative;
position: relative;


Carregando…
Cancelar
Salvar