Commit 5892c62e by 严久程

课程\fm

parents f81dbe56 d7a69202
...@@ -43,7 +43,7 @@ ext { ...@@ -43,7 +43,7 @@ ext {
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.18", "m-confide" : "0.0.18",
"m-consultant" : "0.0.26", "m-consultant" : "0.0.27",
"m-course" : "0.0.17", "m-course" : "0.0.17",
"m-fm" : "0.0.15", "m-fm" : "0.0.15",
"m-muse" : "0.0.11", "m-muse" : "0.0.11",
......
...@@ -6,6 +6,7 @@ import com.yidianling.common.tools.ToastUtil ...@@ -6,6 +6,7 @@ import com.yidianling.common.tools.ToastUtil
import com.yidianling.consultant.dialog.ConsultAssistantDialog import com.yidianling.consultant.dialog.ConsultAssistantDialog
import com.yidianling.consultant.model.SearchApi import com.yidianling.consultant.model.SearchApi
import com.yidianling.consultant.router.ConsultantIn import com.yidianling.consultant.router.ConsultantIn
import com.yidianling.consultant.router.ConsultantRouterImp
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers import io.reactivex.schedulers.Schedulers
...@@ -35,14 +36,12 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -35,14 +36,12 @@ class ConsultAssistantDialogUtils private constructor() {
"home_index" -> { "home_index" -> {
if (ConsultantIn.isLogin() && if (ConsultantIn.isLogin() &&
ConsultantIn.getUserImpl().getUserInfo()?.user_type == 1 ConsultantIn.getUserImpl().getUserInfo()?.user_type == 1
/** WalleChannelReader.getChannel(BaseApp.Companion.getApp()) == "android_huawei" */
) { ) {
shouldShowDialog(activity, origin) shouldShowDialog(activity, origin)
} }
} }
"doctor_list" -> { "doctor_list" -> {
if (ConsultantIn.getUserImpl().getUserInfo()?.user_type == 1 if (ConsultantIn.getUserImpl().getUserInfo()?.user_type == 1
/** WalleChannelReader.getChannel(BaseApp.Companion.getApp()) == "android_huawei" */
) { ) {
shouldShowDialog(activity, origin) shouldShowDialog(activity, origin)
} }
...@@ -109,8 +108,8 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -109,8 +108,8 @@ class ConsultAssistantDialogUtils private constructor() {
override fun run() { override fun run() {
Observable.just(1).observeOn(AndroidSchedulers.mainThread()) Observable.just(1).observeOn(AndroidSchedulers.mainThread())
.subscribe { .subscribe {
showDialog(activity)
expertSearchPageHasShown = true expertSearchPageHasShown = true
showDialog(activity)
} }
} }
}, 5000) }, 5000)
...@@ -127,8 +126,13 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -127,8 +126,13 @@ class ConsultAssistantDialogUtils private constructor() {
consultAssistantDialog = null consultAssistantDialog = null
consultAssistantDialog = ConsultAssistantDialog(activity, object : ConsultAssistantDialog.OnConsultAssistantClickListener { consultAssistantDialog = ConsultAssistantDialog(activity, object : ConsultAssistantDialog.OnConsultAssistantClickListener {
override fun onClickAction() { override fun onClickAction() {
//获取用户uid // 咨询师列表页面且未登录情况下,跳转登录页面
getConsultAssistantUid(activity) if (expertSearchPageHasShown && !ConsultantIn.isLogin()) {
ConsultantIn.toLogin(activity)
}else {
//获取用户uid
getConsultAssistantUid(activity)
}
} }
}) })
......
...@@ -36,4 +36,8 @@ object ConsultantIn { ...@@ -36,4 +36,8 @@ object ConsultantIn {
return ModularServiceManager.provide(IUserService::class.java) return ModularServiceManager.provide(IUserService::class.java)
} }
fun toLogin(activity: Activity) {
ModularServiceManager.provide(IUserService::class.java).loginWayIntent(activity)
}
} }
\ No newline at end of file
...@@ -17,6 +17,7 @@ import com.ydl.ydlcommon.base.BaseActivity ...@@ -17,6 +17,7 @@ import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.bean.ShareData import com.ydl.ydlcommon.bean.ShareData
import com.ydl.ydlcommon.data.http.ThrowableConsumer import com.ydl.ydlcommon.data.http.ThrowableConsumer
import com.ydl.ydlcommon.router.IYDLRouterConstant import com.ydl.ydlcommon.router.IYDLRouterConstant
import com.yidianling.common.tools.RxKeyboardTool
import com.yidianling.common.tools.ToastUtil import com.yidianling.common.tools.ToastUtil
import com.yidianling.course.CourseConstants import com.yidianling.course.CourseConstants
import com.yidianling.course.R import com.yidianling.course.R
...@@ -111,6 +112,8 @@ class CourseSearchActivity : BaseActivity(), CourseSearchAdapter.OnItemClick, IC ...@@ -111,6 +112,8 @@ class CourseSearchActivity : BaseActivity(), CourseSearchAdapter.OnItemClick, IC
loadCourseList(true) loadCourseList(true)
} }
}) })
RxKeyboardTool.showSoftInput(this,)
} }
/** /**
......
...@@ -9,6 +9,7 @@ import android.util.AttributeSet ...@@ -9,6 +9,7 @@ import android.util.AttributeSet
import android.view.Gravity import android.view.Gravity
import android.view.View import android.view.View
import android.view.inputmethod.InputMethodManager import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.LinearLayout import android.widget.LinearLayout
import android.widget.TextView import android.widget.TextView
import com.ydl.ydl_router.manager.YDLRouterManager import com.ydl.ydl_router.manager.YDLRouterManager
...@@ -157,6 +158,11 @@ class SearchBarView : LinearLayout { ...@@ -157,6 +158,11 @@ class SearchBarView : LinearLayout {
searchCallBack = mSearchCallback searchCallBack = mSearchCallback
} }
fun getEditText():EditText{
return common_search_bar_edit_text
}
interface SearchCallBack { interface SearchCallBack {
fun clickSearchBtn(str: String) //设置监听(跳转逻辑已在组件内部实现,该方法主要用于回调点击键盘搜索按钮事件) fun clickSearchBtn(str: String) //设置监听(跳转逻辑已在组件内部实现,该方法主要用于回调点击键盘搜索按钮事件)
......
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