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
889c7895
Commit
889c7895
authored
Jan 15, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
热门活动添加
parent
2b73755a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
Constant.kt
.../app/src/main/java/com/mints/goodmoney/common/Constant.kt
+1
-0
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+20
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/common/Constant.kt
View file @
889c7895
...
@@ -183,6 +183,7 @@ object Constant {
...
@@ -183,6 +183,7 @@ object Constant {
const
val
HOT_ACTIVITY_NEWS
=
"TO_RUISHI"
const
val
HOT_ACTIVITY_NEWS
=
"TO_RUISHI"
const
val
HOT_ACTIVITY_DHGAME
=
"dhGame"
const
val
HOT_ACTIVITY_DHGAME
=
"dhGame"
const
val
HOT_ACTIVITY_SHARE_NEWS
=
"TO_SHARE_NEWS"
const
val
HOT_ACTIVITY_SHARE_NEWS
=
"TO_SHARE_NEWS"
const
val
HOT_ACTIVITY_CPD
=
"TO_CPD"
// 打开激活
// 打开激活
const
val
FIRST_DEVICE_FLAG
=
"first_device_flag"
const
val
FIRST_DEVICE_FLAG
=
"first_device_flag"
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
889c7895
...
@@ -893,6 +893,26 @@ class MyFragment : BaseFragment(),
...
@@ -893,6 +893,26 @@ class MyFragment : BaseFragment(),
}
}
shareArticle
(
300
)
shareArticle
(
300
)
}
}
Constant
.
HOT_ACTIVITY_CPD
->
{
if
(!
UserManager
.
getInstance
().
userIsLogin
())
{
readyGo
(
WxLoginActivity
::
class
.
java
)
return
}
carrierType
=
""
if
(
dataList
.
isNotEmpty
())
{
for
(
listBean
in
dataList
)
{
if
(
listBean
.
baseConfig
.
taskId
==
MainMyAdapter
.
TO_SHARE_NEWS
)
{
val
bundle
=
Bundle
()
bundle
.
putInt
(
TaskActivity
.
TASK_COIN
,
listBean
.
otherConfig
.
coin
)
bundle
.
putInt
(
TaskActivity
.
TASK_USE_TIME
,
listBean
.
otherConfig
.
needSeconds
)
readyGo
(
TaskActivity
::
class
.
java
,
bundle
)
return
}
}
}
}
else
->
{
else
->
{
if
(!
TextUtils
.
isEmpty
(
hotBean
.
url
)
&&
!
TextUtils
.
isEmpty
(
hotBean
.
title
))
{
if
(!
TextUtils
.
isEmpty
(
hotBean
.
url
)
&&
!
TextUtils
.
isEmpty
(
hotBean
.
title
))
{
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
...
...
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