个人页优化
This commit is contained in:
@@ -170,6 +170,7 @@ const MyselfPage: React.FC = () => {
|
||||
const handle_wallet = () => {
|
||||
Taro.navigateTo({
|
||||
url: "/user_pages/wallet/index",
|
||||
// url: "/user_pages/other/index?userid=16"
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ import { UserService, UserInfoType } from "@/services/userService";
|
||||
import * as LoginService from "@/services/loginService";
|
||||
import CustomNavbar from "@/components/CustomNavbar";
|
||||
import { useGlobalState } from "@/store/global";
|
||||
import { BackNavbar } from "@/components";
|
||||
|
||||
const OtherUserPage: React.FC = () => {
|
||||
// 获取页面参数
|
||||
@@ -87,8 +88,7 @@ const OtherUserPage: React.FC = () => {
|
||||
nickname: userData.nickname || "",
|
||||
avatar_url: userData.avatar_url || "",
|
||||
join_date: userData.subscribe_time
|
||||
? `${new Date(userData.subscribe_time).getFullYear()}年${
|
||||
new Date(userData.subscribe_time).getMonth() + 1
|
||||
? `${new Date(userData.subscribe_time).getFullYear()}年${new Date(userData.subscribe_time).getMonth() + 1
|
||||
}月加入`
|
||||
: "",
|
||||
stats: {
|
||||
@@ -200,8 +200,7 @@ const OtherUserPage: React.FC = () => {
|
||||
// 处理发送消息
|
||||
const handle_send_message = () => {
|
||||
Taro.navigateTo({
|
||||
url: `/mode_user/message/chat/index?user_id=${
|
||||
user_info.id || ""
|
||||
url: `/mode_user/message/chat/index?user_id=${user_info.id || ""
|
||||
}&nickname=${user_info.nickname || ""}`,
|
||||
});
|
||||
};
|
||||
@@ -219,19 +218,28 @@ const OtherUserPage: React.FC = () => {
|
||||
|
||||
return (
|
||||
<View className="other_user_page">
|
||||
<CustomNavbar>
|
||||
{/* <CustomNavbar>
|
||||
<View className="navbar_content">
|
||||
<View className="navbar_back" onClick={() => Taro.navigateBack()}>
|
||||
<View className="back_icon" />
|
||||
</View>
|
||||
<Text className="navbar_title"></Text>
|
||||
<View className="navbar_action">
|
||||
{/* 右侧占位,保持标题居中 */}
|
||||
</View>
|
||||
</View>
|
||||
</CustomNavbar>
|
||||
</CustomNavbar> */}
|
||||
{/* 顶部导航栏 */}
|
||||
<BackNavbar
|
||||
title=""
|
||||
showBackButton={true}
|
||||
showAvatar={false}
|
||||
backgroundColor="unset"
|
||||
onBack={() => {
|
||||
Taro.navigateBack();
|
||||
}}
|
||||
/>
|
||||
{/* 主要内容 */}
|
||||
<View className="main_content" style={{ paddingTop: `${totalHeight}px` }}>
|
||||
<View className="main_content">
|
||||
{/* 用户信息区域 */}
|
||||
<View className="user_info_section">
|
||||
<UserInfoCard
|
||||
@@ -267,8 +275,9 @@ const OtherUserPage: React.FC = () => {
|
||||
recommendList={[]}
|
||||
loading={loading}
|
||||
error={null}
|
||||
isShowNoData={game_records.length === 0}
|
||||
errorImg="ICON_LIST_EMPTY"
|
||||
emptyText="暂无消息,去互动看看吧"
|
||||
emptyText="暂无球局信息"
|
||||
loadMoreMatches={() => { }}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: 0, overflow: "hidden" }}
|
||||
@@ -306,8 +315,9 @@ const OtherUserPage: React.FC = () => {
|
||||
recommendList={[]}
|
||||
loading={loading}
|
||||
error={null}
|
||||
isShowNoData={ended_game_records.length === 0}
|
||||
errorImg="ICON_LIST_EMPTY"
|
||||
emptyText="暂无消息,去互动看看吧"
|
||||
emptyText="暂无球局信息"
|
||||
loadMoreMatches={() => { }}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||
|
||||
Reference in New Issue
Block a user