Commit e128a432 by fengquan

feat: 咨询师列表页地区

parent b63f63c0
...@@ -240,6 +240,8 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() { ...@@ -240,6 +240,8 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
fieldsMap["open_chat_agency"] = true fieldsMap["open_chat_agency"] = true
fieldsMap["service_status"] = true fieldsMap["service_status"] = true
fieldsMap["is_free_today"] = true fieldsMap["is_free_today"] = true
fieldsMap["display_region"] = true
fieldsMap["has_servicefree_experience"] = true
map["fields"] = fieldsMap map["fields"] = fieldsMap
val optionsMap = HashMap<String, Any?>() val optionsMap = HashMap<String, Any?>()
......
...@@ -177,14 +177,14 @@ class ExpertSearchAdapter( ...@@ -177,14 +177,14 @@ class ExpertSearchAdapter(
//省市 //省市
if (!TextUtils.isEmpty(itemBean.province)) { if (!TextUtils.isEmpty(itemBean.display_region)) {
holder.tvCity.text = itemBean.province + "·" + itemBean.city holder.tvCity.text = itemBean.display_region
} else { } else {
holder.tvCity.text = "" holder.tvCity.text = ""
} }
//公益图标,不与其他图标冲突 //公益图标,不与其他图标冲突
if (1 == itemBean.has_servicefree_consult) { if (1 == itemBean.has_servicefree_experience) {
if (null != itemBean.icons && !TextUtils.isEmpty(itemBean.icons.service_free_icon)) { if (null != itemBean.icons && !TextUtils.isEmpty(itemBean.icons.service_free_icon)) {
expertSearchView.showImage( expertSearchView.showImage(
itemBean.icons.service_free_icon, itemBean.icons.service_free_icon,
......
...@@ -151,13 +151,24 @@ data class ExpertServiceItem( ...@@ -151,13 +151,24 @@ data class ExpertServiceItem(
/** /**
* 联想词 * 联想词
*/ */
val related_word:String val related_word:String,
/**
* 地区
*/
val display_region:String,
/**
* 是否展示公益图标
*/
val has_servicefree_experience:Int?
) { ) {
constructor(is_head_view: Boolean,search_content: String,related_word:String) : this("","","","","", constructor(is_head_view: Boolean,search_content: String,related_word:String) : this("","","","","",
1,1,1,"",false,true, 1,1,1,"",false,true,
1f,false,0,"","","",1f,1f, 1f,false,0,"","","",1f,1f,
null,null,1,1,1,1, null,null,1,1,1,1,
"","","","",null,is_head_view,search_content,related_word) "","","","",null,is_head_view,search_content,related_word,"",1)
} }
data class FeatureTag( data class FeatureTag(
......
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