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

1. 字体改成在线字体

2. 深挖页面顶部标题字体更新,新增logo
3. 日期间隔调整
上级 79660a98
# 宿舍出入记录大屏 # 宿舍出入记录大屏
单点:/et?type=2&token= 单点:/et?type=2&token=
### 更新日志: ### 更新日志:
- 20250814
1. 字体改成在线字体
2. 深挖页面顶部标题字体更新,新增logo
3. 日期间隔调整
- 20250813 - 20250813
1. 调整顶部标题样式 1. 调整顶部标题样式
2. 日期格式 2. 日期格式
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<link rel="icon"/> <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" />
<script src="./config.js"></script> <script src="./config.js"></script>
<link rel="stylesheet" href="/config.css"/>
<link rel="stylesheet" href="/font.css"/>
<title></title> <title></title>
<script> <script>
......
/* 引入字体 */ /* 引入字体 */
@font-face{ @font-face{
font-family: '优设标题黑'; font-family: '优设标题黑';
src: url('YOUSHEBIAOTIHEI-2.TTF'); src: url('/schoolFont/YOUSHEBIAOTIHEI-2.TTF');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@font-face{ @font-face{
font-family: 'PingFang SC'; font-family: 'PingFang SC';
src: url('PingFang-Bold.ttf'); src: url('/schoolFont/PingFang-Bold.ttf');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@font-face{ @font-face{
font-family: 'Bahnschrift'; font-family: 'Bahnschrift';
src: url('bahnschrift.ttf'); src: url('/schoolFont/bahnschrift.ttf');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
\ No newline at end of file
...@@ -5,7 +5,6 @@ import router from "./router/index.js"; ...@@ -5,7 +5,6 @@ import router from "./router/index.js";
import ViewUIPlus from 'view-ui-plus' import ViewUIPlus from 'view-ui-plus'
import 'view-ui-plus/dist/styles/viewuiplus.css' import 'view-ui-plus/dist/styles/viewuiplus.css'
import vue3SeamlessScroll from "vue3-seamless-scroll"; import vue3SeamlessScroll from "vue3-seamless-scroll";
import './assets/font/font.css'
const app = createApp(App) const app = createApp(App)
app.use(vue3SeamlessScroll) app.use(vue3SeamlessScroll)
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
</div> </div>
<div class="h-t-r"> <div class="h-t-r">
<div class="h-t-l-time"> <div class="h-t-l-time">
<span>{{init.data.time}}</span> <!-- <span>{{init.data.time}}</span> -->
<pre v-html="init.data.time"></pre>
</div> </div>
<Icon @click="value = true" style="font-size:1vw; margin: 0 16px 0 8px; position: relative; top: -9%;" type="ios-cog" color="#00FFFFFF"/> <Icon @click="value = true" style="font-size:1vw; margin: 0 16px 0 8px; position: relative; top: -9%;" type="ios-cog" color="#00FFFFFF"/>
</div> </div>
...@@ -904,6 +905,10 @@ onMounted(()=>{ ...@@ -904,6 +905,10 @@ onMounted(()=>{
font-size: 1.1vw; font-size: 1.1vw;
position: relative; position: relative;
top: -9%; top: -9%;
pre{
font-family: Arial;
}
} }
.h-t-l{ .h-t-l{
width: 25%; width: 25%;
......
...@@ -2,14 +2,18 @@ ...@@ -2,14 +2,18 @@
<div class="container1"> <div class="container1">
<div class="header"> <div class="header">
<div class="h-l"> <div class="h-l">
<div class="h-l-time"> <div class="h-t-l-logo">
<span>{{ init.data.time }}</span> <img :src="schoolLogo"/>
</div> </div>
</div> </div>
<div class="h-c"> <div class="h-c">
<span class="h-l-title">{{ init.data.title.subject_title }}</span> <span class="h-l-title">{{ init.data.title.subject_title }}</span>
</div> </div>
<div class="h-r"> <div class="h-r">
<div class="h-l-time">
<!-- <span>{{ init.data.time }}</span> -->
<pre v-html="init.data.time"></pre>
</div>
<div class="h-r-image" @click="back"></div> <div class="h-r-image" @click="back"></div>
</div> </div>
</div> </div>
...@@ -426,6 +430,8 @@ import {useRouter} from "vue-router"; ...@@ -426,6 +430,8 @@ import {useRouter} from "vue-router";
import dayjs from "dayjs"; import dayjs from "dayjs";
import {GetBuildStoreyData} from "../../api/index.js"; import {GetBuildStoreyData} from "../../api/index.js";
const schoolLogo = SchoolLogo
let router = useRouter() let router = useRouter()
let init = reactive({ let init = reactive({
data: { data: {
...@@ -699,7 +705,7 @@ onUnmounted(() => { ...@@ -699,7 +705,7 @@ onUnmounted(() => {
Object.values(init.data.timePiece).map(cur => clearInterval(cur)) Object.values(init.data.timePiece).map(cur => clearInterval(cur))
}) })
</script> </script>
<style scoped> <style scoped lang="less">
.number { .number {
font-size: 1.5vw; font-size: 1.5vw;
font-weight: bolder; font-weight: bolder;
...@@ -737,12 +743,6 @@ onUnmounted(() => { ...@@ -737,12 +743,6 @@ onUnmounted(() => {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
.h-l {
width: 22%;
height: var(--init-height);
display: flex;
align-items: center;
.h-l-time { .h-l-time {
width: var(--init-width); width: var(--init-width);
height: var(--init-height); height: var(--init-height);
...@@ -751,25 +751,50 @@ onUnmounted(() => { ...@@ -751,25 +751,50 @@ onUnmounted(() => {
color: #00ffff; color: #00ffff;
font-size: 1.1vw; font-size: 1.1vw;
pre{
font-family: Arial;
}
}
.h-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-c { .h-c {
width: 48.1%; width: 50%;
height: var(--init-height); height: var(--init-height);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 6.5vh;
.h-l-title { .h-l-title {
width: var(--init-width); width: var(--init-width);
height: var(--init-height); height: var(--init-height);
margin-bottom: 1.5vh; margin-bottom: 1.5vh;
margin-left: 1.5vw;
color: #00ffff; color: #00ffff;
font-size: 1.6vw; // font-size: 1.6vw;
font-weight: bolder; // font-weight: bolder;
font-style: italic; // font-style: italic;
font-size: 1em;
font-family: '优设标题黑';
} }
} }
...@@ -786,7 +811,8 @@ onUnmounted(() => { ...@@ -786,7 +811,8 @@ onUnmounted(() => {
height: 40%; height: 40%;
background: url("../../assets/materialImage/9.返回图标.png"); background: url("../../assets/materialImage/9.返回图标.png");
background-size: 100% 100%; background-size: 100% 100%;
margin-bottom: 1vw; margin: 0 16px 1.4vh 8px;
cursor: pointer;
} }
} }
} }
......
...@@ -18,6 +18,11 @@ export default defineConfig({ ...@@ -18,6 +18,11 @@ export default defineConfig({
changeOrigin: true, // 允许跨域 changeOrigin: true, // 允许跨域
// rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空 // rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空
}, },
"/schoolFont": {
target: "https://zhxy.gzqy.cn/", // 真实接口地址, 后端给的基地址
changeOrigin: true, // 允许跨域
// rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空
},
}, },
} }
}) })
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或