Files
cz-web/src/views/profile/cpns/HotlinePanel.vue
2026-10-01 17:24:57 +08:00

83 lines
1.6 KiB
Vue

<script setup lang="ts">
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, flex-start);
padding: 0;
&__card {
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas:
'icon title'
'icon number'
'icon time';
column-gap: @spacing-base;
align-content: center;
width: 100%;
max-width: 100%;
padding: @spacing-lg;
border-radius: @radius-base;
background: @profile-hotline-bg;
text-align: left;
align-items: center;
}
&__icon {
.flex(row, center);
grid-area: icon;
flex-shrink: 0;
width: 49px;
height: 49px;
margin: 0;
border-radius: @radius-round;
background: @primary-strong;
font-size: @font-size-lg;
line-height: 1;
}
&__title {
grid-area: title;
align-self: end;
font-size: 15px;
font-weight: 700;
color: @heading-color;
}
&__number {
grid-area: number;
font-size: 18px;
font-weight: 700;
color: @primary-strong;
line-height: 1.3;
}
&__time {
grid-area: time;
align-self: start;
color: @text-color-secondary;
font-size: 11px;
}
}
</style>