Commit 8aa47703 by 刘鹏

1.home模块登录,接入优先一键登录功能

parent fe1d4dad
...@@ -91,7 +91,7 @@ ext { ...@@ -91,7 +91,7 @@ ext {
"m-confide" : "0.0.48.91", "m-confide" : "0.0.48.91",
"m-consultant" : "0.0.59.44", "m-consultant" : "0.0.59.44",
"m-fm" : "0.0.23.5", "m-fm" : "0.0.23.5",
"m-user" : "0.0.60.90", "m-user" : "0.0.60.91",
"m-home" : "0.0.22.52", "m-home" : "0.0.22.52",
"m-im" : "0.0.3.15", "m-im" : "0.0.3.15",
"m-dynamic" : "0.0.1.7", "m-dynamic" : "0.0.1.7",
......
...@@ -355,9 +355,8 @@ open class HomeBaseImpl : IHomeBaseEvent { ...@@ -355,9 +355,8 @@ open class HomeBaseImpl : IHomeBaseEvent {
//防止连击 //防止连击
return return
} }
if (!ModularServiceManager.provide(IUserService::class.java).isLogin()) { if (!ModularServiceManager.provide(IUserService::class.java).loginByOneKeyLogin(mContext as Context,true)) {
//跳转登录 //判断登录状态内部已完成 跳转登录
YDLRouterManager.router(IYDLRouterConstant.ROUTER_MINE_LOGIN)
return return
} }
if (mContext is AppCompatActivity && !TextUtils.isEmpty(doctorId)) { if (mContext is AppCompatActivity && !TextUtils.isEmpty(doctorId)) {
...@@ -430,9 +429,8 @@ open class HomeBaseImpl : IHomeBaseEvent { ...@@ -430,9 +429,8 @@ open class HomeBaseImpl : IHomeBaseEvent {
} }
override fun askItemFocusClick(position: Int, id: String) { override fun askItemFocusClick(position: Int, id: String) {
if (!ModularServiceManager.provide(IUserService::class.java).isLogin()) { if (!ModularServiceManager.provide(IUserService::class.java).loginByOneKeyLogin(mContext as Context,true)) {
//跳转登录 //判断登录状态内部已完成 跳转登录
YDLRouterManager.router(IYDLRouterConstant.ROUTER_MINE_LOGIN)
return return
} }
//关注用户 //关注用户
...@@ -440,9 +438,8 @@ open class HomeBaseImpl : IHomeBaseEvent { ...@@ -440,9 +438,8 @@ open class HomeBaseImpl : IHomeBaseEvent {
} }
override fun askItemZanClick(position: Int, index: Int, id: String) { override fun askItemZanClick(position: Int, index: Int, id: String) {
if (!ModularServiceManager.provide(IUserService::class.java).isLogin()) { if (!ModularServiceManager.provide(IUserService::class.java).loginByOneKeyLogin(mContext as Context,true)) {
//跳转登录 //判断登录状态内部已完成 跳转登录
YDLRouterManager.router(IYDLRouterConstant.ROUTER_MINE_LOGIN)
return return
} }
//问答动态点赞 //问答动态点赞
......
...@@ -77,9 +77,8 @@ class HomeAssuageGriefItemView(private val mContext: Context, private var homeEv ...@@ -77,9 +77,8 @@ class HomeAssuageGriefItemView(private val mContext: Context, private var homeEv
ll_zan.setOnClickListener { ll_zan.setOnClickListener {
//防止连击 //防止连击
if (!Utils.isFastClick()) { if (!Utils.isFastClick()) {
if (!ModularServiceManager.provide(IUserService::class.java).isLogin()) { if (!ModularServiceManager.provide(IUserService::class.java).loginByOneKeyLogin(mContext,true)) {
//跳转登录 //判断登录状态内部已完成 跳转登录
YDLRouterManager.router(IYDLRouterConstant.ROUTER_MINE_LOGIN)
return@setOnClickListener return@setOnClickListener
} }
bean.isZan = if (bean.isZan == 1 ) 0 else 1 bean.isZan = if (bean.isZan == 1 ) 0 else 1
...@@ -106,9 +105,8 @@ class HomeAssuageGriefItemView(private val mContext: Context, private var homeEv ...@@ -106,9 +105,8 @@ class HomeAssuageGriefItemView(private val mContext: Context, private var homeEv
if (bean.isFocused == 1) { if (bean.isFocused == 1) {
homeEvent?.askItemClick(bean) homeEvent?.askItemClick(bean)
} else { } else {
if (!ModularServiceManager.provide(IUserService::class.java).isLogin()) { if (!ModularServiceManager.provide(IUserService::class.java).loginByOneKeyLogin(mContext,true)) {
//跳转登录 //判断登录状态内部已完成 跳转登录
YDLRouterManager.router(IYDLRouterConstant.ROUTER_MINE_LOGIN)
return@setOnClickListener return@setOnClickListener
} }
bean.isFocused = if(bean.isFocused == 1) 0 else 1 bean.isFocused = if(bean.isFocused == 1) 0 else 1
......
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