Commit 6331a3c1 吴良建

兼容积分数据为空的情况

1 个父辈 93921aac
......@@ -411,7 +411,7 @@
var cName = this.gameInfo.Competition.Name
var homeId = this.gameInfo.HomeTeam.Id
var awayId = this.gameInfo.AwayTeam.Id
if (Object.values(this.competitionstanding.Standing)[0]) {
if (this.competitionstanding && this.competitionstanding.Standing && Object.values(this.competitionstanding.Standing)[0]) {
switch (type) {
case 0:
......@@ -509,13 +509,7 @@
if (result && result.data && result.data.getcompetitionstanding) {
this.competitionstanding = result.data.getcompetitionstanding
this.competitionschedule = result.data.getcompetitionschedule
} else {
// uni.showToast({
// icon: "none",
// title: "数据异常",
// });
// return;
}
}
},
countWin(homeId, date, type) { // 计算胜负平场数
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!