提交 fc6ccca2 编写于 作者: 钟一霄's avatar 钟一霄

1. 调整顶部标题样式

  2. 日期格式
  2. 左上角时间移到右上角
  3. 左上角新增学校logo
  4. 新增配置文件,可配置 `标签名称、学校logo路径、网页标签icon路径`
上级 f98d4af9
# 宿舍出入记录大屏 # 宿舍出入记录大屏
单点:/et?type=2&token= 单点:/et?type=2&token=
### 更新日志: ### 更新日志:
- 20250813
1. 调整顶部标题样式
2. 日期格式
2. 左上角时间移到右上角
3. 左上角新增学校logo
4. 新增配置文件,可配置 `标签名称、学校logo路径、网页标签icon路径`
- 20250818
- 滚动条样式间距调整
- 20250627
- 标题、数字样式修改
- 2024年05月16 - 2024年05月16
- 首屏增加学生进出异常记录跳转列表,且显示列表数据。 - 首屏增加学生进出异常记录跳转列表,且显示列表数据。
- 2024年05月17 - 2024年05月17
......
...@@ -2,9 +2,24 @@ ...@@ -2,9 +2,24 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>宿舍大屏</title> <script src="./config.js"></script>
<title></title>
<script>
// 设置 <title> 标签的内容
document.addEventListener("DOMContentLoaded", function () {
document.title = TagTitle
// 找到现有的icon link元素
var iconLink = document.querySelector('link[rel="icon"]');
// 如果找到了icon link元素并且SchoolIcon变量存在
if (iconLink) {
// 替换href属性
iconLink.href = SchoolIcon;
}
});
</script>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
此差异已折叠。
// 标签名称
const TagTitle = '宿舍大数据'
// 学校logo路径
const SchoolLogo = 'https://zhxy.gzqy.cn/schoolLogo/logo_white.png'
// 网页标签icon路径
const SchoolIcon = 'https://zhxy.gzqy.cn/schoolLogo/icon.jpg'
\ No newline at end of file
...@@ -3,15 +3,18 @@ ...@@ -3,15 +3,18 @@
<div class="header"> <div class="header">
<div class="h-t"> <div class="h-t">
<div class="h-t-l"> <div class="h-t-l">
<div class="h-t-l-time"> <div class="h-t-l-logo">
<span>{{init.data.time}}</span> <img :src="schoolLogo"/>
</div> </div>
</div> </div>
<div class="h-t-c"> <div class="h-t-c">
<span class="h-t-c-title">{{init.data.initTitle.subject_title}}</span> <span class="h-t-c-title">{{init.data.initTitle.subject_title}}</span>
</div> </div>
<div class="h-t-r"> <div class="h-t-r">
<Icon @click="value = true" style="font-size:1vw; " type="ios-cog" color="#00FFFFFF"/> <div class="h-t-l-time">
<span>{{init.data.time}}</span>
</div>
<Icon @click="value = true" style="font-size:1vw; margin: 0 16px 0 8px; position: relative; top: -9%;" type="ios-cog" color="#00FFFFFF"/>
</div> </div>
</div > </div >
<div class="h-c"> <div class="h-c">
...@@ -497,6 +500,9 @@ import image1 from "../../chartsOptions/image1.js"; ...@@ -497,6 +500,9 @@ import image1 from "../../chartsOptions/image1.js";
import router from "../../router/index.js"; import router from "../../router/index.js";
import dayjs from "dayjs"; import dayjs from "dayjs";
import {Message} from "view-ui-plus"; import {Message} from "view-ui-plus";
const schoolLogo = SchoolLogo
let formData = reactive({ let formData = reactive({
data:{ data:{
"screenid": "", "screenid": "",
...@@ -889,22 +895,38 @@ onMounted(()=>{ ...@@ -889,22 +895,38 @@ onMounted(()=>{
display: flex; display: flex;
justify-content: center; justify-content: center;
align-content:center ; align-content:center ;
.h-t-l{
width: 25%;
height: var(--init-height);
display: flex;
align-items: center;
.h-t-l-time{ .h-t-l-time{
width: var(--init-width); width: var(--init-width);
height: var(--init-height); height: var(--init-height);
margin-bottom: 1.4vh; // margin-bottom: 1.4vh;
margin-left: 0.2vw; // margin-left: 0.2vw;
color: #00ffff; color: #00ffff;
font-size: 1.1vw; font-size: 1.1vw;
position: relative;
top: -9%;
}
.h-t-l{
width: 25%;
height: var(--init-height);
display: flex;
align-items: center;
.h-t-l-logo{
width: 100%;
height: 100%;
padding-left: 60px;
position: relative;
img{
height: 6.4vh;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
} }
} }
.h-t-c{ .h-t-c{
width: 48.1%; width: 50%;
height: var(--init-height); height: var(--init-height);
display: flex; display: flex;
justify-content: center; justify-content: center;
......
...@@ -4,7 +4,7 @@ import {Message} from "view-ui-plus"; ...@@ -4,7 +4,7 @@ import {Message} from "view-ui-plus";
export function getTime(){ export function getTime(){
dayjs.locale('zh-cn') dayjs.locale('zh-cn')
return dayjs().format('YYYY年MM月DD日 HH:mm:ss dddd') // new Date() 换成自己需要转换的数据 return dayjs().format('YYYY-MM-DD HH:mm:ss dddd') // new Date() 换成自己需要转换的数据
} }
export async function myEncapsulationFunciotn(fun) { export async function myEncapsulationFunciotn(fun) {
let res = await fun() let res = await fun()
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或