细节优化

This commit is contained in:
2025-10-12 23:03:51 +08:00
parent 09c77a809b
commit 6a5191df21
14 changed files with 143 additions and 54 deletions

View File

@@ -2,21 +2,28 @@
// 个人页面样式
.myself_page {
min-height: 100vh;
height: 100vh;
background: radial-gradient(circle at 50% 0,
/* 光晕圆心在顶部中间 */
rgba(173, 216, 230, 0.9) 0px,
/* 中间更深的浅蓝 */
rgba(173, 216, 230, 0.5) 200px,
/* 100px 处开始淡化 */
rgba(255, 255, 255, 1) 300px,
#fafafa 300px,
/* 到 200px 变成白色 */
#ffffff 100%
#fafafa 100%
/* 200px 以下全白 */
);
position: relative;
overflow: hidden;
overflow-y: auto;
box-sizing: border-box;
&::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
}
// 主要内容区域
@@ -26,7 +33,6 @@
flex: 1;
margin-top: 0;
box-sizing: border-box;
overflow-y: auto;
padding: 0px 15px 15px 15px;
// 用户信息区域

View File

@@ -170,6 +170,12 @@ const MyselfPage: React.FC = () => {
}
};
const goPublish = () => {
Taro.navigateTo({
url: "/publish_pages/publishBall/index",
});
}
// 处理球局订单
const handle_game_orders = () => {
Taro.navigateTo({
@@ -237,9 +243,8 @@ const MyselfPage: React.FC = () => {
<Text className="tab_text"></Text>
</View>
<View
className={`tab_item ${
active_tab === "participated" ? "active" : ""
}`}
className={`tab_item ${active_tab === "participated" ? "active" : ""
}`}
onClick={() => setActiveTab("participated")}
>
<Text className="tab_text"></Text>
@@ -259,8 +264,8 @@ const MyselfPage: React.FC = () => {
emptyText="暂未发布球局"
btnText="去发布"
btnImg="ICON_ADD"
reload={load_game_data}
loadMoreMatches={() => {}}
reload={goPublish}
loadMoreMatches={() => { }}
/>
</ScrollView>
</View>
@@ -283,7 +288,7 @@ const MyselfPage: React.FC = () => {
loading={loading}
error={null}
errorImg="ICON_LIST_EMPTY"
loadMoreMatches={() => {}}
loadMoreMatches={() => { }}
/>
</ScrollView>
{/* </View> */}