Merge branch 'master' into dev

This commit is contained in:
张成
2025-12-06 22:06:04 +08:00
5 changed files with 22 additions and 4 deletions

View File

@@ -28,6 +28,7 @@
&-image {
border-radius: 12px;
transition: transform 0.5s;
border: 0.5px solid rgba(255, 255, 255, 0.1);
}
}
}

View File

@@ -72,6 +72,22 @@ export default function Participants(props) {
}>({ show: () => {} });
const userInfo = useUserInfo();
const participants = detail.participants || [];
// const participants = Array(10)
// .fill(0)
// .map((_, index) => ({
// id: 337 + index,
// join_time: "2025-12-06 11:06:24",
// status: "joined",
// is_organizer: true,
// user: {
// id: 18,
// nickname: "小猫开刀削面店往猫毛里面下面条",
// avatar_url:
// "https://bimwe.oss-cn-shanghai.aliyuncs.com/front/ball/images/d284060f-248b-4d58-a153-4d37c0ca77c8.jpg",
// phone: "18513125687",
// ntrp_level: "1.5",
// },
// }));
const {
participant_count,
max_participants,

View File

@@ -63,7 +63,7 @@ function Index() {
// await updateLocation();
// await fetchUserInfo();
if (id) {
Taro.showLoading();
// Taro.showLoading();
fetchDetail();
}
});
@@ -104,7 +104,7 @@ function Index() {
setShowEmptyState(true);
}
}
Taro.hideLoading();
// Taro.hideLoading();
};
const onUpdateUserInfo = () => {
@@ -181,7 +181,7 @@ function Index() {
<EmptyState
onGoToOtherGames={() => {
Taro.switchTab({
url: '/main_pages/index',
url: "/main_pages/index",
});
}}
onGoToHome={handleBack}

View File

@@ -696,6 +696,7 @@ const OrderCheck = () => {
title={id ? "订单详情" : "加入活动"}
titleClassName={styles.titleClassName}
className={styles.navbar}
backgroundColor="#fafafa"
/>
{/* Game Date and Address */}
<GameInfo

View File

@@ -161,7 +161,7 @@ const EditProfilePage: React.FC = () => {
const tempFilePath = res.tempFilePaths[0];
try {
const avatar_url = await UserService.upload_avatar(tempFilePath);
await updateUserInfo({ avatar: avatar_url });
await updateUserInfo({ avatar_url: avatar_url });
Taro.showToast({
title: "头像上传成功",
icon: "success",