Commit a8fcd685 by YKai

feat:m-consultant组件升级

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