Commit c22342e1 authored by chengkun's avatar chengkun

bug 1567订单金额bug

parent 03bfb7b9
...@@ -102,49 +102,49 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout ...@@ -102,49 +102,49 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
1 -> { 1 -> {
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 = "" money.text = "${data.total_price}"
} }
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 = "已支付"
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.payment}" money.text = "${data.total_price}"
} }
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 = "" money.text = "${data.total_price}"
} }
4 -> { 4 -> {
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 = "" money.text = "${data.refund_amount}"
} }
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 = "" money.text = "${data.total_price}"
} }
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 = "" money.text = "${data.total_price}"
} }
} }
} }
......
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