deploy-hxtesting / build-and-deploy (push) Successful in 1m21s
1.增加按“时间”、“标题”、“企微状态”查询 2.增加数据统计在列表顶部 3.增加分页功能
579 lines
20 KiB
Vue
579 lines
20 KiB
Vue
<template>
|
|
<!-- 学员扫码签到落地页(2026-11-25 调整:工号主流程;2026-11-28 规则调整:
|
|
员工档案全员可凭工号签到,不再限定「参加人员」名单):
|
|
企微「扫一扫」→ 落地页(课程信息 + 签到倒计时)→ 手输工号 → 点击签到
|
|
→ 规则校验(当天/工号一致/围栏/迟到/重复/防重放)+ 工号反查档案 + 自动登录
|
|
→ 成功后自动进入该课程详情页。
|
|
企微 OAuth 静默免登链路保留为预留通道(可信域名配置就绪后恢复,见
|
|
checkin-session 回跳分支),当前默认不走 OAuth。 -->
|
|
<div class="checkin-page">
|
|
<div class="checkin-card">
|
|
<div class="checkin-card__icon" :class="`is-${iconState}`">
|
|
<!-- 加载中/取位中 -->
|
|
<svg v-if="iconState === 'pending'" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="3.2" />
|
|
<path d="M12 2v3M12 19v3M2 12h3M19 12h3" />
|
|
</svg>
|
|
<!-- 成功 -->
|
|
<svg v-else-if="iconState === 'success'" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="9" />
|
|
<path d="m8.5 12.2 2.4 2.4 4.8-4.9" />
|
|
</svg>
|
|
<!-- 失败/受阻 -->
|
|
<svg v-else viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="9" />
|
|
<path d="M12 7.5V13" />
|
|
<path d="M12 16.4h.01" />
|
|
</svg>
|
|
</div>
|
|
|
|
<h2 class="checkin-card__title">{{ title }}</h2>
|
|
<p class="checkin-card__hint">{{ hint }}</p>
|
|
|
|
<t-tag v-if="record" :theme="record.status === 'normal' ? 'success' : 'warning'" variant="light" size="medium">
|
|
{{ record.status === 'normal' ? '签到成功' : record.status === 'late' ? '迟到签到' : '已提交,待复核' }}
|
|
</t-tag>
|
|
|
|
<!-- 落地页主体:课程信息 + 工号输入/确认行 + 倒计时 + 签到按钮 -->
|
|
<template v-if="state === 'ready' && page">
|
|
<div class="course-box">
|
|
<div class="course-box__name">{{ page.course?.course_name || '培训课程' }}</div>
|
|
<div class="course-box__row" v-if="page.course?.lecturer_name">讲师:{{ page.course.lecturer_name }}</div>
|
|
<div class="course-box__row" v-if="page.course?.start_at">时间:{{ fmtBeijingTime(page.course.start_at) }}</div>
|
|
<div class="course-box__row" v-if="page.course?.location">地点:{{ page.course.location }}</div>
|
|
<div class="course-box__row" v-if="memberLabel">签到人:{{ memberLabel }}</div>
|
|
</div>
|
|
|
|
<!-- 工号输入:匿名主流程(免登 OAuth 未启用,学员手输工号签到) -->
|
|
<div v-if="needEmployeeNo" class="emp-no-box">
|
|
<t-input
|
|
v-model="employeeNoInput"
|
|
placeholder="请输入您的工号"
|
|
size="large"
|
|
clearable
|
|
@enter="sign"
|
|
/>
|
|
<div class="emp-no-box__hint">全体员工均可凭本人工号签到,请确认输入本人工号</div>
|
|
</div>
|
|
|
|
<!-- 签到倒计时:当前签到码剩余有效期,归零须重新扫码(需求补充 2) -->
|
|
<div class="countdown" :class="{ 'is-danger': remainSec <= 60 }">
|
|
<template v-if="remainSec > 0">
|
|
签到码有效期剩余 <b>{{ fmtRemain(remainSec) }}</b>
|
|
</template>
|
|
<template v-else>二维码已更新,请重新扫码签到</template>
|
|
</div>
|
|
|
|
<t-button
|
|
class="checkin-card__sign-btn"
|
|
theme="primary"
|
|
size="large"
|
|
block
|
|
:disabled="signDisabled"
|
|
@click="sign"
|
|
>
|
|
{{ signButtonText }}
|
|
</t-button>
|
|
<div v-if="signDisabledReason" class="checkin-card__warn">{{ signDisabledReason }}</div>
|
|
<!-- 名单外提示(2026-11-28 规则调整:全员可签到,不再置灰拦截,仅提示
|
|
签到后将标注为「非要求培训人员」) -->
|
|
<div v-if="rosterNotice" class="checkin-card__warn">{{ rosterNotice }}</div>
|
|
</template>
|
|
|
|
<div class="checkin-card__actions">
|
|
<t-button v-if="state === 'error' && retryable" theme="primary" @click="sign">重新签到</t-button>
|
|
<t-button v-if="state !== 'submitting'" variant="outline" @click="goTraining">前往企业培训</t-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed, onBeforeUnmount, onMounted, ref } from 'vue'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import { MessagePlugin } from 'tdesign-vue-next'
|
|
import { useAuthStore } from '@/stores/auth'
|
|
import { userInfoFromApi } from '@/api/auth'
|
|
import {
|
|
checkin,
|
|
unwrap,
|
|
wecomCheckinByEmployee,
|
|
wecomCheckinPage,
|
|
wecomCheckinPageAnon,
|
|
wecomCheckinSession,
|
|
type TrainingSignRecord,
|
|
type WecomCheckinByEmployeeData,
|
|
type WecomCheckinPageData,
|
|
} from '@/api/training'
|
|
import { fmtBeijingTime } from '@/utils/datetime'
|
|
import { apiErrorMessage } from '@/utils/request'
|
|
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
const authStore = useAuthStore()
|
|
|
|
type CheckinState = 'boot' | 'ready' | 'submitting' | 'success' | 'error' | 'blocked'
|
|
const state = ref<CheckinState>('boot')
|
|
const page = ref<WecomCheckinPageData | null>(null)
|
|
const record = ref<TrainingSignRecord | null>(null)
|
|
const errorMsg = ref('')
|
|
// 定位坐标:拒绝授权/不可用时以 0,0 提交,由后端 sign_policy(强制定位)决定是否放行
|
|
const geo = ref({ lat: 0, lng: 0 })
|
|
// 工号输入(匿名主流程);已登录(PC 自测/已有会话)由档案预填为确认行
|
|
const employeeNoInput = ref('')
|
|
|
|
const routeToken = computed(() => String(route.params.token || ''))
|
|
|
|
const iconState = computed(() => {
|
|
if (state.value === 'success') return 'success'
|
|
if (state.value === 'error' || state.value === 'blocked') return 'error'
|
|
return 'pending'
|
|
})
|
|
|
|
const title = computed(() => {
|
|
switch (state.value) {
|
|
case 'boot':
|
|
return '正在打开签到页…'
|
|
case 'ready':
|
|
return page.value?.already_signed ? '您已签到' : '培训签到'
|
|
case 'submitting':
|
|
return '正在签到…'
|
|
case 'success':
|
|
return '签到完成'
|
|
default:
|
|
return state.value === 'blocked' ? '无法签到' : '签到失败'
|
|
}
|
|
})
|
|
|
|
const hint = computed(() => {
|
|
switch (state.value) {
|
|
case 'boot':
|
|
return '正在加载课程签到信息,请稍候'
|
|
case 'ready':
|
|
if (page.value?.already_signed) return '本课程您已完成签到,无需重复操作'
|
|
return needEmployeeNo.value ? '请输入本人工号并点击签到' : '请核对签到人信息,点击下方按钮完成签到'
|
|
case 'submitting':
|
|
return '正在获取定位并提交签到,请保持页面打开'
|
|
case 'success':
|
|
return authStore.isLoggedIn
|
|
? `签到时间:${fmtBeijingTime(record.value?.signed_at || null) || '—'},即将进入课程详情…`
|
|
: `签到时间:${fmtBeijingTime(record.value?.signed_at || null) || '—'}`
|
|
case 'blocked':
|
|
return errorMsg.value || '签到码无效或已过期,请重新扫码'
|
|
default:
|
|
return errorMsg.value || '签到失败,请重试'
|
|
}
|
|
})
|
|
|
|
// 错误态是否提供「重新签到」:仅瞬时失败(定位/网络/工号笔误)可重试;
|
|
// 非当天/重复签到属确定性拒绝,提示后不重试(保留「名单」匹配兜底历史文案)。
|
|
const retryable = computed(() => {
|
|
const msg = errorMsg.value
|
|
return !(/名单|当天|已结束|尚未开始|重复扫码|已签到/.test(msg))
|
|
})
|
|
|
|
// ---- 落地页主体态(ready) ----
|
|
// 匿名主流程:落地页未带成员信息(工号未输入),需学员手输工号。
|
|
const needEmployeeNo = computed(() => !page.value?.member)
|
|
const memberLabel = computed(() => {
|
|
const m = page.value?.member
|
|
if (!m) return ''
|
|
return [m.user_name, m.employee_no].filter(Boolean).join(' · ')
|
|
})
|
|
|
|
const remainSec = ref(0)
|
|
let countdownTimer: number | undefined
|
|
const startCountdown = () => {
|
|
stopCountdown()
|
|
const tick = () => {
|
|
const exp = page.value?.sign_expire_at
|
|
remainSec.value = exp ? Math.max(0, Math.floor((new Date(exp).getTime() - Date.now()) / 1000)) : 0
|
|
}
|
|
tick()
|
|
countdownTimer = window.setInterval(tick, 1000)
|
|
}
|
|
const stopCountdown = () => {
|
|
if (countdownTimer) {
|
|
window.clearInterval(countdownTimer)
|
|
countdownTimer = undefined
|
|
}
|
|
}
|
|
const fmtRemain = (sec: number) => {
|
|
const m = Math.floor(sec / 60)
|
|
const s = sec % 60
|
|
return m > 0 ? `${m}分${String(s).padStart(2, '0')}秒` : `${s}秒`
|
|
}
|
|
|
|
const signDisabled = computed(() => {
|
|
if (!page.value) return true
|
|
if (page.value.already_signed) return true
|
|
if (remainSec.value <= 0) return true
|
|
if (page.value.course && !page.value.course.can_sign_today) return true
|
|
if (needEmployeeNo.value && !employeeNoInput.value.trim()) return true
|
|
// 2026-11-28 规则调整:名单外不再置灰拦截,员工档案全员可签到。
|
|
return false
|
|
})
|
|
const signDisabledReason = computed(() => {
|
|
if (!page.value) return ''
|
|
if (page.value.already_signed) return '本课程您已完成签到'
|
|
if (remainSec.value <= 0) return '签到码已过期,请重新扫码'
|
|
if (page.value.course && !page.value.course.can_sign_today) {
|
|
const start = page.value.course.start_at ? fmtBeijingTime(page.value.course.start_at) : ''
|
|
return `培训尚未开始(${start} 开课),培训当天再来签到`
|
|
}
|
|
return ''
|
|
})
|
|
// 名单外非阻塞提示:身份已知(已登录/工号校验过)且不在「参加人员」名单时,
|
|
// 提示可照常签到、明细将标注为非要求培训人员。
|
|
const rosterNotice = computed(() => {
|
|
if (page.value?.member && !page.value.in_roster && !page.value.already_signed) {
|
|
return '您不在该课程的「参加人员」名单中,仍可签到,签到明细将标注为「非要求培训人员」'
|
|
}
|
|
return ''
|
|
})
|
|
const signButtonText = computed(() => {
|
|
if (page.value?.already_signed) return '已签到'
|
|
if (state.value === 'submitting') return '签到中…'
|
|
return needEmployeeNo.value ? '输入工号签到' : '点击签到'
|
|
})
|
|
|
|
// ---- 登录态持久化(与 /auth/login 同构,复用 Login.vue 持久化路径) ----
|
|
type LoginPayload = {
|
|
token?: string
|
|
refresh_token?: string
|
|
user?: Record<string, any>
|
|
active_tenant?: { id: number | string; name?: string; created_at?: string; updated_at?: string } | null
|
|
memberships?: Array<{ tenant_id: number; tenant_name?: string; role: string }>
|
|
}
|
|
const persistLogin = (data: LoginPayload) => {
|
|
const activeTenant = data.active_tenant || null
|
|
const homeTenantIdRaw = data.user?.tenant_id ?? activeTenant?.id ?? ''
|
|
if (data.user) authStore.setUser(userInfoFromApi(data.user, homeTenantIdRaw))
|
|
authStore.setToken(data.token || '')
|
|
if (data.refresh_token) authStore.setRefreshToken(data.refresh_token)
|
|
if (activeTenant) {
|
|
authStore.setTenant({
|
|
id: String(activeTenant.id) || '',
|
|
name: activeTenant.name || '',
|
|
owner_id: String(data.user?.id || ''),
|
|
created_at: activeTenant.created_at || new Date().toISOString(),
|
|
updated_at: activeTenant.updated_at || new Date().toISOString(),
|
|
})
|
|
} else {
|
|
authStore.setTenant(null)
|
|
}
|
|
if (Array.isArray(data.memberships)) authStore.setMemberships(data.memberships)
|
|
// 后端按"最近活跃租户"偏好落点时,同步选中态让后续请求带 X-Tenant-ID。
|
|
const activeIdNum = Number(activeTenant?.id)
|
|
const homeIdNum = Number(homeTenantIdRaw)
|
|
if (Number.isFinite(activeIdNum) && Number.isFinite(homeIdNum) && activeIdNum !== homeIdNum) {
|
|
authStore.setSelectedTenant(activeIdNum, activeTenant?.name || null)
|
|
} else {
|
|
authStore.setSelectedTenant(null, null)
|
|
}
|
|
}
|
|
|
|
// ---- 链路编排 ----
|
|
|
|
const applyPage = (data: WecomCheckinPageData) => {
|
|
page.value = data
|
|
// 已登录且档案已知时预填工号,点击即签;匿名态由学员手输。
|
|
if (data.member?.employee_no && !employeeNoInput.value) {
|
|
employeeNoInput.value = data.member.employee_no
|
|
}
|
|
state.value = 'ready'
|
|
startCountdown()
|
|
}
|
|
|
|
// OAuth 回跳(预留通道):code 换会话并持久化(可信域名配置就绪后恢复)。
|
|
const exchangeSession = async (code: string, stateToken: string) => {
|
|
try {
|
|
const data = unwrap<WecomCheckinByEmployeeData & LoginPayload>(await wecomCheckinSession(code, stateToken))
|
|
if (!data?.token) throw new Error('empty session token')
|
|
persistLogin(data)
|
|
applyPage(data)
|
|
// 清理回跳参数,避免刷新重复消费一次性 code。
|
|
window.history.replaceState(null, '', window.location.pathname)
|
|
} catch (e: any) {
|
|
state.value = 'blocked'
|
|
errorMsg.value = apiErrorMessage(e, '免登失败,请重新扫码')
|
|
}
|
|
}
|
|
|
|
// 已登录(PC 讲师自测/已有会话):取落地页数据并预填工号。
|
|
const loadPage = async () => {
|
|
try {
|
|
const data = unwrap<WecomCheckinPageData>(await wecomCheckinPage(routeToken.value))
|
|
if (!data) throw new Error('empty page data')
|
|
applyPage(data)
|
|
} catch (e: any) {
|
|
// 登录态失效等:回退匿名主流程(工号手输),不阻塞签到。
|
|
await loadAnonPage(e)
|
|
}
|
|
}
|
|
|
|
// 匿名主流程(扫码默认):未登录学员落地页,工号手输签到。
|
|
const loadAnonPage = async (presetErr?: any) => {
|
|
try {
|
|
const data = unwrap<WecomCheckinPageData>(await wecomCheckinPageAnon(routeToken.value))
|
|
if (!data) throw new Error('empty page data')
|
|
applyPage(data)
|
|
} catch (e: any) {
|
|
state.value = 'blocked'
|
|
errorMsg.value = apiErrorMessage(e, '') || apiErrorMessage(presetErr, '签到码无效或已过期,请重新扫码')
|
|
}
|
|
}
|
|
|
|
// 取定位:最多等 6 秒,失败不阻塞签到(是否强制定位由后端规则决定)
|
|
const locate = () =>
|
|
new Promise<void>((resolve) => {
|
|
if (!navigator.geolocation) return resolve()
|
|
const timer = window.setTimeout(resolve, 6000)
|
|
navigator.geolocation.getCurrentPosition(
|
|
(pos) => {
|
|
window.clearTimeout(timer)
|
|
geo.value = { lat: pos.coords.latitude, lng: pos.coords.longitude }
|
|
resolve()
|
|
},
|
|
() => {
|
|
window.clearTimeout(timer)
|
|
MessagePlugin.warning('未获取到定位,如课程开启定位校验将标记定位异常')
|
|
resolve()
|
|
},
|
|
{ timeout: 5500, maximumAge: 30000 },
|
|
)
|
|
})
|
|
|
|
// 点击签到(需求:进页不自动签):工号 + 随机时间戳随请求提交,后端按规则
|
|
// 校验(当天/工号一致/围栏/迟到/重复/nonce 防重放;2026-11-28 调整后不再
|
|
// 校验「参加人员」名单,员工档案全员可签到)。
|
|
const sign = async () => {
|
|
if (!page.value || signDisabled.value || state.value === 'submitting') return
|
|
const employeeNo = employeeNoInput.value.trim()
|
|
if (needEmployeeNo.value && !employeeNo) {
|
|
MessagePlugin.warning('请先输入工号')
|
|
return
|
|
}
|
|
state.value = 'submitting'
|
|
errorMsg.value = ''
|
|
await locate()
|
|
const nonce = `${Date.now()}${Math.random().toString(36).slice(2, 10)}`
|
|
try {
|
|
if (needEmployeeNo.value) {
|
|
// 工号主流程:规则校验 + 工号反查档案 + 自动登录一次完成。
|
|
const data = unwrap<WecomCheckinByEmployeeData>(
|
|
await wecomCheckinByEmployee({
|
|
token: routeToken.value,
|
|
employee_no: employeeNo,
|
|
nonce,
|
|
lat: geo.value.lat,
|
|
lng: geo.value.lng,
|
|
client_ts: Date.now(),
|
|
}),
|
|
)
|
|
record.value = data?.record || null
|
|
// 回填成员/课程信息(展示签到人行);自动登录关闭(token 空)时停留成功页。
|
|
if (data?.member) page.value = data
|
|
if (data?.token) {
|
|
persistLogin(data)
|
|
state.value = 'success'
|
|
window.setTimeout(() => {
|
|
if (page.value?.course_id) {
|
|
router.push(`/platform/training/course/${page.value.course_id}`)
|
|
}
|
|
}, 1800)
|
|
} else {
|
|
state.value = 'success'
|
|
}
|
|
} else {
|
|
// 已登录路径(预填工号,走常规登录态签到接口,规则引擎同一套严格校验)。
|
|
const res = unwrap<TrainingSignRecord>(
|
|
await checkin(routeToken.value, geo.value.lat, geo.value.lng, 'wecom_scan', '', {
|
|
employee_no: employeeNo,
|
|
nonce,
|
|
client_ts: Date.now(),
|
|
}),
|
|
)
|
|
record.value = res || null
|
|
state.value = 'success'
|
|
window.setTimeout(() => {
|
|
if (page.value?.course_id) {
|
|
router.push(`/platform/training/course/${page.value.course_id}`)
|
|
}
|
|
}, 1800)
|
|
}
|
|
} catch (e: any) {
|
|
state.value = 'error'
|
|
// 000165 复测:透出后端具体原因(不在参加人员名单/工号无档案/当天性/防重放等),
|
|
// 不再落到通用「签到失败,请重试」(后端错误信封为 {error:{message}},手写取值取不到)
|
|
errorMsg.value = apiErrorMessage(e, '签到失败,请重试')
|
|
}
|
|
}
|
|
|
|
const goTraining = () => {
|
|
router.push('/platform/training/dashboard')
|
|
}
|
|
|
|
onMounted(() => {
|
|
const oauthCode = route.query.code ? String(route.query.code) : ''
|
|
const oauthState = route.query.state ? String(route.query.state) : ''
|
|
if (oauthCode && oauthState) {
|
|
// 预留通道:企微 OAuth 回跳(URL 带 code+state 时才消费,当前主流程不走)。
|
|
exchangeSession(oauthCode, oauthState)
|
|
return
|
|
}
|
|
if (!routeToken.value) {
|
|
state.value = 'blocked'
|
|
errorMsg.value = '签到链接不完整'
|
|
return
|
|
}
|
|
if (authStore.isLoggedIn) {
|
|
loadPage()
|
|
return
|
|
}
|
|
// 扫码默认:匿名主流程(课程信息 + 工号手输签到)。
|
|
loadAnonPage()
|
|
})
|
|
|
|
onBeforeUnmount(stopCountdown)
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.checkin-page {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
// 独立手机端 H5 页:顶层路由直接渲染,占满整屏并居中卡片(脱离平台壳布局)。
|
|
min-height: 100vh;
|
|
padding: var(--app-space-4);
|
|
background: var(--td-bg-color-page, #f3f3f3);
|
|
}
|
|
|
|
.checkin-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: min(420px, 100%);
|
|
padding: 40px 32px;
|
|
background: var(--td-bg-color-container);
|
|
border: 1px solid var(--td-component-stroke);
|
|
border-radius: var(--app-radius-lg, 12px);
|
|
text-align: center;
|
|
|
|
&__icon {
|
|
display: inline-flex;
|
|
width: 64px;
|
|
height: 64px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
|
|
svg {
|
|
width: 34px;
|
|
height: 34px;
|
|
}
|
|
|
|
&.is-pending {
|
|
color: var(--td-brand-color);
|
|
background: var(--td-brand-color-1, rgba(0, 82, 217, 0.08));
|
|
animation: checkin-breath 1.4s ease-in-out infinite;
|
|
}
|
|
|
|
&.is-success {
|
|
color: var(--td-success-color);
|
|
background: var(--td-success-color-1, rgba(0, 168, 112, 0.08));
|
|
}
|
|
|
|
&.is-error {
|
|
color: var(--td-error-color);
|
|
background: var(--td-error-color-1, rgba(227, 77, 89, 0.08));
|
|
}
|
|
}
|
|
|
|
&__title {
|
|
margin: 4px 0 0;
|
|
font-size: var(--app-text-xl, 20px);
|
|
}
|
|
|
|
&__hint {
|
|
margin: 0;
|
|
color: var(--td-text-color-secondary);
|
|
font-size: var(--app-text-md);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
&__sign-btn {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
&__warn {
|
|
color: var(--td-warning-color, #e37318);
|
|
font-size: var(--app-text-sm, 13px);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
&__actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
.course-box {
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
margin-top: 4px;
|
|
text-align: left;
|
|
background: var(--td-bg-color-secondarycontainer, rgba(0, 0, 0, 0.03));
|
|
border-radius: var(--app-radius-md, 8px);
|
|
|
|
&__name {
|
|
margin-bottom: 6px;
|
|
font-weight: 600;
|
|
font-size: var(--app-text-lg, 16px);
|
|
}
|
|
|
|
&__row {
|
|
color: var(--td-text-color-secondary);
|
|
font-size: var(--app-text-sm, 13px);
|
|
line-height: 1.8;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
}
|
|
|
|
.emp-no-box {
|
|
width: 100%;
|
|
|
|
&__hint {
|
|
margin-top: 6px;
|
|
color: var(--td-text-color-placeholder);
|
|
font-size: var(--app-text-sm, 13px);
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.countdown {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
color: var(--td-success-color);
|
|
font-size: var(--app-text-sm, 13px);
|
|
background: var(--td-success-color-1, rgba(0, 168, 112, 0.08));
|
|
border-radius: var(--app-radius-md, 8px);
|
|
|
|
b {
|
|
font-weight: 600;
|
|
}
|
|
|
|
&.is-danger {
|
|
color: var(--td-error-color);
|
|
background: var(--td-error-color-1, rgba(227, 77, 89, 0.08));
|
|
}
|
|
}
|
|
|
|
@keyframes checkin-breath {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.55; }
|
|
}
|
|
</style>
|