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
ea7e1408
Commit
ea7e1408
authored
Jun 29, 2021
by
张释方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化公众号活动
parent
228ee11e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
12 deletions
+21
-12
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+19
-11
FlDialog.kt
...in/java/com/mints/goodmoney/ui/widgets/dialog/FlDialog.kt
+2
-1
fl_zwf.png
GoodMoney/app/src/main/res/mipmap-xhdpi/fl_zwf.png
+0
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
ea7e1408
...
@@ -427,33 +427,41 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -427,33 +427,41 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
when
(
flhost
.
key
)
{
when
(
flhost
.
key
)
{
//公众号弹窗
//公众号弹窗
Constant
.
HOT_ACTIVITY_GZH
->
{
Constant
.
HOT_ACTIVITY_GZH
->
{
gzhDialog
()
// gzhDialog()
// //将“淘金空间”复制到粘贴板上
val
clipboardManager
=
baseApplication
.
getSystemService
(
Context
.
CLIPBOARD_SERVICE
)
as
ClipboardManager
val
clipData
=
ClipData
.
newPlainText
(
"Label"
,
"淘金空间"
)
clipboardManager
.
setPrimaryClip
(
clipData
)
showToast
(
"已复制内容到剪贴板"
)
//直接跳转到微信搜索界面
getWechatApi
()
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_WATER
->
{
Constant
.
HOT_ACTIVITY_WATER
->
{
ExpressManager
.
loadExpress
()
ExpressManager
.
loadExpress
()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WATER)
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WATER)
readyGo
(
WaterActivity
::
class
.
java
)
readyGo
(
WaterActivity
::
class
.
java
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_WATER
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_WALK
->
{
Constant
.
HOT_ACTIVITY_WALK
->
{
ExpressManager
.
loadExpress
()
ExpressManager
.
loadExpress
()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WALK)
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WALK)
readyGo
(
WalkActivity
::
class
.
java
)
readyGo
(
WalkActivity
::
class
.
java
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_WALK
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_CARD
->
{
Constant
.
HOT_ACTIVITY_CARD
->
{
readyGo
(
EraseActivity
::
class
.
java
)
readyGo
(
EraseActivity
::
class
.
java
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_CARD
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_LIEBAO
->
{
Constant
.
HOT_ACTIVITY_LIEBAO
->
{
readyGo
(
LiebaoGameActivity
::
class
.
java
)
readyGo
(
LiebaoGameActivity
::
class
.
java
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_LIEBAO
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_MORNINGCLOCK
->
{
Constant
.
HOT_ACTIVITY_MORNINGCLOCK
->
{
ExpressManager
.
loadExpress
()
ExpressManager
.
loadExpress
()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_MORNINGCLOCK)
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_MORNINGCLOCK)
readyGo
(
MorningClockActivity
::
class
.
java
)
readyGo
(
MorningClockActivity
::
class
.
java
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_MORNINGCLOCK
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_YYZ
->
{
Constant
.
HOT_ACTIVITY_YYZ
->
{
...
@@ -464,13 +472,13 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -464,13 +472,13 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
return
return
}
}
YyzManager
.
openYyzTask
(
requireActivity
())
YyzManager
.
openYyzTask
(
requireActivity
())
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_YYZ
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_EAT
->
{
Constant
.
HOT_ACTIVITY_EAT
->
{
ExpressManager
.
loadExpress
()
ExpressManager
.
loadExpress
()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_EAT)
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_EAT)
readyGo
(
FoodSubsidyActivity
::
class
.
java
)
readyGo
(
FoodSubsidyActivity
::
class
.
java
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_EAT
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_SHARE_NEWS
->
{
Constant
.
HOT_ACTIVITY_SHARE_NEWS
->
{
...
@@ -480,7 +488,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -480,7 +488,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
return
return
}
}
shareArticle
(
300
)
shareArticle
(
300
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_SHARE_NEWS
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_CPD
->
{
Constant
.
HOT_ACTIVITY_CPD
->
{
if
(!
UserManager
.
getInstance
().
userIsLogin
())
{
if
(!
UserManager
.
getInstance
().
userIsLogin
())
{
...
@@ -490,11 +498,11 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -490,11 +498,11 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
}
}
carrierType
=
""
carrierType
=
""
readyGo
(
TaskCpdActivity
::
class
.
java
)
readyGo
(
TaskCpdActivity
::
class
.
java
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_CPD
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
Constant
.
HOT_ACTIVITY_MOKU
->
{
//截图任务
Constant
.
HOT_ACTIVITY_MOKU
->
{
//截图任务
gotoMoku
()
gotoMoku
()
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
Constant
.
HOT_ACTIVITY_MOKU
)
homePresenter
.
activeGuidanceTips
(
Constant
.
STATUS_CODE_TWO
,
flhost
.
activeKey
)
}
}
else
->
{
else
->
{
if
(!
TextUtils
.
isEmpty
(
flhost
.
key
)
&&
!
TextUtils
.
isEmpty
(
flhost
.
title
))
{
if
(!
TextUtils
.
isEmpty
(
flhost
.
key
)
&&
!
TextUtils
.
isEmpty
(
flhost
.
title
))
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/dialog/FlDialog.kt
View file @
ea7e1408
...
@@ -14,6 +14,7 @@ import com.mints.goodmoney.mvp.model.FlActivityBean
...
@@ -14,6 +14,7 @@ import com.mints.goodmoney.mvp.model.FlActivityBean
import
com.mints.goodmoney.mvp.model.UserTaskMsgBean
import
com.mints.goodmoney.mvp.model.UserTaskMsgBean
import
com.mints.goodmoney.ui.widgets.seekbar.BubbleUtils
import
com.mints.goodmoney.ui.widgets.seekbar.BubbleUtils
import
com.mints.goodmoney.utils.SpanUtils
import
com.mints.goodmoney.utils.SpanUtils
import
com.mints.library.utils.GlideUtils
class
FlDialog
(
data
:
FlActivityBean
.
ActiveTipsConfigDTO
,
context
:
Context
,
private
val
listener
:
DialogListener
)
:
class
FlDialog
(
data
:
FlActivityBean
.
ActiveTipsConfigDTO
,
context
:
Context
,
private
val
listener
:
DialogListener
)
:
Dialog
(
context
,
R
.
style
.
dialog
)
{
Dialog
(
context
,
R
.
style
.
dialog
)
{
...
@@ -50,7 +51,7 @@ class FlDialog(data: FlActivityBean.ActiveTipsConfigDTO, context: Context, priva
...
@@ -50,7 +51,7 @@ class FlDialog(data: FlActivityBean.ActiveTipsConfigDTO, context: Context, priva
tv_1
.
text
=
data
.
title
tv_1
.
text
=
data
.
title
tv_2
.
text
=
data
.
hotTitle
tv_2
.
text
=
data
.
hotTitle
//显示图片
//显示图片
Glide
.
with
(
context
).
load
(
data
.
url
).
into
(
iv_fl
)
Glide
Utils
.
loadImageViewLoding
(
context
,
data
.
url
,
iv_fl
,
R
.
mipmap
.
fl_zwf
)
tv_focus
.
setOnClickListener
{
tv_focus
.
setOnClickListener
{
listener
.
onClick
(
it
)
listener
.
onClick
(
it
)
...
...
GoodMoney/app/src/main/res/mipmap-xhdpi/fl_zwf.png
0 → 100644
View file @
ea7e1408
11.6 KB
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