Commit ec0cce39 by YKai

feat:m-home组件升级

parent ebde0e39
......@@ -9,7 +9,7 @@ ext {
"m-consultant" : "0.0.59.79",
"m-fm" : "0.0.30.03",
"m-user" : "0.0.61.36",
"m-home" : "0.0.22.63",
"m-home" : "0.0.22.64",
"m-im" : "0.0.19.20",
"m-dynamic" : "0.0.7.22",
"m-article" : "0.0.0.8",
......@@ -92,7 +92,7 @@ ext {
"m-consultant" : "0.0.59.79",
"m-fm" : "0.0.30.01",
"m-user" : "0.0.61.36",
"m-home" : "0.0.22.63",
"m-home" : "0.0.22.64",
"m-im" : "0.0.19.20",
"m-dynamic" : "0.0.7.22",
"m-article" : "0.0.0.8",
......
......@@ -2,19 +2,19 @@ package com.yidianling.home.ui.view
import android.content.Context
import android.graphics.Color
import androidx.core.content.ContextCompat
import android.text.TextUtils
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.core.content.ContextCompat
import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.ydl.ydlcommon.utils.StringUtils
import com.ydl.ydlcommon.utils.URLUtils
import com.yidianling.common.tools.RxImageTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeConsultBean
import kotlinx.android.synthetic.xlzx.home_consult_item_view.view.*
import java.math.BigDecimal
/**
* @author jiucheng
......@@ -92,8 +92,8 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
} else {
tv_feedback_rate.visibility = View.VISIBLE
try {
val dd = bodyBean.feedbackRate / 5.00f
val str = String.format("%.1f", dd * 10f)
val d = BigDecimal(bodyBean.feedbackRate.toString()).setScale(1, BigDecimal.ROUND_DOWN)
val str = d.toString()
tv_feedback_rate.text = str
} catch (e: Exception) {
e.printStackTrace()
......
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