Commit 59e214b8 authored by Li's avatar Li

[李俊岐] 优化订单弹窗

parent 28b8c385
...@@ -36,6 +36,9 @@ class OrderAdapter : BaseRecyclerAdapter<OrderEntity.FarmOrderDataListBean, Orde ...@@ -36,6 +36,9 @@ class OrderAdapter : BaseRecyclerAdapter<OrderEntity.FarmOrderDataListBean, Orde
holder?.progess_order_bar.progress = data?.ownNum?:0 holder?.progess_order_bar.progress = data?.ownNum?:0
holder?.tv_order_progress.text = holder?.tv_order_progress.text =
Html.fromHtml("<font color=\"#FC6002\">${data?.ownNum}</font>/${data?.targetNum}") Html.fromHtml("<font color=\"#FC6002\">${data?.ownNum}</font>/${data?.targetNum}")
if (data.imgUrl != null) {
Glide.with(mContext!!).load(data?.imgUrl).into(holder?.iv_order_item_img)
}
} }
......
...@@ -19,5 +19,6 @@ class OrderEntity { ...@@ -19,5 +19,6 @@ class OrderEntity {
var ownNum = 0 var ownNum = 0
var targetNum = 0 var targetNum = 0
var name: String? = null var name: String? = null
var imgUrl: String? = null
} }
} }
\ No newline at end of file
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