fix: 修改热门赛事列表
This commit is contained in:
parent
d932dcdf2b
commit
ff4dd7734b
@ -103,7 +103,7 @@ function getDetail() {
|
||||
try {
|
||||
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 report = JSON.parse(res.data.report)
|
||||
const { keyFactors, matchInfo, predictions } = report
|
||||
@ -129,44 +129,63 @@ function getDetail() {
|
||||
// 2.关键影响因素
|
||||
influencingList.value = keyFactors
|
||||
// 3.核心预测结果
|
||||
coreList.value = [
|
||||
{
|
||||
"name": "最终赛果",
|
||||
"key": "result_final",
|
||||
"prediction": predictions.result_final.prediction,
|
||||
"analysis": predictions.result_final.analysis
|
||||
},
|
||||
{
|
||||
"name": "让球结果",
|
||||
"key": "result_handicap",
|
||||
"prediction": predictions.result_handicap.prediction,
|
||||
"analysis": predictions.result_handicap.analysis
|
||||
},
|
||||
{
|
||||
"name": "比分预测",
|
||||
"key": "score_prediction",
|
||||
"prediction": predictions.score_prediction.prediction,
|
||||
"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
|
||||
},
|
||||
]
|
||||
if (modelType.value === 'HOT_F') {
|
||||
// 热门的预测结果
|
||||
coreList.value = [
|
||||
|
||||
{
|
||||
"name": "总进球数",
|
||||
"key": "total_goals",
|
||||
"prediction": predictions.total_goals.prediction,
|
||||
"analysis": predictions.total_goals.analysis
|
||||
},
|
||||
{
|
||||
"name": "亚洲盘口",
|
||||
"key": "asian_handicap",
|
||||
"prediction": predictions.asian_handicap.prediction,
|
||||
"analysis": predictions.asian_handicap.analysis
|
||||
},
|
||||
]
|
||||
} else {
|
||||
coreList.value = [
|
||||
{
|
||||
"name": "最终赛果",
|
||||
"key": "result_final",
|
||||
"prediction": predictions.result_final.prediction,
|
||||
"analysis": predictions.result_final.analysis
|
||||
},
|
||||
{
|
||||
"name": "让球结果",
|
||||
"key": "result_handicap",
|
||||
"prediction": predictions.result_handicap.prediction,
|
||||
"analysis": predictions.result_handicap.analysis
|
||||
},
|
||||
{
|
||||
"name": "比分预测",
|
||||
"key": "score_prediction",
|
||||
"prediction": predictions.score_prediction.prediction,
|
||||
"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) {
|
||||
console.log(error)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user