Commit 80267bda by 霍志良

feat:修改BUG

parent 3a05587f
ext { ext {
dev_mode = false //组件发布的时候需要设置为false dev_mode = false //组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.10-SNAPSHOT" ydl2PublishVersion = "0.2.0.11-SNAPSHOT"
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
......
...@@ -86,7 +86,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -86,7 +86,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
private fun getDataFromIntent() { private fun getDataFromIntent() {
val doctorName = intent.getStringExtra(HOT_SEARCH_DOCTOR_NAME) val doctorName = intent.getStringExtra(HOT_SEARCH_DOCTOR_NAME)
if (!TextUtils.isEmpty(doctorName)) { if (!TextUtils.isEmpty(doctorName)) {
etSearch.setText(doctorName) etSearch.hint = doctorName
iv_delete_icon.visibility = View.VISIBLE iv_delete_icon.visibility = View.VISIBLE
} }
} }
...@@ -117,12 +117,16 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -117,12 +117,16 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
if (searchSuggestList?.get(0)?.suggest_types?.contains("jump_word")) { if (searchSuggestList?.get(0)?.suggest_types?.contains("jump_word")) {
NewH5Activity.start(this, H5Params(searchSuggestList[0].jump_url!!, null)) NewH5Activity.start(this, H5Params(searchSuggestList[0].jump_url!!, null))
} else { } else {
if (etSearch.text.toString().isNullOrEmpty()) {
doSearch(etSearch.hint.toString(), relatedWords, isRecommendWords)
} else {
doSearch(etSearch.text.toString(), relatedWords, isRecommendWords) doSearch(etSearch.text.toString(), relatedWords, isRecommendWords)
} }
}
} else { } else {
val searchWords = etSearch.text.toString() val searchWords = etSearch.text.toString()
if (TextUtils.isEmpty(searchWords)) { if (TextUtils.isEmpty(searchWords)) {
doSearch(searchWords, "", isRecommendWords) doSearch(etSearch.hint.toString(), "", isRecommendWords)
} else { } else {
getSearchWords(etSearch.text.toString(), true) getSearchWords(etSearch.text.toString(), true)
} }
...@@ -362,7 +366,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -362,7 +366,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
} }
} }
view.setOnClickListener { view.setOnClickListener {
ActionCountUtils.count(SEARCH_BANNERWORD_CLICK, etSearch.text.toString(), "热门专家") ActionCountUtils.count(SEARCH_BANNERWORD_CLICK, etSearch.text.toString(), "本周热门专家")
getSearchWords(etSearch.text.toString(), true) getSearchWords(etSearch.text.toString(), true)
} }
flHotExpert.addView(view) flHotExpert.addView(view)
......
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