Merge branch 'master' into dev
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
&-image {
|
&-image {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
transition: transform 0.5s;
|
transition: transform 0.5s;
|
||||||
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,22 @@ export default function Participants(props) {
|
|||||||
}>({ show: () => {} });
|
}>({ show: () => {} });
|
||||||
const userInfo = useUserInfo();
|
const userInfo = useUserInfo();
|
||||||
const participants = detail.participants || [];
|
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 {
|
const {
|
||||||
participant_count,
|
participant_count,
|
||||||
max_participants,
|
max_participants,
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ function Index() {
|
|||||||
// await updateLocation();
|
// await updateLocation();
|
||||||
// await fetchUserInfo();
|
// await fetchUserInfo();
|
||||||
if (id) {
|
if (id) {
|
||||||
Taro.showLoading();
|
// Taro.showLoading();
|
||||||
fetchDetail();
|
fetchDetail();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -104,7 +104,7 @@ function Index() {
|
|||||||
setShowEmptyState(true);
|
setShowEmptyState(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Taro.hideLoading();
|
// Taro.hideLoading();
|
||||||
};
|
};
|
||||||
|
|
||||||
const onUpdateUserInfo = () => {
|
const onUpdateUserInfo = () => {
|
||||||
@@ -181,7 +181,7 @@ function Index() {
|
|||||||
<EmptyState
|
<EmptyState
|
||||||
onGoToOtherGames={() => {
|
onGoToOtherGames={() => {
|
||||||
Taro.switchTab({
|
Taro.switchTab({
|
||||||
url: '/main_pages/index',
|
url: "/main_pages/index",
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
onGoToHome={handleBack}
|
onGoToHome={handleBack}
|
||||||
|
|||||||
@@ -696,6 +696,7 @@ const OrderCheck = () => {
|
|||||||
title={id ? "订单详情" : "加入活动"}
|
title={id ? "订单详情" : "加入活动"}
|
||||||
titleClassName={styles.titleClassName}
|
titleClassName={styles.titleClassName}
|
||||||
className={styles.navbar}
|
className={styles.navbar}
|
||||||
|
backgroundColor="#fafafa"
|
||||||
/>
|
/>
|
||||||
{/* Game Date and Address */}
|
{/* Game Date and Address */}
|
||||||
<GameInfo
|
<GameInfo
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ const EditProfilePage: React.FC = () => {
|
|||||||
const tempFilePath = res.tempFilePaths[0];
|
const tempFilePath = res.tempFilePaths[0];
|
||||||
try {
|
try {
|
||||||
const avatar_url = await UserService.upload_avatar(tempFilePath);
|
const avatar_url = await UserService.upload_avatar(tempFilePath);
|
||||||
await updateUserInfo({ avatar: avatar_url });
|
await updateUserInfo({ avatar_url: avatar_url });
|
||||||
Taro.showToast({
|
Taro.showToast({
|
||||||
title: "头像上传成功",
|
title: "头像上传成功",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
|
|||||||
Reference in New Issue
Block a user