fix: 修改热门赛事列表
This commit is contained in:
parent
d932dcdf2b
commit
ff4dd7734b
@ -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,6 +129,24 @@ function getDetail() {
|
|||||||
// 2.关键影响因素
|
// 2.关键影响因素
|
||||||
influencingList.value = keyFactors
|
influencingList.value = keyFactors
|
||||||
// 3.核心预测结果
|
// 3.核心预测结果
|
||||||
|
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 = [
|
coreList.value = [
|
||||||
{
|
{
|
||||||
"name": "最终赛果",
|
"name": "最终赛果",
|
||||||
@ -168,6 +186,7 @@ function getDetail() {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user