Commit 7639d1ff by 刘鹏

feat: 格式化

parent f7f7a381
...@@ -209,15 +209,14 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View. ...@@ -209,15 +209,14 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
iv_confide_tip.visibility = View.GONE iv_confide_tip.visibility = View.GONE
getLocal().setConfide(false) getLocal().setConfide(false)
} }
val orderNum = response.data?.consultOrderNum?:0 val orderNum = response.data?.consultOrderNum ?: 0
if (orderNum > 0) { if (orderNum > 0) {
iv_order_tip.visibility = View.VISIBLE iv_order_tip.visibility = View.VISIBLE
if (orderNum > 99){ if (orderNum > 99) {
iv_order_tip.text = "99+" iv_order_tip.text = "99+"
}else{ } else {
iv_order_tip.text = "$orderNum" iv_order_tip.text = "$orderNum"
} }
getLocal().setConsult(true) getLocal().setConsult(true)
} else { } else {
iv_order_tip.visibility = View.GONE iv_order_tip.visibility = View.GONE
......
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