Commit a8fcd685 by YKai

feat:m-consultant组件升级

parent 1edceb47
...@@ -6,7 +6,7 @@ ext { ...@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.09", "m-confide" : "0.0.49.09",
"m-consultant" : "0.0.59.78", "m-consultant" : "0.0.59.79",
"m-fm" : "0.0.30.03", "m-fm" : "0.0.30.03",
"m-user" : "0.0.61.34", "m-user" : "0.0.61.34",
"m-home" : "0.0.22.62", "m-home" : "0.0.22.62",
...@@ -89,7 +89,7 @@ ext { ...@@ -89,7 +89,7 @@ ext {
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.09", "m-confide" : "0.0.49.09",
"m-consultant" : "0.0.59.78", "m-consultant" : "0.0.59.79",
"m-fm" : "0.0.30.01", "m-fm" : "0.0.30.01",
"m-user" : "0.0.61.34", "m-user" : "0.0.61.34",
"m-home" : "0.0.22.62", "m-home" : "0.0.22.62",
......
...@@ -36,6 +36,7 @@ import kotlinx.android.synthetic.main.consultant_expert_search_products_item.vie ...@@ -36,6 +36,7 @@ import kotlinx.android.synthetic.main.consultant_expert_search_products_item.vie
import kotlinx.android.synthetic.main.consultant_item_empty.view.* import kotlinx.android.synthetic.main.consultant_item_empty.view.*
import kotlinx.android.synthetic.main.consultant_item_footer.view.* import kotlinx.android.synthetic.main.consultant_item_footer.view.*
import kotlinx.android.synthetic.main.consultant_item_tag.view.* import kotlinx.android.synthetic.main.consultant_item_tag.view.*
import java.math.BigDecimal
/** /**
* 专家服务列表适配器 * 专家服务列表适配器
...@@ -266,8 +267,9 @@ class ExpertSearchAdapter( ...@@ -266,8 +267,9 @@ class ExpertSearchAdapter(
holder.tvSaleDurationForMonth.text = holder.tvSaleDurationForMonth.text =
durationStringBuffer.append(itemBean.allSaleDuration.toInt()).append("").toString() durationStringBuffer.append(itemBean.allSaleDuration.toInt()).append("").toString()
//价格 //价格
val sb = StringBuffer() val price = BigDecimal(itemBean.minBookingPrice)
holder.tvPrice.text = sb.append("").append(itemBean.minBookingPrice).toString() // 去掉末尾无用的.00
holder.tvPrice.text = price.stripTrailingZeros().toPlainString()
//套餐 //套餐
holder.ll_products.removeAllViews() holder.ll_products.removeAllViews()
if (null != itemBean.products && !itemBean.products.isEmpty()) { if (null != itemBean.products && !itemBean.products.isEmpty()) {
......
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