Commit 889c7895 authored by jyx's avatar jyx

热门活动添加

parent 2b73755a
......@@ -183,6 +183,7 @@ object Constant {
const val HOT_ACTIVITY_NEWS = "TO_RUISHI"
const val HOT_ACTIVITY_DHGAME = "dhGame"
const val HOT_ACTIVITY_SHARE_NEWS = "TO_SHARE_NEWS"
const val HOT_ACTIVITY_CPD = "TO_CPD"
// 打开激活
const val FIRST_DEVICE_FLAG = "first_device_flag"
......
......@@ -893,6 +893,26 @@ class MyFragment : BaseFragment(),
}
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 -> {
if (!TextUtils.isEmpty(hotBean.url) && !TextUtils.isEmpty(hotBean.title)) {
val bundle = Bundle()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment