订阅消息(小程序侧唯一能主动触达用户的通道): - 新增 server/utils/wechatSubscribeFields.ts:按微信字段类型裁剪值(thing≤20、 phrase 必须 5 个汉字、time/date/character_string 各自上限),空白压成一行, 北京时间 time 由 playTime 的开始时间生成,解析不出退化为当天 00:00。 - wechatSubscribeService 内置 SONG_SELECTED 模板(站长新给的那个模板 ID), 并转发上述纯函数;notificationService.createSongSelectedNotification 现在会带上 playDate/playTime/sequence,三个排期接口(schedule / publish / bulk-publish)补传 sequence。 - 新增 test/wechatSubscribeFields.test.mjs(10 例,node --test 全绿)。 - test-subscribe 管理接口支持 vars 覆盖并返回真实发送值,方便站长核对字段名。 部署流程(Gitea Actions 容器里没有 buildx 插件,旧流程在此硬失败): - 每个 job 各自安装/探测 docker-buildx(v0.19.3,走 gh-proxy 再退直连), 不把 `buildx version` 当唯一依据;装不上时降级为普通 `docker build` 继续发布, 不再因为缺插件整条流水线失败。 注意:SONG_SELECTED 的字段名(thing2/date4/time1/character_string3/phrase5)是按常见 命名推断的,需在公众平台后台核对;不一致时用环境变量覆盖,模板 ID 变更后老用户需重新授权。
114 lines
2.2 KiB
Vue
114 lines
2.2 KiB
Vue
<template>
|
|
<div class="slide-container intro-bg">
|
|
<!-- Dynamic Background Elements -->
|
|
<div class="blob blob-1" />
|
|
<div class="blob blob-2" />
|
|
|
|
<Transition name="entry" appear>
|
|
<div v-show="active" class="content">
|
|
<div class="year-bg">{{ data.year }}</div>
|
|
<div class="sub-title">年度点歌报告</div>
|
|
<h1 class="main-title">宝一外校园点歌系统</h1>
|
|
</div>
|
|
</Transition>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
data: Object,
|
|
active: Boolean
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.slide-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
background: radial-gradient(circle at center, var(--bg-secondary, #111827), #000000);
|
|
}
|
|
|
|
.blob {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(100px);
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.blob-1 {
|
|
top: -20%;
|
|
left: -10%;
|
|
width: 500px;
|
|
height: 500px;
|
|
background: rgba(139, 92, 246, 0.4); /* brand-purple */
|
|
animation: spin 20s linear infinite;
|
|
}
|
|
|
|
.blob-2 {
|
|
bottom: -10%;
|
|
right: -10%;
|
|
width: 600px;
|
|
height: 600px;
|
|
background: rgba(244, 114, 182, 0.2); /* brand-pink */
|
|
animation: reverse-spin 25s linear infinite;
|
|
}
|
|
|
|
.content {
|
|
z-index: 10;
|
|
text-align: center;
|
|
padding: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.year-bg {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 14rem;
|
|
font-weight: 900;
|
|
color: rgba(255, 255, 255, 0.03);
|
|
pointer-events: none;
|
|
user-select: none;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sub-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 300;
|
|
color: #9ca3af;
|
|
margin-bottom: 1rem;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.main-title {
|
|
font-size: 5rem;
|
|
font-weight: 900;
|
|
background-image: linear-gradient(to right, #ffffff, #e5e7eb, #6b7280);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
margin-bottom: 2rem;
|
|
filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.year-bg {
|
|
font-size: 8rem;
|
|
}
|
|
.main-title {
|
|
font-size: 3rem;
|
|
}
|
|
.sub-title {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
</style>
|