Commit e31b306e by fengquan

feat: im咨询服务弹框样式调整

parent e0a4873f
...@@ -61,14 +61,15 @@ class ExpertConsultServiceItemView : LinearLayout { ...@@ -61,14 +61,15 @@ class ExpertConsultServiceItemView : LinearLayout {
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")
fun setData(bean: ServiceItemBean.ProductsBean) { fun setData(bean: ServiceItemBean.ProductsBean) {
if (mIsBusy) { // 是否繁忙 true繁忙 if (mIsBusy) { // 是否繁忙 true繁忙
ll_not_busy.visibility = View.GONE im_expert_service_list_btn.visibility = View.GONE
ll_busy.visibility = View.VISIBLE tv_add.visibility = View.VISIBLE
tv_add.setOnClickListener { tv_add.setOnClickListener {
mListener?.addTime() mListener?.addTime()
} }
} else { } else {
ll_not_busy.visibility = View.VISIBLE im_expert_service_list_btn.visibility = View.VISIBLE
ll_busy.visibility = View.GONE tv_add.visibility = View.GONE
} }
//是否是套餐 //是否是套餐
if (bean.productDto.isPackage == 2) { if (bean.productDto.isPackage == 2) {
...@@ -87,6 +88,7 @@ class ExpertConsultServiceItemView : LinearLayout { ...@@ -87,6 +88,7 @@ class ExpertConsultServiceItemView : LinearLayout {
//隐藏起售次数限制 //隐藏起售次数限制
service_item_low_buy_time.visibility = View.GONE service_item_low_buy_time.visibility = View.GONE
} }
val mCompare: Comparator<ServiceItemBean.ProductsBean.ProductSpecDtosBean> = val mCompare: Comparator<ServiceItemBean.ProductsBean.ProductSpecDtosBean> =
Comparator { o1, o2 -> Comparator { o1, o2 ->
val res = o1.price.compareTo(o2.price) val res = o1.price.compareTo(o2.price)
...@@ -105,6 +107,8 @@ class ExpertConsultServiceItemView : LinearLayout { ...@@ -105,6 +107,8 @@ class ExpertConsultServiceItemView : LinearLayout {
mBean.price mBean.price
) )
service_item_price.paint.isFakeBoldText = true
//时间,取productSpecDtos数组最后一个的时间 //时间,取productSpecDtos数组最后一个的时间
// service_item_time.text = "/${bean.productDto.minOrderTime}分钟" // service_item_time.text = "/${bean.productDto.minOrderTime}分钟"
} }
...@@ -129,7 +133,8 @@ class ExpertConsultServiceItemView : LinearLayout { ...@@ -129,7 +133,8 @@ class ExpertConsultServiceItemView : LinearLayout {
//销量 //销量
service_item_saleout_num.text = "销量${bean.productDto.saleAmount}" // service_item_saleout_num.text = "销量${bean.productDto.saleAmount}"
service_item_saleout_num.text = "${bean.productDto.saleAmount}"
setOnClickListener { setOnClickListener {
mListener?.onItemClick(bean) mListener?.onItemClick(bean)
......
...@@ -101,7 +101,7 @@ class ExpertConsultServiceView : LinearLayout { ...@@ -101,7 +101,7 @@ class ExpertConsultServiceView : LinearLayout {
} }
} }
} }
tv_title.paint.isFakeBoldText = true
typeSelectedIndex = 0 // 初始化为全部选中 typeSelectedIndex = 0 // 初始化为全部选中
mServiceList.clear() mServiceList.clear()
mServiceList.addAll(allServiceList) mServiceList.addAll(allServiceList)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<corners android:radius="14dp" /> <corners android:radius="@dimen/platform_dp_18" />
<gradient android:startColor="#FF7A5C" <gradient android:startColor="#FF7A5C"
android:endColor="#FF406C"/> android:endColor="#FF406C"/>
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/platform_dp_18" />
<solid android:color="#1DA1F2"/>
</shape>
\ No newline at end of file
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_marginTop="@dimen/platform_dp_5"> android:layout_marginTop="@dimen/platform_dp_5">
<TextView <TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="选择服务主题" android:text="选择服务主题"
android:textColor="#242424" android:textColor="#1C1F28"
android:textSize="18dp" android:textSize="18sp"
android:textStyle="bold"
android:layout_centerInParent="true"/> android:layout_centerInParent="true"/>
</RelativeLayout> </RelativeLayout>
......
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