Commit cbabfffb by 霍志良

feat:修改BUG

parent 80267bda
ext { ext {
dev_mode = false //组件发布的时候需要设置为false dev_mode = false //组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.11-SNAPSHOT" ydl2PublishVersion = "0.2.0.14-SNAPSHOT"
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
...@@ -8,7 +8,7 @@ ext { ...@@ -8,7 +8,7 @@ ext {
"m-consultant" : "0.0.60.78", "m-consultant" : "0.0.60.78",
"m-fm" : "0.0.30.09", "m-fm" : "0.0.30.09",
"m-user" : "0.0.62.72", "m-user" : "0.0.62.72",
"m-home" : "0.0.24.02", "m-home" : "0.0.24.04",
"m-im" : "0.0.21.69", "m-im" : "0.0.21.69",
"m-dynamic" : "0.0.7.80", "m-dynamic" : "0.0.7.80",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
......
...@@ -440,6 +440,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres ...@@ -440,6 +440,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
doctorAdapter.clickCount = 0 doctorAdapter.clickCount = 0
doctorAdapter.setIsRecommendWords(isRecommendWords) doctorAdapter.setIsRecommendWords(isRecommendWords)
doctorAdapter.setEntrance(1) doctorAdapter.setEntrance(1)
getPresenter().fetchFunctionWord(2)
} }
override fun onNewIntent(intent: Intent?) { override fun onNewIntent(intent: Intent?) {
...@@ -526,7 +527,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres ...@@ -526,7 +527,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
if (bottomWordlist.size == 1) { if (bottomWordlist.size == 1) {
tv_search_content.text = bottomWordlist[0].word tv_search_content.text = bottomWordlist[0].word
} else { } else {
bottomWordDisposable = Observable.interval(0, 5, TimeUnit.SECONDS) bottomWordDisposable = Observable.interval(0, 3, TimeUnit.SECONDS)
.subscribeOn(Schedulers.computation()) .subscribeOn(Schedulers.computation())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
......
...@@ -437,7 +437,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres ...@@ -437,7 +437,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
if (bottomWordlist.size == 1) { if (bottomWordlist.size == 1) {
tv_search_content.text = bottomWordlist[0].word tv_search_content.text = bottomWordlist[0].word
} else { } else {
bottomWordDisposable = Observable.interval(0, 5, TimeUnit.SECONDS) bottomWordDisposable = Observable.interval(0, 3, TimeUnit.SECONDS)
.subscribeOn(Schedulers.computation()) .subscribeOn(Schedulers.computation())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
......
...@@ -257,10 +257,20 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -257,10 +257,20 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
0 0
)?.suggest_types?.contains("jump_word") )?.suggest_types?.contains("jump_word")
) { ) {
//将数据增加到历史搜索中
if (!TextUtils.isEmpty(searchContent)) {
historyList.remove(searchContent)
historyList.add(searchContent)
SharedPreferencesEditor.putString(
CACHE_CONSULT_SEARCH_HISTORY_DATA,
Gson().toJson(historyList)
)
}
NewH5Activity.start( NewH5Activity.start(
this, this,
H5Params(searchWordsBean.search_suggests[0].jump_url!!, null) H5Params(searchWordsBean.search_suggests[0].jump_url!!, null)
) )
finish()
} else { } else {
doSearch(searchContent, relatedWords, isRecommendWords) doSearch(searchContent, relatedWords, isRecommendWords)
} }
...@@ -366,8 +376,12 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -366,8 +376,12 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
} }
} }
view.setOnClickListener { view.setOnClickListener {
ActionCountUtils.count(SEARCH_BANNERWORD_CLICK, etSearch.text.toString(), "本周热门专家") ActionCountUtils.count(
getSearchWords(etSearch.text.toString(), true) SEARCH_BANNERWORD_CLICK,
hotSearchExpert[index].name.toString(),
"本周热门专家"
)
getSearchWords(hotSearchExpert[index].name.toString(), true)
} }
flHotExpert.addView(view) flHotExpert.addView(view)
} }
......
...@@ -400,7 +400,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>() ...@@ -400,7 +400,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
if (bottomWordDisposable != null) { if (bottomWordDisposable != null) {
bottomWordDisposable?.dispose() bottomWordDisposable?.dispose()
} else { } else {
bottomWordDisposable = Observable.interval(0, 5, TimeUnit.SECONDS) bottomWordDisposable = Observable.interval(0, 3, TimeUnit.SECONDS)
.subscribeOn(Schedulers.computation()) .subscribeOn(Schedulers.computation())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
......
...@@ -537,7 +537,7 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm ...@@ -537,7 +537,7 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
if (bottomWordDisposable != null) { if (bottomWordDisposable != null) {
bottomWordDisposable?.dispose() bottomWordDisposable?.dispose()
} else { } else {
bottomWordDisposable = Observable.interval(0, 5, TimeUnit.SECONDS) bottomWordDisposable = Observable.interval(0, 3, TimeUnit.SECONDS)
.subscribeOn(Schedulers.computation()) .subscribeOn(Schedulers.computation())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
......
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