Commit bd5e2032 吴良建

更换我的页面背景图标

修改分析页面数据不准确问题
1 个父辈 d050f146
......@@ -41,7 +41,7 @@
</view>
</view>
<view :v-show="getIntegralData(true,6)" class="unselect_tong_ke" style="flex: 1; margin-left: 35rpx">
<view :v-show="getIntegralData(false,6)" class="unselect_tong_ke" style="flex: 1; margin-left: 35rpx">
<view style="flex: 1; display: flex; flex-direction: column; align-items: center;">
<text style="color: #666; font-size: 28rpx; margin-top: 10rpx;">客队</text>
<text style="color: #666; font-size: 50rpx;">{{getIntegralData(false,6)}}</text>
......@@ -364,7 +364,6 @@
let result = await http.gql({
query: query_data
})
this.isLoading = false
console.log("result:" + JSON.stringify(result))
if (result && result.data && result.data.getgameinfo) {
......@@ -386,15 +385,17 @@
icon: "none",
title: "数据异常",
});
return;
}
}
this.isLoading = false
},
methods: {
getIntegralData(home, index) {
getIntegralData(home, index) {
var data = this.homeIntegral
if (!home) {
data = this.awayIntegral
}
}
if (data && Object.keys(data).length !== 0) {
console.log(JSON.stringify(data))
return data.Data[index]
......@@ -404,7 +405,9 @@
selectHeader(type) {
this.headerType = type
var this_ = this
var cName = this.gameInfo.Competition.Name
var cName = this.gameInfo.Competition.Name
var homeId = this.gameInfo.HomeTeam.Id
var awayId = this.gameInfo.AwayTeam.Id
switch (type) {
case 0:
......@@ -412,25 +415,23 @@
var data = Object.values(this.competitionstanding.Standing)[0].Away
data.forEach(function(item) {
console.log(JSON.stringify(item) + "--" + this_.gameInfo.HomeTeam.Id + "--" + this_
.gameInfo.AwayTeam.Id)
if (item.Team === this_.gameInfo.HomeTeam.Id) {
this_.homeIntegral = item;
if (item.Team == homeId) {
console.log(JSON.stringify(item) + "--" + homeId)
this_.homeIntegral = item;
}
if (item.Team === this_.gameInfo.AwayTeam.Id) {
this_.awayIntegral = item;
if (item.Team == awayId) {
this_.awayIntegral = item;
}
});
break
case 1:
var data = Object.values(this.competitionstanding.Standing)[0].Home
data.forEach(function(item) {
console.log(JSON.stringify(item) + "--" + this_.gameInfo.HomeTeam.Id + "--" + this_
.gameInfo.AwayTeam.Id)
if (item.Team === this_.gameInfo.HomeTeam.Id) {
if (item.Team == homeId) {
this_.homeIntegral = item;
}
if (item.Team === this_.gameInfo.AwayTeam.Id) {
if (item.Team == awayId) {
this_.awayIntegral = item;
}
});
......@@ -438,10 +439,10 @@
case 2:
var data = Object.values(this.competitionstanding.Standing)[0].Total
data.forEach(function(item) {
if (item.Team === this_.gameInfo.HomeTeam.Id) {
if (item.Team == homeId) {
this_.homeIntegral = item;
}
if (item.Team === this_.gameInfo.AwayTeam.Id) {
if (item.Team == awayId) {
this_.awayIntegral = item;
}
});
......@@ -450,7 +451,6 @@
},
selectTong(away, sai, ke, chang) {
console.log("away:" + away + " sai:" + sai + "ke:" + ke + "chang:" + chang)
if (away) {
this.awayTongKe = ke
......@@ -545,16 +545,16 @@
.ScoreAll)
}
},
getTeamNameColor(homdId, id, item) {
if (homdId !== id) {
getTeamNameColor(homdId, id, item) {
console.log("homeId:" + homdId + "--" + id + " item:" + JSON.stringify(item))
if (homdId != id) {
return "#888888"
} else {
var type = this.checkTramWin(id, item, item.ScoreAll)
if (type === "胜") {
if (type == "胜") {
return "#ff6858";
} else if (type === "平") {
} else if (type == "平") {
return "#82c866";
} else {
return "#6f83fc";
......

20.3 KB | 宽: | 高:

26.3 KB | 宽: | 高:

static/mine_icons/my_bg.png
static/mine_icons/my_bg.png
static/mine_icons/my_bg.png
static/mine_icons/my_bg.png
  • 两方对比
  • 交换覆盖
  • 透明覆盖
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!