Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hadalive
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yichen
hadalive
Commits
88a22f11
Commit
88a22f11
authored
Aug 05, 2022
by
“leiyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修复bug
parent
d10a4e13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
+74
-0
MatchIndexFragment.kt
.../com/hupu/tv/player/app/ui/fragment/MatchIndexFragment.kt
+74
-0
No files found.
app/src/main/java/com/hupu/tv/player/app/ui/fragment/MatchIndexFragment.kt
View file @
88a22f11
...
...
@@ -52,6 +52,11 @@ class MatchIndexFragment : RefreshVP2Fragment<MatchIndexPresenter>(), MatchIndex
arguments
?.
getInt
(
Constants
.
INDEX_MATCH_TYPE
)
?.
let
{
type
=
it
}
if
(
type
==
Constants
.
SPORT_TYPE_BASKETBALL
){
tv_handicap
.
setText
(
"让分"
)
}
else
{
tv_handicap
.
setText
(
"让球"
)
}
initData
()
}
...
...
@@ -236,6 +241,75 @@ class MatchIndexFragment : RefreshVP2Fragment<MatchIndexPresenter>(), MatchIndex
}
it
.
maxStatisticsYaZhi
?.
apply
{
val
rangfen
=
MatchIndexDataEntity
()
rangfen
.
company
=
this
?.
statistics
.
orEmpty
()
rangfen
.
first
=
(
this
?.
yaZhi
?.
initialOdds
?.
home
?:
0.0
).
toString
()
rangfen
.
second
=
(
this
?.
yaZhi
?.
initialOdds
?.
handicap
?:
0.0
).
toString
()
rangfen
.
third
=
(
this
?.
yaZhi
?.
initialOdds
?.
away
?:
0.0
).
toString
()
rangfen
.
fourth
=
(
this
?.
yaZhi
?.
nowOdds
?.
home
?:
0.0
).
toString
()
rangfen
.
fifth
=
(
this
?.
yaZhi
?.
nowOdds
?.
handicap
?:
0.0
).
toString
()
rangfen
.
sixth
=
(
this
?.
yaZhi
?.
nowOdds
?.
away
?:
0.0
).
toString
()
rangFenList
.
add
(
rangfen
)
}
it
.
minStatisticsYaZhi
?.
apply
{
val
rangfen
=
MatchIndexDataEntity
()
rangfen
.
company
=
this
?.
statistics
.
orEmpty
()
rangfen
.
first
=
(
this
?.
yaZhi
?.
initialOdds
?.
home
?:
0.0
).
toString
()
rangfen
.
second
=
(
this
?.
yaZhi
?.
initialOdds
?.
handicap
?:
0.0
).
toString
()
rangfen
.
third
=
(
this
?.
yaZhi
?.
initialOdds
?.
away
?:
0.0
).
toString
()
rangfen
.
fourth
=
(
this
?.
yaZhi
?.
nowOdds
?.
home
?:
0.0
).
toString
()
rangfen
.
fifth
=
(
this
?.
yaZhi
?.
nowOdds
?.
handicap
?:
0.0
).
toString
()
rangfen
.
sixth
=
(
this
?.
yaZhi
?.
nowOdds
?.
away
?:
0.0
).
toString
()
rangFenList
.
add
(
rangfen
)
}
it
.
averageStatisticsYaZhi
?.
apply
{
val
rangfen
=
MatchIndexDataEntity
()
rangfen
.
company
=
this
?.
statistics
.
orEmpty
()
rangfen
.
first
=
(
this
?.
yaZhi
?.
initialOdds
?.
home
?:
0.0
).
toString
()
rangfen
.
second
=
(
this
?.
yaZhi
?.
initialOdds
?.
handicap
?:
0.0
).
toString
()
rangfen
.
third
=
(
this
?.
yaZhi
?.
initialOdds
?.
away
?:
0.0
).
toString
()
rangfen
.
fourth
=
(
this
?.
yaZhi
?.
nowOdds
?.
home
?:
0.0
).
toString
()
rangfen
.
fifth
=
(
this
?.
yaZhi
?.
nowOdds
?.
handicap
?:
0.0
).
toString
()
rangfen
.
sixth
=
(
this
?.
yaZhi
?.
nowOdds
?.
away
?:
0.0
).
toString
()
rangFenList
.
add
(
rangfen
)
}
it
.
maxStatisticsDaXiao
?.
apply
{
val
smallBig
=
MatchIndexDataEntity
()
smallBig
.
company
=
this
?.
statistics
.
orEmpty
()
smallBig
.
first
=
(
this
?.
daXiao
?.
initialOdds
?.
over
?:
0.0
).
toString
()
smallBig
.
second
=
(
this
?.
daXiao
?.
initialOdds
?.
handicap
?:
0.0
).
toString
()
smallBig
.
third
=
(
this
?.
daXiao
?.
initialOdds
?.
under
?:
0.0
).
toString
()
smallBig
.
fourth
=
(
this
?.
daXiao
?.
nowOdds
?.
over
?:
0.0
).
toString
()
smallBig
.
fifth
=
(
this
?.
daXiao
?.
nowOdds
?.
handicap
?:
0.0
).
toString
()
smallBig
.
sixth
=
(
this
?.
daXiao
?.
nowOdds
?.
under
?:
0.0
).
toString
()
bigSmallList
.
add
(
smallBig
)
}
it
.
minStatisticsDaXiao
?.
apply
{
val
smallBig
=
MatchIndexDataEntity
()
smallBig
.
company
=
this
?.
statistics
.
orEmpty
()
smallBig
.
first
=
(
this
?.
daXiao
?.
initialOdds
?.
over
?:
0.0
).
toString
()
smallBig
.
second
=
(
this
?.
daXiao
?.
initialOdds
?.
handicap
?:
0.0
).
toString
()
smallBig
.
third
=
(
this
?.
daXiao
?.
initialOdds
?.
under
?:
0.0
).
toString
()
smallBig
.
fourth
=
(
this
?.
daXiao
?.
nowOdds
?.
over
?:
0.0
).
toString
()
smallBig
.
fifth
=
(
this
?.
daXiao
?.
nowOdds
?.
handicap
?:
0.0
).
toString
()
smallBig
.
sixth
=
(
this
?.
daXiao
?.
nowOdds
?.
under
?:
0.0
).
toString
()
bigSmallList
.
add
(
smallBig
)
}
it
.
averageStatisticsDaXiao
?.
apply
{
val
smallBig
=
MatchIndexDataEntity
()
smallBig
.
company
=
this
?.
statistics
.
orEmpty
()
smallBig
.
first
=
(
this
?.
daXiao
?.
initialOdds
?.
over
?:
0.0
).
toString
()
smallBig
.
second
=
(
this
?.
daXiao
?.
initialOdds
?.
handicap
?:
0.0
).
toString
()
smallBig
.
third
=
(
this
?.
daXiao
?.
initialOdds
?.
under
?:
0.0
).
toString
()
smallBig
.
fourth
=
(
this
?.
daXiao
?.
nowOdds
?.
over
?:
0.0
).
toString
()
smallBig
.
fifth
=
(
this
?.
daXiao
?.
nowOdds
?.
handicap
?:
0.0
).
toString
()
smallBig
.
sixth
=
(
this
?.
daXiao
?.
nowOdds
?.
under
?:
0.0
).
toString
()
bigSmallList
.
add
(
smallBig
)
}
initViewPager
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment