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
6057d0b4
Commit
6057d0b4
authored
Nov 24, 2020
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试友盟埋点
parent
3a5749f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
Constant.kt
.../app/src/main/java/com/mints/goodmoney/common/Constant.kt
+1
-1
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+20
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/common/Constant.kt
View file @
6057d0b4
...
...
@@ -98,7 +98,7 @@ object Constant {
const
val
CARRIER_EATMEAL_SUBSIDY_NOT
=
"EATMEAL_SUBSIDY_NOT"
//未到时间饭补
const
val
CARRIER_WALK_BUBBLE
=
"WALK_BUBBLE"
//走路汽泡
const
val
CARRIER_NEW_USER
=
"CARRIER_NEW_USER"
//新用户红包
const
val
CARRIER_NEW_VISITOR
=
"CARRIER_NEW_VISITOR"
//游
戏
首次登录
const
val
CARRIER_NEW_VISITOR
=
"CARRIER_NEW_VISITOR"
//游
客
首次登录
const
val
CARRIER_GAME_ONLINE
=
"GAME_ONLINE"
//跳转猎豹
const
val
CARRIER_ZHANGYUE
=
"ZHANGYUE"
//阅读书城
const
val
CARRIER_CHALLENGE_SHAREFRIEND_DOUBLE
=
"CHALLENGE_SHAREFRIEND_DOUBLE"
//邀请好友翻倍
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
6057d0b4
...
...
@@ -7,6 +7,7 @@ import com.mints.goodmoney.R
import
com.mints.goodmoney.ad.video.VedioAdingManager
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.TTPreLoadExpressManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.model.VedioAdingBean
import
com.mints.goodmoney.mvp.presenters.AwardPresenter
import
com.mints.goodmoney.mvp.views.AwardView
...
...
@@ -16,10 +17,12 @@ import com.mints.goodmoney.ui.widgets.countdowntimer.OnCountDownTimerListener
import
com.mints.goodmoney.utils.SoundPoolUtil
import
com.mints.goodmoney.utils.SpanUtils
import
com.mints.goodmoney.utils.Utils
import
com.umeng.analytics.MobclickAgent
import
kotlinx.android.synthetic.main.activity_award.*
import
java.math.BigDecimal
import
java.util.*
/**
* 描述:奖励界面
* 作者:孟崔广
...
...
@@ -102,6 +105,12 @@ 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}金币"
)
...
...
@@ -179,9 +188,19 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
override
fun
onResume
()
{
super
.
onResume
()
MobclickAgent
.
onPageStart
(
this
::
class
.
java
.
simpleName
)
MobclickAgent
.
onResume
(
this
)
awardPresenter
.
getCoinMsg
()
}
override
fun
onPause
()
{
super
.
onPause
()
MobclickAgent
.
onPageEnd
(
this
::
class
.
java
.
simpleName
)
MobclickAgent
.
onPause
(
this
)
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
...
...
@@ -194,7 +213,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
e
.
printStackTrace
()
}
vedioAdingManager
?
.
setVedioAdingListener
(
null
)
vedioAdingManager
.
setVedioAdingListener
(
null
)
vedioAdingManager
.
onDestory
()
awardPresenter
.
detachView
()
...
...
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