Commit 8aa47703 by 刘鹏

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

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