Commit 683551ca by 刘鹏

Merge branch 'feat/fq/fq_consult_location_4.4.04' into 'd/v4.4.04'

feat: 咨询师列表页地区

See merge request app_android_lib/YDL-Component!257
parents b63f63c0 f5ac2dc2
...@@ -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,
......
...@@ -108,11 +108,11 @@ data class ExpertServiceItem( ...@@ -108,11 +108,11 @@ data class ExpertServiceItem(
// */ // */
// var listen_status: Int, // var listen_status: Int,
var open_chat_agency:Int, var open_chat_agency: Int,
var service_status:Int, var service_status: Int,
var is_free_today:Int, var is_free_today: Int,
/** /**
* 私聊人数 * 私聊人数
...@@ -143,26 +143,39 @@ data class ExpertServiceItem( ...@@ -143,26 +143,39 @@ data class ExpertServiceItem(
/** /**
* 是否是头部headView * 是否是头部headView
*/ */
val is_head_view:Boolean=false, val is_head_view: Boolean = false,
/** /**
* 搜索词 * 搜索词
*/ */
val search_content:String, val search_content: String,
/** /**
* 联想词 * 联想词
*/ */
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, "", "", "", "", "",
1f,false,0,"","","",1f,1f, 1, 1, 1, "", false, true,
null,null,1,1,1,1, 1f, false, 0, "", "", "", 1f, 1f,
"","","","",null,is_head_view,search_content,related_word) null, null, 1, 1, 1, 1,
"", "", "", "", null, is_head_view, search_content, related_word, "", 1
)
} }
data class FeatureTag( data class FeatureTag(
val tag_id:String, val tag_id: String,
val tag_name:String, val tag_name: String,
val is_highlight:Boolean, // 是否高亮 val is_highlight: Boolean, // 是否高亮
val type:String // 标签类型 val type: String // 标签类型
) )
\ No newline at end of file
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