Commit cc6ff2b2 authored by 吴冠's avatar 吴冠

首页---

parent 2fcc836c
......@@ -73,6 +73,9 @@
</script>
<style scoped>
.el-menu-item{
cursor: pointer;
}
.sidebar {
width: 2.4rem;
border: 1px solid rgba(219, 219, 219, 1);
......
......@@ -63,6 +63,7 @@
.right-pos{
position: absolute;
left:980px;
cursor:pointer;
}
.bg {}
......
<template>
<div class="nav">
<div class="nav-list content flex">
<div :to="item.to" tag="div" :class="index==nav?'active':''" v-for="(item,index) in linklist" :key="index"
<div class="nav-sty" :to="item.to" tag="div" :class="index==nav?'active':''" v-for="(item,index) in linklist" :key="index"
@click="change(index,item.to)">{{item.name}}</div>
</div>
</div>
......@@ -88,6 +88,9 @@
</script>
<style scoped>
.nav-sty{
cursor: pointer;
}
.nav {
width: 100%;
border-bottom: .05rem solid #D6D6D6;
......
......@@ -4,7 +4,9 @@
<div class="banner">
<el-carousel trigger="click" height="5.41rem">
<el-carousel-item v-for="(item,index) in picArr" :key="index">
<img :src="item.picUrl" alt="">
<a :href="item.picUrl">
<img :src="item.picUrl" alt="" class="src-img">
</a>
</el-carousel-item>
</el-carousel>
</div>
......@@ -19,8 +21,8 @@
<div class="content message">
<div v-for="(item,index) in messageList" :key="index" class="message-item">
<div class="t3" style="margin-bottom: 0.2rem;">{{item.head}}</div>
<div class="flex-between">
<img :src="item.src" alt="">
<div class="flex-between" >
<img :src="item.src" alt="" >
<div>{{item.title}}</div>
</div>
</div>
......@@ -62,9 +64,7 @@ import {getSecond} from '@/common/list.js'
//添加验证方法
async getSecond(){
let tokenStr = window.localStorage.getItem('token')
if(!tokenStr){
this.$router.push('/login/user')
}else{
if(tokenStr){
this.showDefault = false
const {data:res} = await getSecond()
console.log(res)
......@@ -91,7 +91,7 @@ import {getSecond} from '@/common/list.js'
checkout(){
window.localStorage.clear()
this.$router.push("/login/user")
}
},
},
data() {
return {
......@@ -132,6 +132,9 @@ import {getSecond} from '@/common/list.js'
</script>
<style scoped>
.src-img{
cursor: pointer;
}
.banner {
width: 9.16rem;
height: 5.41rem;
......@@ -174,6 +177,7 @@ import {getSecond} from '@/common/list.js'
font-size: .16rem;
font-weight: 300;
color: rgba(4, 134, 254, 1);
cursor: pointer;
}
.login>.author {
......
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