Commit 8448d496 authored by chengkun's avatar chengkun

订单列表文案修改

parent 66ea7c88
...@@ -110,6 +110,7 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout ...@@ -110,6 +110,7 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
2 -> { 2 -> {
holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "已支付:" holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "已支付:"
holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "已支付" holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "已支付"
holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.VISIBLE
var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count) var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count)
money.setTypeface(Typeface.DEFAULT_BOLD) money.setTypeface(Typeface.DEFAULT_BOLD)
money.text = "${data.total_price}" money.text = "${data.total_price}"
...@@ -117,16 +118,22 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout ...@@ -117,16 +118,22 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
3 -> { 3 -> {
holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "待退款" holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "待退款"
holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "待退款" holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "待退款"
// holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.INVISIBLE holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.INVISIBLE
var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count) var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count)
money.setTypeface(Typeface.DEFAULT_BOLD) money.setTypeface(Typeface.DEFAULT_BOLD)
money.text = "${data.total_price}" money.text = ""
} }
4,8 -> { 4,8 -> {
holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "已退款" if (data.order_status == 4) {
holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "已退款" holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "已退款"
// holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.INVISIBLE holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "已退款:"
} else {
holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "部分退款"
holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "部分退款:"
}
holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.VISIBLE
var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count) var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count)
money.setTypeface(Typeface.DEFAULT_BOLD) money.setTypeface(Typeface.DEFAULT_BOLD)
money.text = "${data.refund_amount}" money.text = "${data.refund_amount}"
...@@ -134,18 +141,18 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout ...@@ -134,18 +141,18 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
5 -> { 5 -> {
holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "退款中" holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "退款中"
holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "退款中" holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "退款中"
// holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.INVISIBLE holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.INVISIBLE
var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count) var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count)
money.setTypeface(Typeface.DEFAULT_BOLD) money.setTypeface(Typeface.DEFAULT_BOLD)
money.text = "${data.total_price}" money.text = ""
} }
6 -> { 6 -> {
holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "已拒绝" holder.itemView.findViewById<TextView>(R.id.tv_pay_money_status).text = "已拒绝"
holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "已拒绝" holder.itemView.findViewById<TextView>(R.id.tv_pay_status).text = "已拒绝"
// holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.INVISIBLE holder.itemView.findViewById<TextView>(R.id.tv_order_list_yuan).visibility = View.INVISIBLE
var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count) var money:TextView = holder.itemView.findViewById<TextView>(R.id.tv_pay_money_count)
money.setTypeface(Typeface.DEFAULT_BOLD) money.setTypeface(Typeface.DEFAULT_BOLD)
money.text = "${data.total_price}" money.text = ""
} }
} }
} }
......
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