fix: 修改热门赛事列表

This commit is contained in:
lz-ui 2025-10-24 17:43:32 +08:00
parent d932dcdf2b
commit ff4dd7734b

View File

@ -103,7 +103,7 @@ function getDetail() {
try { try {
if(isCustom.value) { if(isCustom.value) {
// //
const matchDateTime = timerToStr(res.data.matchInfo.matchDateTime, 'YYYY-MM-DD HH:mm') const matchDateTime = res.data.matchInfo && res.data.matchInfo.matchDateTime ? timerToStr(res.data.matchInfo.matchDateTime, 'YYYY-MM-DD HH:mm') : '-'
const matchCode = res.data.matchCode const matchCode = res.data.matchCode
const report = JSON.parse(res.data.report) const report = JSON.parse(res.data.report)
const { keyFactors, matchInfo, predictions } = report const { keyFactors, matchInfo, predictions } = report
@ -129,44 +129,63 @@ function getDetail() {
// 2. // 2.
influencingList.value = keyFactors influencingList.value = keyFactors
// 3. // 3.
coreList.value = [ if (modelType.value === 'HOT_F') {
{ //
"name": "最终赛果", coreList.value = [
"key": "result_final",
"prediction": predictions.result_final.prediction, {
"analysis": predictions.result_final.analysis "name": "总进球数",
}, "key": "total_goals",
{ "prediction": predictions.total_goals.prediction,
"name": "让球结果", "analysis": predictions.total_goals.analysis
"key": "result_handicap", },
"prediction": predictions.result_handicap.prediction, {
"analysis": predictions.result_handicap.analysis "name": "亚洲盘口",
}, "key": "asian_handicap",
{ "prediction": predictions.asian_handicap.prediction,
"name": "比分预测", "analysis": predictions.asian_handicap.analysis
"key": "score_prediction", },
"prediction": predictions.score_prediction.prediction, ]
"analysis": predictions.score_prediction.analysis } else {
}, coreList.value = [
{ {
"name": "总进球数", "name": "最终赛果",
"key": "total_goals", "key": "result_final",
"prediction": predictions.total_goals.prediction, "prediction": predictions.result_final.prediction,
"analysis": predictions.total_goals.analysis "analysis": predictions.result_final.analysis
}, },
{ {
"name": "半全场赛果", "name": "让球结果",
"key": "half_full_time", "key": "result_handicap",
"prediction": predictions.half_full_time.prediction, "prediction": predictions.result_handicap.prediction,
"analysis": predictions.half_full_time.analysis "analysis": predictions.result_handicap.analysis
}, },
{ {
"name": "亚洲盘口", "name": "比分预测",
"key": "asian_handicap", "key": "score_prediction",
"prediction": predictions.asian_handicap.prediction, "prediction": predictions.score_prediction.prediction,
"analysis": predictions.asian_handicap.analysis "analysis": predictions.score_prediction.analysis
}, },
] {
"name": "总进球数",
"key": "total_goals",
"prediction": predictions.total_goals.prediction,
"analysis": predictions.total_goals.analysis
},
{
"name": "半全场赛果",
"key": "half_full_time",
"prediction": predictions.half_full_time.prediction,
"analysis": predictions.half_full_time.analysis
},
{
"name": "亚洲盘口",
"key": "asian_handicap",
"prediction": predictions.asian_handicap.prediction,
"analysis": predictions.asian_handicap.analysis
},
]
}
} }
} catch (error) { } catch (error) {
console.log(error) console.log(error)