Commit 4b4c4459 by YKai

feat:私聊咨询服务好评率,显示修改

parent 186a94d1
...@@ -10,7 +10,7 @@ ext { ...@@ -10,7 +10,7 @@ ext {
"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",
"m-im" : "0.0.19.14", "m-im" : "0.0.19.15",
"m-dynamic" : "0.0.7.22", "m-dynamic" : "0.0.7.22",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
...@@ -93,7 +93,7 @@ ext { ...@@ -93,7 +93,7 @@ ext {
"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",
"m-im" : "0.0.19.14", "m-im" : "0.0.19.15",
"m-dynamic" : "0.0.7.22", "m-dynamic" : "0.0.7.22",
"m-article" : "0.0.0.6", "m-article" : "0.0.0.6",
......
...@@ -83,17 +83,26 @@ class ExpertConsultServiceItemView : LinearLayout { ...@@ -83,17 +83,26 @@ class ExpertConsultServiceItemView : LinearLayout {
) )
//时间,取productSpecDtos数组最后一个的时间 //时间,取productSpecDtos数组最后一个的时间
service_item_time.text = "/${bean.productDto.minOrderTime}分钟" // service_item_time.text = "/${bean.productDto.minOrderTime}分钟"
} }
//好评率,*20后 保留1位小数 //好评率,*20后 保留1位小数
service_item_feddbackrate.visibility = VISIBLE service_item_feddbackrate.visibility = VISIBLE
tv_feedbackRate.visibility = VISIBLE tv_feedbackRate.visibility = VISIBLE
service_item_feddbackrate.text = String.format( if (bean.productDto.feedbackRate > 0) { // 好评率大于0才展示出来,否则隐藏
"%.1f", //好评率,*20后 保留1位小数
(bean.productDto.feedbackRate) * 100f service_item_feddbackrate.visibility = VISIBLE
) + "%" tv_feedbackRate.visibility = VISIBLE
service_item_feddbackrate.text = String.format(
"%.1f",
(bean.productDto.feedbackRate) * 100f
) + "%"
} else {
service_item_feddbackrate.visibility = GONE
tv_feedbackRate.visibility = GONE
}
//销量 //销量
......
...@@ -58,9 +58,11 @@ ...@@ -58,9 +58,11 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="¥" android:text="¥"
android:textColor="#FF5040" android:textColor="#FF5040"
android:textSize="9dp" android:textSize="12sp"
android:textStyle="bold" android:textStyle="bold"
android:layout_marginTop="4dp"/> android:gravity="bottom"
android:paddingBottom="4dp"
/>
<TextView <TextView
android:id="@+id/service_item_price" android:id="@+id/service_item_price"
...@@ -68,9 +70,17 @@ ...@@ -68,9 +70,17 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0" android:text="0"
android:textColor="#FF5040" android:textColor="#FF5040"
android:textSize="16dp" android:textSize="18sp"
android:textStyle="bold" android:textStyle="bold"
android:layout_marginBottom="1dp"/> android:layout_marginBottom="1dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="bottom"
android:textColor="#999999"
android:textSize="12sp"
android:paddingBottom="4dp"
android:text="起"/>
</LinearLayout> </LinearLayout>
<TextView <TextView
...@@ -79,6 +89,7 @@ ...@@ -79,6 +89,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="/0分钟" android:text="/0分钟"
android:textColor="#999999" android:textColor="#999999"
android:visibility="gone"
android:textSize="12dp" /> android:textSize="12dp" />
<TextView <TextView
android:id="@+id/service_item_low_buy_time" android:id="@+id/service_item_low_buy_time"
......
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