添加球局参与者头像

This commit is contained in:
2025-09-15 21:50:37 +08:00
parent f4c7840130
commit 8d639aed28

View File

@@ -18,7 +18,7 @@ interface UserDetailData {
country: string; country: string;
province: string; province: string;
city: string; city: string;
district:string; district: string;
language: string; language: string;
phone: string; phone: string;
is_subscribed: string; is_subscribed: string;
@@ -51,7 +51,7 @@ export interface UserInfoType {
country: string country: string
province: string province: string
city: string city: string
district:string district: string
language: string language: string
phone: string phone: string
is_subscribed: string is_subscribed: string
@@ -111,6 +111,11 @@ interface BackendGameData {
venue_type: string; venue_type: string;
surface_type: string; surface_type: string;
}; };
participants: {
user: {
avatar_url: string;
};
}[];
} }
// 用户服务类 // 用户服务类
@@ -166,7 +171,8 @@ export class UserService {
image_list: images, image_list: images,
court_type: game.court_type || '未知', court_type: game.court_type || '未知',
matchType: game.play_type || '不限', matchType: game.play_type || '不限',
shinei: game.court_type || '未知' shinei: game.court_type || '未知',
participants: game.participants || [],
}; };
}); });
} }
@@ -230,7 +236,7 @@ export class UserService {
}, },
personal_profile: userData.personal_profile || '', personal_profile: userData.personal_profile || '',
location: userData.city + userData.district|| '', location: userData.city + userData.district || '',
occupation: userData.occupation || '', occupation: userData.occupation || '',
ntrp_level: '', ntrp_level: '',
phone: userData.phone || '', phone: userData.phone || '',
@@ -373,8 +379,8 @@ export class UserService {
latitude: 'latitude', latitude: 'latitude',
longitude: 'longitude', longitude: 'longitude',
province: 'province', province: 'province',
country:"country", country: "country",
city:"city", city: "city",
personal_profile: 'personal_profile', personal_profile: 'personal_profile',
occupation: 'occupation', occupation: 'occupation',
ntrp_level: 'ntrp_level' ntrp_level: 'ntrp_level'