Commit bd5e2032 吴良建

更换我的页面背景图标

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