Commit d34cecae authored by 姜启航's avatar 姜启航

修改关于我们的二级菜单和人才招聘的显示问题

parent 1e2ae194
...@@ -49,10 +49,19 @@ ...@@ -49,10 +49,19 @@
} }
}, },
methods: { methods: {
add(){
$('.com li').click(function(){
$(this).addClass('active').siblings().removeClass('active')
// $('.content ul').eq($(this).index()).css('display','block').siblings().css('display','none');
})
}
}, },
computed: {...mapGetters(['gettersMsg'])}, computed: {...mapGetters(['gettersMsg'])},
created () { created () {
},
mounted(){
this.add()
} }
...@@ -64,11 +73,6 @@ ...@@ -64,11 +73,6 @@
box-sizing: border-box; box-sizing: border-box;
} }
/*背景图 */ /*背景图 */
.router-link-active{
/* background-color: red; */
background-color: #B5A14E;
color: #fff;
}
.background { .background {
min-width: 1200px; min-width: 1200px;
/* width: 100%; */ /* width: 100%; */
......
...@@ -12,19 +12,20 @@ ...@@ -12,19 +12,20 @@
</div> </div>
<div class="content"> <div class="content">
<p class="ip">厦门</p> <p class="ip">厦门</p>
<div class="data"></div> <!-- <div class="lalala"><div class="data"></div></div> -->
<div class="pos" v-for="(item,index) in items"> <div class="pos" v-for="(item,index) in items">
<div class="top" @click="show(index)"> <div class="top" @click="show(index)">
<div class="name">{{item.name}}</div> <div class="name">{{item.post_title}}</div>
<div class="dic">{{item.dic}}</div> <div class="dic">{{item.dic}}</div>
<div class="date"> <div class="date">
<span>{{item.date}}</span> <span>{{time}}</span>
<span class="fa fa-angle-down"></span> <span class="fa fa-angle-down"></span>
</div> </div>
</div> </div>
<div class="bom"> <div class="bom">
</div> </div>
<!-- <div class="boms"></div> -->
</div> </div>
</div> </div>
...@@ -44,17 +45,8 @@ ...@@ -44,17 +45,8 @@
return { return {
msg: "talents", msg: "talents",
navActive:'', navActive:'',
items:[ items:[],
// {name:'会计总监',dic:'会计',date:'2017-05-03',}, time:[]
// {name:'移动产品经理',dic:'技术',date:'2017-05-03',},
// {name:'视觉设计师',dic:'设计',date:'2017-05-03',},
// {name:'网页设计师',dic:'设计',date:'2017-05-03',},
// {name:'会计总监',dic:'会计',date:'2017-05-03',},
// {name:'移动产品经理',dic:'技术',date:'2017-05-03',},
// {name:'视觉设计师',dic:'设计',date:'2017-05-03',},
// {name:'网页设计师',dic:'设计',date:'2017-05-03',}
],
data:[]
}; };
...@@ -67,19 +59,12 @@ ...@@ -67,19 +59,12 @@
getLiveList() { getLiveList() {
this.$http.post('/api/postlist?category_id=2') this.$http.post('/api/postlist?category_id=2')
.then((res) => { .then((res) => {
this.items=res.body.data
res.body.data.forEach(e => { this.items.forEach(e => {
this.data=e this.time=e.published_time.substring(e.published_time.length-9,e.published_time.length-20)
// console.log(e.post_content) console.log()
// $('.data').html(e.post_content) $('.bom').html(e.post_content)
console.log(this.data)
}); });
// this.data=res.body.data[0].
console.log(res.body.data)
// console.log(this.data)
// var _htmlData=$(this.data);
// console.log(this._htmlData)
}) })
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)
...@@ -94,6 +79,9 @@ ...@@ -94,6 +79,9 @@
created () { created () {
this.getLiveList() this.getLiveList()
this.lalala() this.lalala()
},
mounted () {
this.getLiveList()
} }
}; };
...@@ -160,13 +148,13 @@ ...@@ -160,13 +148,13 @@
.top{ .top{
display: flex; display: flex;
border-bottom: 1px solid #aaa; border-bottom: 1px solid #aaa;
height: 3.6vw; height: 50px;
line-height: 3.6vw; line-height: 50px;
} }
.name{ .name{
width: 55%; width: 55%;
text-align: left; text-align: left;
padding-left: 1.5vw; padding-left: 30px;
} }
.dic{ .dic{
width: 15%; width: 15%;
...@@ -176,13 +164,14 @@ ...@@ -176,13 +164,14 @@
text-align: right; text-align: right;
} }
.fa{ .fa{
margin-left: 2.9vw; margin-left: 56px;
padding-right: 1.5vw; padding-right: 28px;
} }
.bom{ .bom{
text-align: left; text-align: left;
margin-top: 2vw; padding-left: 30px;
/* margin-top: 2vw; */
display: none; display: none;
} }
.show{ .show{
...@@ -192,21 +181,6 @@ ...@@ -192,21 +181,6 @@
background-color: #F2F2F2; background-color: #F2F2F2;
border: none; border: none;
} }
.bom div{
padding-left: 1.5vw;
}
.bom div h1,p{
margin-top: 1.3vw;
}
.bom div span{
display: block;
width: 12vw;
height: 2.5vw;
text-align: center;
line-height: 2.5vw;
color: #fff;
background-color: #B5A14E;
margin-top: 2.3vw;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment