Commit 33c4e5c4 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent cca05159
...@@ -244,7 +244,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -244,7 +244,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
// readyGoThenKill(MainActivity::class.java) // readyGoThenKill(MainActivity::class.java)
// } // }
// } // }
if (!UserManager.getInstance().userIsLogin()) { if (TextUtils.isEmpty(UserManager.getInstance().mobile)) {
val b = Bundle() val b = Bundle()
b.putString(MobileLoginActivity.TYPE, "vip") b.putString(MobileLoginActivity.TYPE, "vip")
readyGoThenKill(MobileLoginActivity::class.java, b) readyGoThenKill(MobileLoginActivity::class.java, b)
......
...@@ -116,7 +116,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener { ...@@ -116,7 +116,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
readyGo(SettingsActivity::class.java) readyGo(SettingsActivity::class.java)
} }
R.id.tv_my_account, R.id.ll_my_login -> { R.id.tv_my_account, R.id.ll_my_login -> {
if (!userManager.userIsLogin()) { if (TextUtils.isEmpty(userManager.mobile)) {
readyGo(MobileLoginActivity::class.java) readyGo(MobileLoginActivity::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