Files
cz-web/src/views/profile/cpns/HotlinePanel.vue
wangzzpeng 7bc84bbe5e first
2026-09-24 10:10:43 +08:00

64 lines
1.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
// 热线展示(静态 mock,接入站点配置后由 store 提供)
const HOTLINE = '000-000-0000'
const WORK_TIME = '工作日 8:00-12:00 14:00-18:00'
</script>
<template>
<div class="hotline-panel">
<div class="hotline-panel__card">
<span class="hotline-panel__icon" aria-hidden="true">📞</span>
<h3 class="hotline-panel__title">
专属客服热线
</h3>
<p class="hotline-panel__number">
{{ HOTLINE }}
</p>
<p class="hotline-panel__time text-secondary">
{{ WORK_TIME }}
</p>
</div>
</div>
</template>
<style lang="less" scoped>
.hotline-panel {
.flex(row, center);
padding: @spacing-xxl 0;
&__card {
.flex(column, center);
gap: @spacing-base;
width: 480px;
max-width: 100%;
padding: @spacing-xxl @spacing-xl;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-lg;
text-align: center;
}
&__icon {
font-size: @font-size-xxl * 2;
line-height: 1;
}
&__title {
font-size: @font-size-xl;
font-weight: 600;
color: @heading-color;
}
&__number {
font-size: @font-size-xxl + @spacing-sm;
font-weight: 700;
color: @primary-color;
line-height: 1.2;
}
&__time {
font-size: @font-size-base;
}
}
</style>