Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
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
android
android_goodmoney
Commits
52415afc
Commit
52415afc
authored
Nov 25, 2020
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
友盟埋点集成
parent
6f164e9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
22 deletions
+26
-22
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+9
-9
FriendsFragment.kt
...n/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
+17
-12
fragment_main_friends.xml
GoodMoney/app/src/main/res/layout/fragment_main_friends.xml
+0
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
52415afc
package
com.mints.goodmoney.ui.activitys
import
android.os.Bundle
import
android.text.TextUtils
import
android.view.KeyEvent
import
android.view.View
import
com.mints.goodmoney.R
...
...
@@ -68,6 +69,14 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
// 开启3秒倒计时
startTime
()
if
(!
TextUtils
.
isEmpty
(
carrierType
)
&&
curCoin
>
0
)
{
// 埋点上送事件
val
map
=
mutableMapOf
<
String
,
String
>()
map
[
"userId"
]
=
UserManager
.
getInstance
().
userID
map
[
"coin"
]
=
""
+
curCoin
MobclickAgent
.
onEvent
(
this
,
carrierType
,
map
)
}
when
(
carrierType
)
{
Constant
.
CARRIER_GAME_ONLINE
,
Constant
.
CARRIER_EATMEAL
->
{
val
vo
=
HashMap
<
String
,
Any
>()
...
...
@@ -102,12 +111,6 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
vo
[
"carrierType"
]
=
carrierType
awardPresenter
.
reportAddCoinMsg
(
vo
)
val
map
=
mutableMapOf
<
String
,
String
>()
map
[
"userId"
]
=
UserManager
.
getInstance
().
userID
map
[
"carrierType"
]
=
carrierType
map
[
"coin"
]
=
""
+
curCoin
MobclickAgent
.
onEvent
(
this
,
"award_share_friend"
,
map
)
tvAwardContent
.
setText
(
curCoin
.
toString
()
+
"金币已到账"
)
tvAwardNext
.
setText
(
"看视频再领${extraId}金币"
)
...
...
@@ -164,9 +167,6 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
tvAwardContent
.
setText
(
"+"
+
curCoin
+
"金币"
)
tvAwardNext
.
setText
(
"看视频领取"
)
}
Constant
.
CARRIER_VERSUS_VIDEO
->{
tvAwardContent
.
setText
(
curCoin
.
toString
()
+
"金币已到账"
)
}
else
->
{
tvAwardContent
.
setText
(
curCoin
.
toString
()
+
"金币已到账"
)
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
View file @
52415afc
...
...
@@ -120,21 +120,17 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener, View.OnC
}
override
fun
onPageSelected
(
position
:
Int
)
{
when
(
position
)
{
when
(
view_pager_friends
.
currentItem
)
{
0
->
{
if
(
allData
.
size
<=
0
)
{
friendsPresenter
.
getContributionBigLeaders
()
}
friendsPresenter
.
getContributionBigLeaders
()
}
1
->
{
if
(
todayData
.
size
<=
0
)
{
friendsPresenter
.
getFriendsGiveTodayList
()
}
friendsPresenter
.
getFriendsGiveTodayList
()
}
2
->
{
if
(
yesterdayData
.
size
<=
0
)
{
friendsPresenter
.
getContributionLeaders
()
}
friendsPresenter
.
getContributionLeaders
()
}
else
->
{
}
}
}
...
...
@@ -236,7 +232,11 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener, View.OnC
btn_get_bonus
.
text
=
data
.
button
btn_get_bonus
.
isEnabled
=
data
.
status
==
0
&&
data
.
cash
>
0
if
(
btn_get_bonus
.
isEnabled
)
{
if
(
data
.
button
==
"戳我分红"
)
{
btn_get_bonus
.
isEnabled
=
true
btn_get_bonus
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
white
))
btn_get_bonus
.
setBackgroundResource
(
R
.
drawable
.
shape_btn_friends_unenabled
)
showRedbox
(
btn_get_bonus
)
}
else
{
stopRedbox
()
...
...
@@ -364,7 +364,12 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener, View.OnC
// 去提现
friendsPresenter
.
getContributionOutToCash
()
}
else
{
showToast
(
"您的贡献值未达到提现要求"
)
if
(
it
.
button
==
"戳我分红"
)
{
// 玩法规则
ruleDialog
()
}
else
{
showToast
(
"您的贡献值未达到提现要求"
)
}
}
}
...
...
GoodMoney/app/src/main/res/layout/fragment_main_friends.xml
View file @
52415afc
...
...
@@ -233,7 +233,6 @@
android:layout_height=
"26dp"
android:layout_alignParentEnd=
"true"
android:layout_centerVertical=
"true"
android:layout_marginStart=
"20dp"
android:layout_marginEnd=
"5dp"
android:background=
"@drawable/btn_friends_selectored"
android:text=
"结算中"
...
...
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