Commit d2e0aa93 authored by mengcuiguang2's avatar mengcuiguang2

首页热门活动添加大转盘

parent b5b9547c
...@@ -201,6 +201,7 @@ object Constant { ...@@ -201,6 +201,7 @@ object Constant {
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 HOT_ACTIVITY_CPD = "TO_CPD"
const val HOT_ACTIVITY_CALLSHOW = "TO_CALLSHOW" const val HOT_ACTIVITY_CALLSHOW = "TO_CALLSHOW"
const val HOT_ACTIVITY_TURNTABLE = "TO_TURNTABLE"
// 打开激活 // 打开激活
const val FIRST_DEVICE_FLAG = "first_device_flag" const val FIRST_DEVICE_FLAG = "first_device_flag"
......
...@@ -72,7 +72,7 @@ class WrapperActivity : BaseActivity(), View.OnClickListener { ...@@ -72,7 +72,7 @@ class WrapperActivity : BaseActivity(), View.OnClickListener {
currentFragment = WzFragment(true) currentFragment = WzFragment(true)
} }
Constant.WRAPPER_TYPE_TURN -> { Constant.WRAPPER_TYPE_TURN -> {
// 微转分享 // 幸运大抽奖
layoutWrapper.visibility = View.VISIBLE layoutWrapper.visibility = View.VISIBLE
tv_title.text = "幸运大抽奖" tv_title.text = "幸运大抽奖"
currentFragment = TurnTableFragment() currentFragment = TurnTableFragment()
......
...@@ -306,6 +306,12 @@ class HomeFragment : BaseFragment(), WifiStateManager.WifiStateCallback, ...@@ -306,6 +306,12 @@ class HomeFragment : BaseFragment(), WifiStateManager.WifiStateCallback,
ExpressManager.loadExpress(true) ExpressManager.loadExpress(true)
readyGo(FoodSubsidyActivity::class.java) readyGo(FoodSubsidyActivity::class.java)
} }
Constant.HOT_ACTIVITY_TURNTABLE -> {
// 大转盘
val bundle = Bundle()
bundle.putInt(Constant.WRAPPER_TYPE, Constant.WRAPPER_TYPE_TURN)
readyGo(WrapperActivity::class.java, bundle)
}
Constant.HOT_ACTIVITY_SHARE_NEWS -> { Constant.HOT_ACTIVITY_SHARE_NEWS -> {
if (!userManager.userIsLogin()) { if (!userManager.userIsLogin()) {
readyGo(WxLoginActivity::class.java) readyGo(WxLoginActivity::class.java)
......
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