@import '../../../../style/ui-variables.less';
|
|
// 香型下发 loading 旋转动画
|
@keyframes fragrance-spin {
|
from {
|
transform: rotate(0deg);
|
}
|
|
to {
|
transform: rotate(360deg);
|
}
|
}
|
|
/* 香氛入口卡片 tf-card 样式(自包含,迁移自 temperature-fragrance-control.less) */
|
.fragrance-control {
|
.tf-card {
|
flex-shrink: 0;
|
position: relative;
|
box-sizing: border-box;
|
width: 312px;
|
height: 240px;
|
padding: 24px;
|
border-radius: 24px;
|
overflow: hidden;
|
display: flex;
|
flex-direction: column;
|
justify-content: space-between;
|
background-repeat: no-repeat;
|
background-position: center;
|
background-size: 100% 100%;
|
}
|
|
.tf-card-bottom {
|
display: flex;
|
flex-direction: column;
|
}
|
|
.tf-card-header {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
}
|
|
.tf-card-header-left {
|
display: flex;
|
align-items: center;
|
}
|
|
.tf-card-header-icon {
|
flex-shrink: 0;
|
width: 28px;
|
height: 28px;
|
margin-right: 8px;
|
}
|
|
.tf-card-header-title {
|
font-size: 24px;
|
font-weight: 500;
|
line-height: normal;
|
letter-spacing: normal;
|
color: @black-text-main;
|
}
|
|
/* 香氛名称,大小类似温度显示 */
|
.tf-card-fragrance-name {
|
font-size: 40px;
|
font-weight: 500;
|
line-height: 64px;
|
color: @black-text-main;
|
overflow: hidden;
|
white-space: nowrap;
|
text-overflow: ellipsis;
|
text-align: left;
|
}
|
|
.tf-card-footer {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
}
|
|
.tf-card-footer-text {
|
font-size: 20px;
|
line-height: normal;
|
letter-spacing: normal;
|
color: rgba(20, 30, 39, 0.5);
|
}
|
|
.tf-card-footer-arrow {
|
flex-shrink: 0;
|
width: 20px;
|
height: 20px;
|
}
|
|
/* 香氛入口卡片:背景随开关状态切换 */
|
.tf-card-fragrance {
|
&.is-open {
|
background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance-open-20260703.png');
|
}
|
|
&.is-close {
|
background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance-close-20260703.png');
|
|
// 关闭态卡片文字统一弱化
|
.tf-card-fragrance-name,
|
.tf-card-footer-text {
|
color: rgba(20, 30, 39, 0.3);
|
}
|
}
|
}
|
|
// 底部弹窗面板
|
.fragrance-popup {
|
position: fixed;
|
top: 0;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
z-index: 1000;
|
display: flex;
|
flex-direction: column;
|
justify-content: flex-end;
|
pointer-events: none;
|
|
&.show {
|
pointer-events: auto;
|
}
|
|
.popup-mask {
|
position: absolute;
|
top: 0;
|
left: 0;
|
width: 100%;
|
height: 100%;
|
background: rgba(0, 0, 0, 0.4);
|
z-index: 102;
|
}
|
|
.popup-content {
|
position: relative;
|
z-index: 103;
|
background: #FFFFFF;
|
border-radius: 60px 60px 0 0;
|
width: 100%;
|
// 设计稿左右边距 24px
|
padding: 0 0 calc(48px + env(safe-area-inset-bottom));
|
box-sizing: border-box;
|
display: flex;
|
flex-direction: column;
|
transform: translateY(100%);
|
}
|
|
.popup-header {
|
height: 112px;
|
padding-top: 8px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
position: relative;
|
flex-shrink: 0;
|
|
.popup-title {
|
font-size: 32px;
|
font-weight: 500;
|
line-height: 32px;
|
color: rgba(0, 0, 0, 0.9);
|
}
|
|
.popup-close {
|
position: absolute;
|
right: 32px;
|
top: 50%;
|
transform: translateY(-50%);
|
width: 40px;
|
height: 40px;
|
}
|
}
|
|
// 香型选择区
|
.popup-scent-area {
|
margin-top: 48px;
|
padding: 0 56px;
|
}
|
|
.popup-scent-list {
|
display: flex;
|
align-items: stretch;
|
justify-content: space-between;
|
|
// 香型卡片:竖排香型名 + 香调描述,背景使用设计切图(选中/未选)
|
.popup-scent-item {
|
position: relative;
|
flex-shrink: 0;
|
// 设计稿卡片尺寸 90px × 208px
|
width: 180px;
|
height: 416px;
|
padding: 24px 0 20px;
|
box-sizing: border-box;
|
border-radius: 64px;
|
overflow: hidden;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
background-repeat: no-repeat;
|
background-position: center;
|
background-size: 100% 100%;
|
// 未选中背景图
|
background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance_item_unselect@2x.png');
|
|
// 下发中禁止重复点击
|
&.disabled {
|
opacity: 0.6;
|
}
|
|
// 下发中 loading 图标(叠加于卡片上部,水平居中,旋转)
|
.popup-scent-loading {
|
position: absolute;
|
top: 40px;
|
left: 50%;
|
width: 64px;
|
height: 64px;
|
margin: 0 0 0 -32px;
|
z-index: 1;
|
animation: fragrance-spin 1s linear infinite;
|
}
|
|
.popup-scent-name {
|
// 香型名竖排
|
writing-mode: vertical-rl;
|
letter-spacing: 16px;
|
font-size: 32px;
|
line-height: 48px;
|
font-weight: 500;
|
color: rgba(20, 30, 39, 0.3);
|
}
|
|
// 选中背景图 + 白色文字
|
&.active {
|
background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance_item_select@2x.png');
|
|
.popup-scent-name {
|
color: #FFFFFF;
|
}
|
}
|
}
|
}
|
|
.popup-scent-empty {
|
padding: 96px 0;
|
text-align: center;
|
font-size: 28px;
|
line-height: 40px;
|
color: rgba(0, 0, 0, 0.4);
|
}
|
}
|
}
|