Commit 80267bda by 霍志良

feat:修改BUG

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