Commit cc6ff2b2 authored by 吴冠's avatar 吴冠

首页---

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