Files
mini-programs/src/pages/publishBall/index.module.scss
2025-08-24 16:04:31 +08:00

311 lines
5.7 KiB
SCSS

@use '~@/scss/themeColor.scss' as theme;
.publish-ball {
min-height: 100vh;
background: theme.$page-background-color;
position: relative;
&__scroll {
height: calc(100vh - 120px);
overflow: auto;
padding: 4px 16px 72px 16px;
box-sizing: border-box;
}
&__content {
}
&__add{
margin-top: 2px;
border-radius: 12px;
border: 2px dashed rgba(22, 24, 35, 0.12);
display: flex;
width: 343px;
height: 60px;
justify-content: center;
align-items: center;
gap: 4px;
color: rgba(60, 60, 67, 0.50);
&-icon{
width: 16px;
height: 16px;
}
}
.activity-type-switch{
padding: 4px 16px 0 16px;
}
// 场次标题行
.session-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 22px 4px;
.session-title {
font-size: 16px;
font-weight: 600;
color: theme.$primary-color;
display: flex;
align-items: center;
gap: 2px;
}
.session-delete {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
&-icon {
width: 16px;
height: 16px;
}
}
.session-actions {
display: flex;
gap: 12px;
}
.session-action-btn {
border-radius: 8px;
border: 0.5px solid rgba(0, 0, 0, 0.16);
background: #000;
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.10);
backdrop-filter: blur(16px);
display: flex;
padding: 5px 8px;
justify-content: center;
align-items: center;
gap: 12px;
color: white;
font-size: 12px;
font-weight: 600;
.action-icon {
width: 14px;
height: 14px;
}
}
}
// 标题区域 - 独立白色块
.bg-section {
background: white;
border-radius: 12px;
margin-bottom: 8px;
position: relative;
border: 1px solid rgba(0, 0, 0, 0.06);
box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
display: flex;
.ntrp-range{
:global(.rangeContent){
border: none!important;
}
}
}
// 活动描述文本 - 灰色背景
.activity-description {
margin-bottom: 20px;
padding: 0 8px;
.description-text {
font-size: 12px;
color:rgba(60, 60, 67, 0.6) ;
line-height: 1.5;
}
}
// 表单分组区域 - 费用地点玩法白色块
.form-group-section {
background: white;
border-radius: 16px;
padding: 20px 16px;
margin-bottom: 16px;
}
// 区域标题 - 灰色背景
.section-title-wrapper {
padding: 0 4px;
display: flex;
align-items: center;
justify-content: space-between;
height: 44px;
padding-top: 5px;
box-sizing: border-box;
font-size: 14px;
.section-title {
font-size: 16px;
color: theme.$primary-color;
font-weight: 600;
}
.section-summary {
font-size: 14px;
color: theme.$input-placeholder-color;
white-space: nowrap;
}
}
// 提交区域
.submit-section {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 16px;
.submit-btn {
width: 100%;
color: white;
font-size: 16px;
font-weight: 600;
height: 52px;
line-height: 52px;
padding: 2px 6px;
border-radius: 16px;
border: 1px solid rgba(0, 0, 0, 0.06);
background: #000;
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.10);
}
.submit-tip {
text-align: center;
font-size: 12px;
color: #999;
line-height: 1.4;
display: flex;
justify-content: center;
padding: 12px 0;
.link {
color: #007AFF;
}
}
}
// 加载状态遮罩保持原样
&__loading {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 16px;
}
.loading-text {
color: #fff;
font-size: 16px;
font-weight: 500;
}
}
// 删除确认弹窗
.delete-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
&__content {
background: white;
border-radius: 16px;
padding: 24px;
margin: 0 32px;
max-width: 320px;
width: 100%;
text-align: center;
}
&__title {
display: block;
font-size: 18px;
font-weight: 600;
color: theme.$primary-color;
margin-bottom: 8px;
}
&__desc {
display: block;
font-size: 14px;
color: rgba(60, 60, 67, 0.6);
margin-bottom: 24px;
}
&__actions {
display: flex;
gap: 12px;
.delete-modal__btn {
flex: 1;
height: 44px;
border-radius: 12px;
font-size: 16px;
font-weight: 500;
border: none;
cursor: pointer;
transition: all 0.2s ease;
&:first-child {
background: rgba(0, 0, 0, 0.04);
color: rgba(60, 60, 67, 0.8);
}
&:last-child {
background: #FF3B30;
color: white;
}
&:hover {
opacity: 0.8;
}
}
}
}
}
// 旋转动画
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}