Commit d2e0aa93 authored by mengcuiguang2's avatar mengcuiguang2

首页热门活动添加大转盘

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