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

1. 调整顶部标题样式

  2. 日期格式
  2. 左上角时间移到右上角
  3. 左上角新增学校logo
  4. 新增配置文件,可配置 `标签名称、学校logo路径、网页标签icon路径`
上级 f98d4af9
# 宿舍出入记录大屏
单点:/et?type=2&token=
### 更新日志:
- 20250813
1. 调整顶部标题样式
2. 日期格式
2. 左上角时间移到右上角
3. 左上角新增学校logo
4. 新增配置文件,可配置 `标签名称、学校logo路径、网页标签icon路径`
- 20250818
- 滚动条样式间距调整
- 20250627
- 标题、数字样式修改
- 2024年05月16
- 首屏增加学生进出异常记录跳转列表,且显示列表数据。
- 2024年05月17
......
......@@ -2,9 +2,24 @@
<html lang="en">
<head>
<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" />
<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>
<body>
<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 @@
<div class="header">
<div class="h-t">
<div class="h-t-l">
<div class="h-t-l-time">
<span>{{init.data.time}}</span>
<div class="h-t-l-logo">
<img :src="schoolLogo"/>
</div>
</div>
<div class="h-t-c">
<span class="h-t-c-title">{{init.data.initTitle.subject_title}}</span>
</div>
<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 class="h-c">
......@@ -497,6 +500,9 @@ import image1 from "../../chartsOptions/image1.js";
import router from "../../router/index.js";
import dayjs from "dayjs";
import {Message} from "view-ui-plus";
const schoolLogo = SchoolLogo
let formData = reactive({
data:{
"screenid": "",
......@@ -889,22 +895,38 @@ onMounted(()=>{
display: flex;
justify-content: center;
align-content:center ;
.h-t-l-time{
width: var(--init-width);
height: var(--init-height);
// margin-bottom: 1.4vh;
// margin-left: 0.2vw;
color: #00ffff;
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-time{
width: var(--init-width);
height: var(--init-height);
margin-bottom: 1.4vh;
margin-left: 0.2vw;
color: #00ffff;
font-size: 1.1vw;
.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{
width: 48.1%;
width: 50%;
height: var(--init-height);
display: flex;
justify-content: center;
......
......@@ -4,7 +4,7 @@ import {Message} from "view-ui-plus";
export function getTime(){
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) {
let res = await fun()
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或