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

1. 字体改成在线字体

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