This commit is contained in:
张成
2025-12-09 14:41:21 +08:00
parent 0d2d2e8c9f
commit 8b314b9900
3 changed files with 12 additions and 15 deletions

View File

@@ -1,21 +1,22 @@
.empty_state_page {
width: 100%;
height: 100vh;
// 白色渐变背景(从设计稿参考)
background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
position: relative;
display: flex;
flex-direction: column;
box-sizing: border-box;
overflow: hidden;
&__content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: 0;
position: relative;
min-height: calc(100vh - 98px);
height: calc(100vh - 98px);
}
// 空状态图片
@@ -99,7 +100,7 @@
&--primary {
background: #000000;
border: 2px solid rgba(0, 0, 0, 0.06);
.empty_state_page__button_text {
color: #ffffff; // 黑色背景下使用白色文字
}
@@ -111,5 +112,4 @@
border: 2px solid rgba(0, 0, 0, 0.06);
}
}
}
}

View File

@@ -49,20 +49,16 @@ function Index() {
};
return (
<View
className="empty_state_page"
style={{
paddingTop: `${totalHeight}px`,
backgroundColor: '#FFFFFF'
}}
<View
className="empty_state_page"
>
<GeneralNavbar title="" showBack={true} />
<View className="empty_state_page__content">
{/* 空状态图片 */}
<Image
className="empty_state_page__icon"
src={emptyStateIcon}
<Image
className="empty_state_page__icon"
src={emptyStateIcon}
mode="aspectFit"
/>

View File

@@ -150,7 +150,8 @@ class GameDetailService {
business_id: number
}>> {
return httpService.post('/user/create_activity_id', req, {
showLoading: false
showLoading: false,
showToast: false,
})
}