| | |
| | | import cn.sinata.xldutils.utils.optDouble |
| | | import cn.sinata.xldutils.utils.optInt |
| | | import cn.sinata.xldutils.utils.showAllowingStateLoss |
| | | import cn.sinata.xldutils.utils.urlDecode |
| | | import cn.sinata.xldutils.utils.urlEncode |
| | | import cn.sinata.xldutils.visible |
| | | import com.facebook.drawee.view.SimpleDraweeView |
| | | import com.igo.user.IGoApplication |
| | |
| | | tv_pay_offline.gone() |
| | | tv_confirm_fee.gone() |
| | | cl_driver.visible() |
| | | tv_action.gone() |
| | | tv_action2.gone() |
| | | when (order?.state) { |
| | | in (1..5) -> { |
| | |
| | | title = getString(R.string.支付费用) |
| | | if (order?.isFrozen != 2) { |
| | | tv_pay_offline.visible() //新增提示文字 |
| | | tv_action.visible() |
| | | //tv_action.visible() |
| | | } |
| | | tv_title.visible() |
| | | tv_action.text = getString(R.string.立即支付) |
| | |
| | | tv_tip.invisible() |
| | | } |
| | | tv_title.hide() |
| | | if (order!!.orderType == TripOrderFragment.TYPE_LOGISTICS) { |
| | | tv_action.visible() |
| | | } |
| | | tv_action.visible() |
| | | tv_action.text = getString(R.string.匿名评价) |
| | | titleBar.getRightButton(0)?.visible() |
| | | if (order?.isFrozen != 2) { |
| | |
| | | val view = layoutInflater.inflate(R.layout.item_score_label, null) as CheckBox |
| | | view.text = it |
| | | view.isEnabled = false |
| | | if (it in split) |
| | | view.isChecked = true |
| | | view.isChecked = !split.none { checkItem -> checkItem.equals(it, true) } |
| | | fl_label.addView(view) |
| | | } |
| | | tv_detail.visible() |
| | |
| | | // } |
| | | |
| | | override fun onStateChanged(id: Int, type: Int, state: Int) { |
| | | if (id == this.id && type == this.type && order?.state == 6) { //当前是待司机确认费用,需要重新获取订单信息 |
| | | if (id == this.id && type == this.type && (order?.state == 6 || order?.state == 7 || order?.state == 8)) { //当前是待司机确认费用,需要重新获取订单信息 |
| | | getData() |
| | | } |
| | | } |