Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
吴良建
/
JinQiu
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit bd5e2032
由
吴良建
编写于
2023-06-12 10:58:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
更换我的页面背景图标
修改分析页面数据不准确问题
1 个父辈
d050f146
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
25 行增加
和
25 行删除
pages/analysis/analysis.vue
static/mine_icons/my_bg.png
pages/analysis/analysis.vue
查看文件 @
bd5e203
...
...
@@ -41,7 +41,7 @@
</view>
</view>
<view
:v-show=
"getIntegralData(
tru
e,6)"
class=
"unselect_tong_ke"
style=
"flex: 1; margin-left: 35rpx"
>
<view
:v-show=
"getIntegralData(
fals
e,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
==
away
Id
)
{
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
==
away
Id
)
{
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
==
home
Id
)
{
this_
.
homeIntegral
=
item
;
}
if
(
item
.
Team
==
=
this_
.
gameInfo
.
AwayTeam
.
Id
)
{
if
(
item
.
Team
==
away
Id
)
{
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"
;
...
...
static/mine_icons/my_bg.png
查看文件 @
bd5e203
20.3 KB
|
宽:
|
高:
26.3 KB
|
宽:
|
高:
两方对比
交换覆盖
透明覆盖
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论