优化篮球分数显示
This commit is contained in:
@@ -390,7 +390,7 @@ export default function HomeScreen() {
|
|||||||
awayTeamName: item.event_away_team,
|
awayTeamName: item.event_away_team,
|
||||||
homeTeamLogo: item.home_team_logo || "",
|
homeTeamLogo: item.home_team_logo || "",
|
||||||
awayTeamLogo: item.away_team_logo || "",
|
awayTeamLogo: item.away_team_logo || "",
|
||||||
scoreText: item.event_halftime_result || "0 - 0",
|
scoreText: item.event_final_result || item.event_halftime_result || "0 - 0",
|
||||||
fav: false,
|
fav: false,
|
||||||
sportId: sportId,
|
sportId: sportId,
|
||||||
isLive: true,
|
isLive: true,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export default function LiveScreen() {
|
|||||||
homeTeamLogo: item.home_team_logo,
|
homeTeamLogo: item.home_team_logo,
|
||||||
awayTeamLogo: item.away_team_logo,
|
awayTeamLogo: item.away_team_logo,
|
||||||
meta: item.event_status,
|
meta: item.event_status,
|
||||||
scoreText: item.event_final_result || "0 - 0",
|
scoreText: item.event_final_result || item.event_halftime_result || "0 - 0",
|
||||||
fav: false,
|
fav: false,
|
||||||
leagueId: item.league_key,
|
leagueId: item.league_key,
|
||||||
sportId: state.selectedSportId ?? undefined,
|
sportId: state.selectedSportId ?? undefined,
|
||||||
|
|||||||
@@ -90,8 +90,12 @@ export default function LiveDetailScreen() {
|
|||||||
eventType: "",
|
eventType: "",
|
||||||
eventToss: "",
|
eventToss: "",
|
||||||
eventManOfMatch: "",
|
eventManOfMatch: "",
|
||||||
scores: match.scores,
|
scores: Array.isArray(match.scores) && match.scores.length > 0 && 'type' in match.scores[0]
|
||||||
stats: match.statistics,
|
? match.scores as { type: string; home: string; away: string; }[]
|
||||||
|
: undefined,
|
||||||
|
stats: Array.isArray(match.statistics) && match.statistics.length > 0 && 'type' in match.statistics[0]
|
||||||
|
? match.statistics as { type: string; home: string; away: string; }[]
|
||||||
|
: undefined,
|
||||||
players: match.player_statistics
|
players: match.player_statistics
|
||||||
? {
|
? {
|
||||||
home_team: (match.player_statistics.home_team || []).map((p) => ({
|
home_team: (match.player_statistics.home_team || []).map((p) => ({
|
||||||
|
|||||||
@@ -437,7 +437,7 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
scoreValue: {
|
scoreValue: {
|
||||||
color: "#000",
|
color: "#000",
|
||||||
fontSize: 25,
|
fontSize: 20,
|
||||||
fontWeight: "700",
|
fontWeight: "700",
|
||||||
lineHeight: 30,
|
lineHeight: 30,
|
||||||
letterSpacing: 1,
|
letterSpacing: 1,
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ const styles = StyleSheet.create({
|
|||||||
gap: 6,
|
gap: 6,
|
||||||
},
|
},
|
||||||
scoreBox: {
|
scoreBox: {
|
||||||
width: 36,
|
width: 45,
|
||||||
height: 54,
|
height: 54,
|
||||||
borderRadius: 8,
|
borderRadius: 8,
|
||||||
borderWidth: 1.5,
|
borderWidth: 1.5,
|
||||||
@@ -416,7 +416,7 @@ const styles = StyleSheet.create({
|
|||||||
color: "#FF9500",
|
color: "#FF9500",
|
||||||
},
|
},
|
||||||
scoreBoxPlaceholder: {
|
scoreBoxPlaceholder: {
|
||||||
width: 36,
|
width: 45,
|
||||||
height: 54,
|
height: 54,
|
||||||
},
|
},
|
||||||
favoriteButton: {
|
favoriteButton: {
|
||||||
|
|||||||
@@ -709,7 +709,7 @@ const styles = StyleSheet.create({
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
},
|
},
|
||||||
scoreContainer: {
|
scoreContainer: {
|
||||||
width: 25,
|
width: 35,
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
},
|
},
|
||||||
extraStatsContainer: {
|
extraStatsContainer: {
|
||||||
@@ -722,7 +722,7 @@ const styles = StyleSheet.create({
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
},
|
},
|
||||||
scoreBox: {
|
scoreBox: {
|
||||||
width: 28,
|
width: 35,
|
||||||
height: 55,
|
height: 55,
|
||||||
borderRadius: 8,
|
borderRadius: 8,
|
||||||
borderWidth: 0.3,
|
borderWidth: 0.3,
|
||||||
@@ -751,7 +751,7 @@ const styles = StyleSheet.create({
|
|||||||
backgroundColor: "rgba(0,0,0,0.06)",
|
backgroundColor: "rgba(0,0,0,0.06)",
|
||||||
},
|
},
|
||||||
scoreBoxPlaceholder: {
|
scoreBoxPlaceholder: {
|
||||||
width: 28,
|
width: 35,
|
||||||
height: 48,
|
height: 48,
|
||||||
},
|
},
|
||||||
cardsInline: {
|
cardsInline: {
|
||||||
|
|||||||
Reference in New Issue
Block a user