Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
AoleiSports
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d2cd36a6
由
ilCode
编写于
2024-07-01 11:40:01 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
大数据研究UI调整
1 个父辈
fdd94906
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
51 行增加
和
14 行删除
AoleiSports/Res/Assets.xcassets/default/default_team_logo.imageset/Contents.json
AoleiSports/Res/Assets.xcassets/default/default_team_logo.imageset/default_team_logo.png
AoleiSports/Src/Discover/BigDataResearch/BigDataDetail/HadoopDetailGameInfoView.swift
AoleiSports/Src/Discover/BigDataResearch/BigDataDetail/HadoopDetailRadarView.swift
AoleiSports/Src/Discover/BigDataResearch/BigDataList/HustleScoreCell.swift
R.generated.swift
AoleiSports/Res/Assets.xcassets/default/default_team_logo.imageset/Contents.json
0 → 100644
查看文件 @
d2cd36a
{
"images"
:
[
{
"filename"
:
"default_team_logo.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
AoleiSports/Res/Assets.xcassets/default/default_team_logo.imageset/default_team_logo.png
0 → 100644
查看文件 @
d2cd36a
2.9 KB
AoleiSports/Src/Discover/BigDataResearch/BigDataDetail/HadoopDetailGameInfoView.swift
查看文件 @
d2cd36a
...
...
@@ -70,7 +70,7 @@ class HadoopDetailGameInfoView: UIView {
}()
private
lazy
var
guestRankLab
:
UILabel
=
{
let
lab
=
UILabel
()
lab
.
font
=
kFontSize
(
1
3
)
lab
.
font
=
kFontSize
(
1
2
)
lab
.
textAlignment
=
.
center
lab
.
textColor
=
kMidTitleColor
return
lab
...
...
@@ -87,7 +87,6 @@ class HadoopDetailGameInfoView: UIView {
let
stackView
=
UIStackView
(
arrangedSubviews
:
[
hostStackView
,
gameStackView
,
guestStackView
])
stackView
.
axis
=
.
horizontal
stackView
.
alignment
=
.
center
stackView
.
distribution
=
.
fillEqually
return
stackView
}()
...
...
@@ -112,6 +111,15 @@ class HadoopDetailGameInfoView: UIView {
}
gameStackView
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
width
.
equalTo
(
80
)
}
hostRankLab
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
3
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
3
)
}
guestRankLab
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
3
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
3
)
}
}
...
...
@@ -143,7 +151,7 @@ class HadoopDetailGameInfoView: UIView {
let
guestRank
=
guestTeam
.
rank
??
""
self
.
hostBtn
.
setTitle
(
hostTeam
.
shortName
??
hostTeam
.
name
??
""
,
for
:
.
normal
)
self
.
hostBtn
.
kf
.
setImage
(
with
:
URL
(
string
:
hostTeam
.
logo
??
""
),
for
:
.
normal
,
placeholder
:
R
.
image
.
default_
user
()?
.
resize
(
to
:
resize
),
options
:
[
.
processor
(
processor
)],
completionHandler
:
{
_
in
self
.
hostBtn
.
kf
.
setImage
(
with
:
URL
(
string
:
hostTeam
.
logo
??
""
),
for
:
.
normal
,
placeholder
:
R
.
image
.
default_
team_logo
()?
.
resize
(
to
:
resize
),
options
:
[
.
processor
(
processor
)],
completionHandler
:
{
_
in
self
.
hostBtn
.
adjustImage
(
position
:
.
top
,
spacing
:
5
)
})
self
.
hostRankLab
.
text
=
hostRank
.
isEmpty
?
""
:
"
\(
comName
)\(
hostRank
)
"
...
...
@@ -152,7 +160,7 @@ class HadoopDetailGameInfoView: UIView {
self
.
matchTimeLab
.
text
=
ScoreTools
.
getFormatMatchTime
(
time
:
infoModel
.
matchTime
,
format
:
"MM/dd HH:mm"
)
self
.
guestBtn
.
setTitle
(
guestTeam
.
shortName
??
guestTeam
.
name
??
""
,
for
:
.
normal
)
self
.
guestBtn
.
kf
.
setImage
(
with
:
URL
(
string
:
guestTeam
.
logo
??
""
),
for
:
.
normal
,
placeholder
:
R
.
image
.
default_
user
()?
.
resize
(
to
:
resize
),
options
:
[
.
processor
(
processor
)],
completionHandler
:
{
_
in
self
.
guestBtn
.
kf
.
setImage
(
with
:
URL
(
string
:
guestTeam
.
logo
??
""
),
for
:
.
normal
,
placeholder
:
R
.
image
.
default_
team_logo
()?
.
resize
(
to
:
resize
),
options
:
[
.
processor
(
processor
)],
completionHandler
:
{
_
in
self
.
guestBtn
.
adjustImage
(
position
:
.
top
,
spacing
:
5
)
})
self
.
guestRankLab
.
text
=
guestRank
.
isEmpty
?
""
:
"
\(
comName
)\(
guestRank
)
"
...
...
AoleiSports/Src/Discover/BigDataResearch/BigDataDetail/HadoopDetailRadarView.swift
查看文件 @
d2cd36a
...
...
@@ -158,6 +158,14 @@ extension HadoopDetailRadarView {
axisRanges
.
append
((
0
,
100
))
}
if
activities
.
count
<=
3
{
radarChartView
.
extraBottomOffset
=
0
}
else
if
activities
.
count
%
2
==
0
{
radarChartView
.
extraBottomOffset
=
45
}
else
{
radarChartView
.
extraBottomOffset
=
0
}
self
.
showRadarChartView
()
}
}
...
...
@@ -274,19 +282,15 @@ class AxisView: UIView {
let
guestLoseBalls
=
(
guestRadarModel
.
loseAvgBalls
??
""
)
.
isEmpty
?
""
:
"
\(
guestRadarModel
.
loseAvgBalls
!
)
球"
let
guestLoseBallsInfo
=
"客队均失球"
var
status
=
""
let
hostTotalResult
=
hostStigmaResult
.
totalResult
??
0
let
hostCurResult
=
hostStigmaResult
.
curResult
??
""
let
guestTotalResult
=
guestStigmaResult
.
totalResult
??
0
let
guestCurResult
=
guestStigmaResult
.
curResult
??
""
if
hostTotalResult
>
guestTotalResult
{
status
=
(
hostTotalResult
>
0
&&
!
hostCurResult
.
isEmpty
)
?
"
\(
hostTotalResult
)
连
\(
hostCurResult
)
"
:
""
}
else
{
status
=
(
guestTotalResult
>
0
&&
!
guestCurResult
.
isEmpty
)
?
"
\(
guestTotalResult
)
连
\(
guestCurResult
)
"
:
""
}
firstView
.
updateInfo
(
title
:
guestWinBalls
,
detail
:
guestWinBallsInfo
,
status
:
guestTotalResult
>
hostTotalResult
?
status
:
""
)
secondView
.
updateInfo
(
title
:
hostWinBalls
,
detail
:
hostWinBallsInfo
,
status
:
hostTotalResult
>
guestTotalResult
?
status
:
""
)
let
hostStatus
=
(
hostTotalResult
>=
2
&&
!
hostCurResult
.
isEmpty
)
?
"
\(
hostTotalResult
)
连
\(
hostCurResult
)
"
:
""
let
guestStatus
=
(
guestTotalResult
>=
2
&&
!
guestCurResult
.
isEmpty
)
?
"
\(
guestTotalResult
)
连
\(
guestCurResult
)
"
:
""
firstView
.
updateInfo
(
title
:
guestWinBalls
,
detail
:
guestWinBallsInfo
,
status
:
guestStatus
)
secondView
.
updateInfo
(
title
:
hostWinBalls
,
detail
:
hostWinBallsInfo
,
status
:
hostStatus
)
thirdView
.
updateInfo
(
title
:
hostLoseBalls
,
detail
:
hostLoseBallsInfo
,
status
:
""
)
fourthView
.
updateInfo
(
title
:
guestLoseBalls
,
detail
:
guestLoseBallsInfo
,
status
:
""
)
}
...
...
AoleiSports/Src/Discover/BigDataResearch/BigDataList/HustleScoreCell.swift
查看文件 @
d2cd36a
...
...
@@ -121,7 +121,8 @@ class HustleScoreCell: BaseTableViewCell {
}
teamGameStackView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
10
)
make
.
left
.
right
.
equalToSuperview
()
make
.
left
.
equalToSuperview
()
.
offset
(
5
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
5
)
}
matchTimeLab
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
teamGameStackView
.
snp
.
bottom
)
.
offset
(
5
)
...
...
R.generated.swift
查看文件 @
d2cd36a
...
...
@@ -103,7 +103,7 @@ struct _R {
var
accentColor
:
RswiftResources
.
ColorResource
{
.
init
(
name
:
"AccentColor"
,
path
:
[],
bundle
:
bundle
)
}
}
/// This `_R.image` struct is generated, and contains static references to 3
0
images.
/// This `_R.image` struct is generated, and contains static references to 3
1
images.
struct
image
{
let
bundle
:
Foundation
.
Bundle
...
...
@@ -116,6 +116,9 @@ struct _R {
/// Image `btn_back_white`.
var
btn_back_white
:
RswiftResources
.
ImageResource
{
.
init
(
name
:
"btn_back_white"
,
path
:
[],
bundle
:
bundle
,
locale
:
nil
,
onDemandResourceTags
:
nil
)
}
/// Image `default_team_logo`.
var
default_team_logo
:
RswiftResources
.
ImageResource
{
.
init
(
name
:
"default_team_logo"
,
path
:
[],
bundle
:
bundle
,
locale
:
nil
,
onDemandResourceTags
:
nil
)
}
/// Image `default_user`.
var
default_user
:
RswiftResources
.
ImageResource
{
.
init
(
name
:
"default_user"
,
path
:
[],
bundle
:
bundle
,
locale
:
nil
,
onDemandResourceTags
:
nil
)
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论