Commit 9c319ead by YKai

feat: 咨询列表接口更换为新接口

parent 79dc8a81
...@@ -46,7 +46,7 @@ class ExpertSearchHttpImpl : IExpertSearchHttp { ...@@ -46,7 +46,7 @@ class ExpertSearchHttpImpl : IExpertSearchHttp {
} }
override fun searchDoctor(params: String?): Observable<BaseAPIResponse<ExpertSearchBean>> { override fun searchDoctor(params: String?): Observable<BaseAPIResponse<ExpertSearchBean>> {
return getSearchApi().searchDoctorService(HttpConfig.JAVA_BASE_URL+ "doctor/list?"+params) return getSearchApi().searchDoctorService(HttpConfig.JAVA_BASE_URL+ "doctor/nlist?"+params)
} }
......
...@@ -31,7 +31,7 @@ interface HomeBasePagerApi { ...@@ -31,7 +31,7 @@ interface HomeBasePagerApi {
* 首页咨询请求 * 首页咨询请求
* goodType 为空或不传 则获取默认类型数据 * goodType 为空或不传 则获取默认类型数据
*/ */
@GET("doctor/list") @GET("doctor/nlist")
@Headers(YDL_DOMAIN + YDL_DOMAIN_JAVA) @Headers(YDL_DOMAIN + YDL_DOMAIN_JAVA)
fun getConsultData( fun getConsultData(
@Query("categories") category: String, @Query("categories") category: String,
......
...@@ -277,12 +277,12 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm ...@@ -277,12 +277,12 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
* 设置悬浮顶部监听数据 * 设置悬浮顶部监听数据
*/ */
private fun setSuspendListener() { private fun setSuspendListener() {
scrollListner?.setContext(mContext) scrollListner.setContext(mContext)
scrollListner?.setHomeView(this) scrollListner.setHomeView(this)
scrollListner?.setConfideFilterView(ll_layout) scrollListner.setConfideFilterView(ll_layout)
scrollListner?.setConsultFilterView(ll_consultLayout) scrollListner.setConsultFilterView(ll_consultLayout)
scrollListner?.setSectionAdapter(adapter!!) scrollListner.setSectionAdapter(adapter!!)
scrollListner?.setPhoneCallImageView(home_service_call) scrollListner.setPhoneCallImageView(home_service_call)
} }
/** /**
......
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