From 02f138c2851caf5e8e6795a4d2ae01db23ae9966 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 16 六月 2022 16:59:21 +0800
Subject: [PATCH] 1.修改登录页样式
---
src/views/xtsy/index.vue | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/src/views/xtsy/index.vue b/src/views/xtsy/index.vue
index a1c8a2e..2ba6293 100644
--- a/src/views/xtsy/index.vue
+++ b/src/views/xtsy/index.vue
@@ -1,6 +1,6 @@
<template>
<!-- <div>-->
- <div class="body">
+ <div class="body" :style="{height:mainHeight+'px'}">
<div style="">
<div class="title"><i class="el-icon-s-fold" style="margin-right: 5px" />瀹炴椂鏁版嵁</div>
<div class="top">
@@ -108,6 +108,8 @@
name: 'Index',
data() {
return {
+ mainHeight: 0,
+ tableHeight: 0,
barTopColor01: ['42,197,137', '187,236,218'],
barTopColor02: ['248,216,76', '255,250,238'],
barTopColor03: ['42,197,137', '187,236,218'],
@@ -118,9 +120,18 @@
created() {
},
mounted() {
+ window.addEventListener('resize', this.getHeight)
+ this.getHeight()
this.handleEcharts()
},
methods: {
+ // 鑾峰彇椤甸潰楂樺害
+ getHeight() {
+ this.$nextTick(() => {
+ this.mainHeight = window.innerHeight - 200
+ this.tableHeight = this.mainHeight - 100
+ })
+ },
handleEcharts() {
this.getTopData()
this.getBar01()
@@ -203,23 +214,23 @@
.images {
width: 69px;
height: 69px;
- margin: 30px;
+ margin: 30px calc((10% - 20px));
}
.images1 {
- background: url("../../assets/images/dlyy.png") no-repeat;
+ background: url("../../assets/images/msg_app.png") no-repeat;
}
.images2 {
- background: url("../../assets/images/hyyyy.png") no-repeat;
+ background: url("../../assets/images/msg_huoyue.png") no-repeat;
}
.images3 {
- background: url("../../assets/images/webhy.png") no-repeat;
+ background: url("../../assets/images/msg_web.png") no-repeat;
}
.images4 {
- background: url("../../assets/images/apphy.png") no-repeat;
+ background: url("../../assets/images/msg_zhuceyonghu.png") no-repeat;
}
.content {
--
Gitblit v1.9.3