75 lines
1.5 KiB
Vue
75 lines
1.5 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" />
|
||
<div class="hotline-panel__info">
|
||
<h3 class="hotline-panel__title">
|
||
专属客服热线
|
||
</h3>
|
||
<p class="hotline-panel__number">
|
||
{{ HOTLINE }}
|
||
</p>
|
||
<p class="hotline-panel__time">
|
||
{{ WORK_TIME }}
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<style lang="less" scoped>
|
||
.hotline-panel {
|
||
width: 100%;
|
||
|
||
// 设计稿 #01:浅蓝横幅卡,蓝圆 + 标题/电话/时间三行左对齐
|
||
&__card {
|
||
.flex(row, flex-start, center);
|
||
gap: 32px;
|
||
width: 100%;
|
||
padding: 30px 32px;
|
||
border-radius: @radius-base;
|
||
background: @profile-hotline-bg;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
&__icon {
|
||
flex-shrink: 0;
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: @radius-round;
|
||
background: @primary-strong;
|
||
}
|
||
|
||
&__info {
|
||
.flex(column, flex-start);
|
||
}
|
||
|
||
&__title {
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
color: @heading-color;
|
||
line-height: 22px;
|
||
}
|
||
|
||
&__number {
|
||
margin-top: 6px;
|
||
font-size: 24px;
|
||
font-weight: 700;
|
||
color: @primary-strong;
|
||
line-height: 32px;
|
||
}
|
||
|
||
&__time {
|
||
margin-top: 6px;
|
||
font-size: 12px;
|
||
color: @text-color-secondary;
|
||
line-height: 17px;
|
||
}
|
||
}
|
||
</style>
|