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

邵阳职业样式

上级 80e554c0
流水线 #39796 已失败
...@@ -181,6 +181,93 @@ ...@@ -181,6 +181,93 @@
"strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
"wrap-ansi": "^8.1.0", "wrap-ansi": "^8.1.0",
"wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
},
"dependencies": {
"ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true
},
"string-width-cjs": {
"version": "npm:string-width@4.2.3",
"resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"requires": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^6.0.1"
},
"dependencies": {
"strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"requires": {
"ansi-regex": "^5.0.1"
}
}
}
},
"strip-ansi-cjs": {
"version": "npm:strip-ansi@6.0.1",
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"requires": {
"ansi-regex": "^5.0.1"
}
},
"wrap-ansi-cjs": {
"version": "npm:wrap-ansi@7.0.0",
"resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"requires": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
},
"dependencies": {
"string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"requires": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^6.0.1"
}
},
"strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"requires": {
"ansi-regex": "^5.0.1"
}
}
}
}
} }
}, },
"@jridgewell/gen-mapping": { "@jridgewell/gen-mapping": {
...@@ -1365,40 +1452,6 @@ ...@@ -1365,40 +1452,6 @@
"strip-ansi": "^7.0.1" "strip-ansi": "^7.0.1"
} }
}, },
"string-width-cjs": {
"version": "npm:string-width@4.2.3",
"resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"requires": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^6.0.1"
},
"dependencies": {
"ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true
},
"emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true
},
"strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"requires": {
"ansi-regex": "^5.0.1"
}
}
}
},
"strip-ansi": { "strip-ansi": {
"version": "7.1.0", "version": "7.1.0",
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz",
...@@ -1408,23 +1461,6 @@ ...@@ -1408,23 +1461,6 @@
"ansi-regex": "^6.0.1" "ansi-regex": "^6.0.1"
} }
}, },
"strip-ansi-cjs": {
"version": "npm:strip-ansi@6.0.1",
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"requires": {
"ansi-regex": "^5.0.1"
},
"dependencies": {
"ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true
}
}
},
"sucrase": { "sucrase": {
"version": "3.35.0", "version": "3.35.0",
"resolved": "https://registry.npmmirror.com/sucrase/-/sucrase-3.35.0.tgz", "resolved": "https://registry.npmmirror.com/sucrase/-/sucrase-3.35.0.tgz",
...@@ -1633,60 +1669,6 @@ ...@@ -1633,60 +1669,6 @@
"strip-ansi": "^7.0.1" "strip-ansi": "^7.0.1"
} }
}, },
"wrap-ansi-cjs": {
"version": "npm:wrap-ansi@7.0.0",
"resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"requires": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
},
"dependencies": {
"ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true
},
"string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"requires": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^6.0.1"
}
},
"strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"requires": {
"ansi-regex": "^5.0.1"
}
}
}
},
"yaml": { "yaml": {
"version": "2.4.2", "version": "2.4.2",
"resolved": "https://registry.npmmirror.com/yaml/-/yaml-2.4.2.tgz", "resolved": "https://registry.npmmirror.com/yaml/-/yaml-2.4.2.tgz",
......
const publicConfig = { const publicConfig = {
// 登录超时页路径 // 登录超时页路径
loginTimeoutUrl: '/leaderCockpit/login_time_out.html', loginTimeoutUrl: '/leaderCockpit/login_time_out.html',
// 学校logo路径
SchoolLogo: "https://yth.syzyedu.com/yxscreendata/logo.png",
// 校训
schoolMotto: ['明德 笃学 强能'],
} }
\ No newline at end of file
export default {
// 在main.js内全局引入并注册
// 指令:3秒内点击5次触发
click5: {
mounted(el, binding) {
let clickCount = 0;
let timer = null;
// 监听 click 事件
el.addEventListener('click', () => {
// console.log('触发, clickCount', clickCount)
clickCount++;
// 启动计时器
if (!timer) {
timer = setTimeout(() => {
clickCount = 0; // 超过 3 秒重置计数
timer = null;
}, 3000);
}
// 达到点击次数,触发事件
if (clickCount === 5) {
clearTimeout(timer); // 清除计时器
timer = null;
clickCount = 0;
// 调用绑定的回调函数
if (typeof binding.value === 'function') {
binding.value();
}
}
});
},
unmounted(el) {
el.removeEventListener('click', null); // 清理事件监听
}
}
};
export{
versions
}
const versions = 'v20251111-syzy-blue'
\ No newline at end of file
...@@ -5,7 +5,12 @@ import router from "./router/index.js"; ...@@ -5,7 +5,12 @@ 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 multiClick from './directives/multiClick'
// 注册指令
const app = createApp(App) const app = createApp(App)
app.directive('click-5', multiClick.click5)
app.use(vue3SeamlessScroll) app.use(vue3SeamlessScroll)
app.use(router) app.use(router)
......
...@@ -3,16 +3,19 @@ ...@@ -3,16 +3,19 @@
<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"> <img :src="pConfig.SchoolLogo"/>
<!-- <span>{{init.data.time}}</span>-->
</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-r-motto">
<div class="h-r-image" @click="back"></div> <span v-for="(motto, mi) in pConfig.schoolMotto" :key="mi">{{ motto }}</span>
</div>
<div class="h-t-r-time">
<span v-for="(time, ti) in init.data.time" :key="ti">{{ time }}</span>
</div>
<img class="h-r-image" src="../../assets/大屏统一素材/back.png" @click="back"/>
</div> </div>
</div > </div >
</div> </div>
...@@ -214,7 +217,11 @@ import {myEncapsulationFunciotn} from "../../utils/index.js"; ...@@ -214,7 +217,11 @@ import {myEncapsulationFunciotn} from "../../utils/index.js";
import image1 from "../../chartsOptions/image1.js"; 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 'dayjs/locale/zh-cn'
import {Message, Page, Select, Spin} from "view-ui-plus"; import {Message, Page, Select, Spin} from "view-ui-plus";
dayjs.locale('zh-cn')
const pConfig = ref(publicConfig)
let formData = reactive({ let formData = reactive({
data:{ data:{
...@@ -538,7 +545,11 @@ const GetDormScreenInit = async () => { ...@@ -538,7 +545,11 @@ const GetDormScreenInit = async () => {
} }
const timePiece = ()=>{ const timePiece = ()=>{
init.data.piece = setInterval(()=>{ init.data.piece = setInterval(()=>{
init.data.time = utils.getTime() init.data.time = [
dayjs().format('YYYY年MM月DD日'),
dayjs().format('HH:mm:ss'),
dayjs().format('dddd'),
]
},1000) },1000)
} }
const openIndexDB = ()=>{ const openIndexDB = ()=>{
...@@ -710,7 +721,7 @@ onMounted(()=>{ ...@@ -710,7 +721,7 @@ onMounted(()=>{
}) })
</script> </script>
<style scoped > <style scoped lang="less">
:root{ :root{
--init-width:100%; --init-width:100%;
...@@ -737,48 +748,71 @@ onMounted(()=>{ ...@@ -737,48 +748,71 @@ onMounted(()=>{
justify-content: center; justify-content: center;
align-content:center ; align-content:center ;
.h-t-l{ .h-t-l{
width: 25%; width: 30%;
height: var(--init-height); height: var(--init-height);
position: relative;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
.h-t-l-time{
width: var(--init-width); img{
height: var(--init-height); width: auto;
margin-bottom: 1.4vh; height: 64px;
margin-left: 0.2vw; position: absolute;
color: #00ffff; left: 60px;
font-size: 1.1vw; top: 50%;
transform: translateY(-50%);
} }
} }
.h-t-c{ .h-t-c{
width: 48.1%; width: 40%;
height: var(--init-height); height: var(--init-height);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.h-t-c-title{
.h-t-c-title {
width: var(--init-width); width: var(--init-width);
height: var(--init-height); height: var(--init-height);
margin-bottom: 1.5vh; color: #c2efff;
color: white; font-size: 50px;
font-size: 1.6vw; font-family: "华文新魏";
} }
} }
.h-t-r{ .h-t-r{
width: 25%; width: 30%;
height: var(--init-height); height: var(--init-height);
position: relative;
display: flex; display: flex;
padding-top: 0.5vh; flex-direction: column;
justify-content: flex-end; justify-content: center;
cursor: pointer; align-items: center;
.h-r-image{ font-family: "华文新魏";
width: 18%; color: #c2efff;
height: 35%;
background: url("../../assets/materialImage/9.返回图标.png"); .h-t-r-motto{
background-size: 100% 100%; font-size: 30px;
margin-bottom: 1vw; }
.h-t-r-time{
font-size: 16px;
}
.h-t-r-time{
span{
margin-right: 20px;
}
span:last-child{
margin-right: 0;
}
}
.h-r-image {
width: auto;
height: 30px;
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
} }
} }
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
<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"> <img :src="pConfig.SchoolLogo"/>
<span>{{ init.data.time }}</span>
</div>
</div> </div>
<div class="h-t-c"> <div class="h-t-c" v-click-5="alertVersion">
<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">
<div class="h-t-r-motto"> <div class="h-t-r-motto">
<span>求真笃行</span> <span v-for="(motto, mi) in pConfig.schoolMotto" :key="mi">{{ motto }}</span>
<span>厚德强能</span> </div>
<div class="h-t-r-time">
<span v-for="(time, ti) in init.data.time" :key="ti">{{ time }}</span>
</div> </div>
<Icon color="#fff" style="font-size:1vw; " type="ios-cog" @click="value = true"/> <Icon color="#fff" style="font-size:1vw; " type="ios-cog" @click="value = true"/>
</div> </div>
...@@ -509,7 +509,12 @@ import {myEncapsulationFunciotn} from "../../utils/index.js"; ...@@ -509,7 +509,12 @@ import {myEncapsulationFunciotn} from "../../utils/index.js";
import image1 from "../../chartsOptions/image1.js"; 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 'dayjs/locale/zh-cn'
import {Message} from "view-ui-plus"; import {Message} from "view-ui-plus";
dayjs.locale('zh-cn')
import { versions } from '../../directives/versions'
const pConfig = ref(publicConfig)
let formData = reactive({ let formData = reactive({
data: { data: {
...@@ -630,6 +635,10 @@ const to = (key) => { ...@@ -630,6 +635,10 @@ const to = (key) => {
}) })
} }
function alertVersion() {
alert('versions: ' + versions)
}
const updateTitle = () => { const updateTitle = () => {
myEncapsulationFunciotn(async () => { myEncapsulationFunciotn(async () => {
const res = await api.GetDormScreenSave(formData.data) const res = await api.GetDormScreenSave(formData.data)
...@@ -815,7 +824,11 @@ const GetDormScreenInit = async () => { ...@@ -815,7 +824,11 @@ const GetDormScreenInit = async () => {
} }
const timePiece = () => { const timePiece = () => {
init.data.piece = setInterval(() => { init.data.piece = setInterval(() => {
init.data.time = utils.getTime() init.data.time = [
dayjs().format('YYYY年MM月DD日'),
dayjs().format('HH:mm:ss'),
dayjs().format('dddd'),
]
}, 1000) }, 1000)
} }
const openIndexDB = () => { const openIndexDB = () => {
...@@ -901,24 +914,25 @@ onMounted(() => { ...@@ -901,24 +914,25 @@ onMounted(() => {
align-content: center; align-content: center;
.h-t-l { .h-t-l {
width: 25%; width: 30%;
height: var(--init-height); height: var(--init-height);
position: relative;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.h-t-l-time { img{
width: var(--init-width); width: auto;
height: var(--init-height); height: 64px;
// margin-bottom: 1.4vh; position: absolute;
// margin-left: 0.2vw; left: 60px;
color: #c2efff; top: 50%;
font-size: 24px; transform: translateY(-50%);
} }
} }
.h-t-c { .h-t-c {
width: 48.1%; width: 40%;
height: var(--init-height); height: var(--init-height);
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -934,22 +948,36 @@ onMounted(() => { ...@@ -934,22 +948,36 @@ onMounted(() => {
} }
.h-t-r { .h-t-r {
width: 25%; width: 30%;
height: var(--init-height); height: var(--init-height);
position: relative;
display: flex; display: flex;
padding-top: 0.8vh; flex-direction: column;
justify-content: flex-end; justify-content: center;
cursor: pointer; align-items: center;
font-family: "华文新魏";
color: #c2efff;
.h-t-r-motto{ .h-t-r-motto{
width: 100%; font-size: 30px;
height: 100%; }
font-size: 32px; .h-t-r-time{
font-family: "华文新魏"; font-size: 16px;
color: #c2efff; }
display: flex; .h-t-r-time{
justify-content: space-evenly; span{
align-items: center; margin-right: 20px;
}
span:last-child{
margin-right: 0;
}
}
.ivu-icon{
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
} }
} }
......
...@@ -2,15 +2,19 @@ ...@@ -2,15 +2,19 @@
<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"> <img :src="pConfig.SchoolLogo"/>
<!-- <span>{{init.data.time}}</span>-->
</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-r-image" @click="back"></div>--> <div class="h-t-r-motto">
<span v-for="(motto, mi) in pConfig.schoolMotto" :key="mi">{{ motto }}</span>
</div>
<div class="h-t-r-time">
<span v-for="(time, ti) in init.data.time" :key="ti">{{ time }}</span>
</div>
<img class="h-r-image" src="../../assets/大屏统一素材/back.png" @click="back"/>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
...@@ -405,13 +409,17 @@ ...@@ -405,13 +409,17 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import {computed, onMounted, onUnmounted, reactive, watch} from "vue"; import {computed, onMounted, onUnmounted, reactive, ref, watch} from "vue";
import * as utils from "../../utils/index" import * as utils from "../../utils/index"
import * as api from '../../api/index.js' import * as api from '../../api/index.js'
import {Vue3SeamlessScroll} from "vue3-seamless-scroll"; import {Vue3SeamlessScroll} from "vue3-seamless-scroll";
import {useRouter} from "vue-router"; import {useRouter} from "vue-router";
import dayjs from "dayjs"; import dayjs from "dayjs";
import 'dayjs/locale/zh-cn'
import {GetBuildStoreyData} from "../../api/index.js"; import {GetBuildStoreyData} from "../../api/index.js";
dayjs.locale('zh-cn')
const pConfig = ref(publicConfig)
let router = useRouter() let router = useRouter()
let init = reactive({ let init = reactive({
...@@ -641,7 +649,11 @@ const back = () => { ...@@ -641,7 +649,11 @@ const back = () => {
} }
const timePiece = () => { const timePiece = () => {
init.data.piece = setInterval(() => { init.data.piece = setInterval(() => {
init.data.time = utils.getTime() init.data.time = [
dayjs().format('YYYY年MM月DD日'),
dayjs().format('HH:mm:ss'),
dayjs().format('dddd'),
]
}, 1000) }, 1000)
} }
const initTitle = async () => { const initTitle = async () => {
...@@ -659,7 +671,7 @@ onUnmounted(() => { ...@@ -659,7 +671,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;
...@@ -698,24 +710,25 @@ onUnmounted(() => { ...@@ -698,24 +710,25 @@ onUnmounted(() => {
justify-content: space-evenly; justify-content: space-evenly;
.h-l { .h-l {
width: 22%; width: 30%;
height: var(--init-height); height: var(--init-height);
position: relative;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
.h-l-time { img{
width: var(--init-width); width: auto;
height: var(--init-height); height: 64px;
margin-bottom: 1.4vh; position: absolute;
margin-left: 0.2vw; left: 60px;
color: #00ffff; top: 50%;
font-size: 1.1vw; transform: translateY(-50%);
} }
} }
.h-c { .h-c {
width: 48.1%; width: 40%;
height: var(--init-height); height: var(--init-height);
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -724,29 +737,47 @@ onUnmounted(() => { ...@@ -724,29 +737,47 @@ onUnmounted(() => {
.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-left: 1.5vw;
font-size: 1.6vw;
color: #c2efff; color: #c2efff;
font-size: 50px;
font-family: "华文新魏";
} }
} }
.h-r { .h-r {
width: 25%; width: 30%;
height: var(--init-height); height: var(--init-height);
position: relative;
display: flex; display: flex;
flex-direction: column;
justify-content: center;
align-items: center; align-items: center;
justify-content: flex-end; font-family: "华文新魏";
color: #c2efff;
.h-t-r-motto{
font-size: 30px;
}
.h-t-r-time{
font-size: 16px;
}
.h-t-r-time{
span{
margin-right: 20px;
}
span:last-child{
margin-right: 0;
}
}
.h-r-image { .h-r-image {
width: 20%; width: auto;
height: 40%; height: 30px;
background: url("../../assets/materialImage/9.返回图标.png"); position: absolute;
background-size: 100% 100%; right: 8px;
margin-bottom: 1vw; top: 50%;
transform: translateY(-50%);
cursor: pointer;
} }
} }
} }
......
...@@ -14,7 +14,8 @@ export default defineConfig({ ...@@ -14,7 +14,8 @@ export default defineConfig({
// 这里的ccc可乱写, 是拼接在url后面的地址 如果接口中没有统一的后缀可自定义 // 这里的ccc可乱写, 是拼接在url后面的地址 如果接口中没有统一的后缀可自定义
// 如果有统一后缀, 如api, 直接写api即可, 也不用rewrite了 // 如果有统一后缀, 如api, 直接写api即可, 也不用rewrite了
"/dormmanage": { "/dormmanage": {
target: "https://asc.hnasct.cn/", // 真实接口地址, 后端给的基地址 // target: "https://asc.hnasct.cn/", // 真实接口地址, 后端给的基地址
target: "https://yth.syzyedu.com/", // 真实接口地址, 后端给的基地址
changeOrigin: true, // 允许跨域 changeOrigin: true, // 允许跨域
// rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空 // rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空
}, },
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或