diff --git a/package.json b/package.json index 6eb67f6..1a5cda7 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ }, "dependencies": { "@element-plus/icons": "^0.0.11", + "axios": "^1.6.7", "echarts": "^5.4.3", "element-plus": "^2.3.8", "vue": "^3.0.4", diff --git a/src/assets/image/banner01.jpg b/src/assets/image/banner01.jpg new file mode 100644 index 0000000..9493b08 Binary files /dev/null and b/src/assets/image/banner01.jpg differ diff --git a/src/components/topHeader.vue b/src/components/topHeader.vue index 0d7df0d..ce4953e 100644 --- a/src/components/topHeader.vue +++ b/src/components/topHeader.vue @@ -1,23 +1,6 @@ @@ -30,9 +13,9 @@ import login from "./login.vue" const visible = ref(false) const routerPath = ref([ { path: "/home", name: "首页" }, - { path: "/rank", name: "企业榜单" }, - { path: "/rating", name: "参与评级" }, - { path: "/my", name: "我的评级" }, + // { path: "/rank", name: "企业榜单" }, + // { path: "/rating", name: "参与评级" }, + // { path: "/my", name: "我的评级" }, ]) const user = ref({ email: "", company_name: "" }) const router = useRouter() @@ -63,11 +46,15 @@ const close = (value) => { display: flex; justify-content: space-between; align-items: center; - background-color: rgba(0, 0, 0, .05); - background-color: #fff; + background-color: rgb(255,255,255); + background-image: url('src/assets/image/banner01.jpg'); + background-size: auto calc(100% - 10px); /* 图片的高度为容器高度减去上下边距 */ + background-position: center 5px; /* 图片垂直居中,但向下偏移5px */ + background-repeat: no-repeat; position: fixed; width: 100%; z-index: 999; top: 0; + height: 60px; /* 假设你的容器高度为60px */ } \ No newline at end of file diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index f56c3e2..37d85c6 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -1,53 +1,74 @@ - + - + \ No newline at end of file