| | |
| | | import android.view.View |
| | | import android.widget.LinearLayout |
| | | import android.widget.TextView |
| | | import androidx.core.view.isVisible |
| | | import cn.sinata.xldutils.utils.* |
| | | import com.driver.igotrip.R |
| | | import com.driver.igotrip.base.BaseEvent |
| | |
| | | private val ll_order_money by lazy { find<LinearLayout>(R.id.ll_order_money) } |
| | | private val tv_order_money by lazy { find<TextView>(R.id.tv_order_money) } |
| | | private val ll_service_money by lazy { find<LinearLayout>(R.id.ll_service_money) } |
| | | private val tv_coupon_price by lazy { find<TextView>(R.id.tv_coupon_price) } |
| | | private val ll_coupon_price by lazy { find<LinearLayout>(R.id.ll_coupon_price) } |
| | | private val tv_service_money by lazy { find<TextView>(R.id.tv_service_money) } |
| | | private val ll_real_income by lazy { find<LinearLayout>(R.id.ll_real_income) } |
| | | private val tv_real_income by lazy { find<TextView>(R.id.tv_real_income) } |
| | |
| | | tv_pay_result_title.text = getString(R.string.订单) + getSmallStatue(it.orderState) |
| | | tv_order_money.text = getString(R.string.money) + it.orderMoney |
| | | tv_service_money.text = getString(R.string.money) + it.platformServerMoney |
| | | tv_coupon_price.text = getString(R.string.money) + it.couponMoney |
| | | ll_coupon_price.isVisible = (it.couponMoney?.toDoubleOrNull() ?: 0.0) > 0 |
| | | tv_real_income.text = getString(R.string.money) + it.driverServerMoney |
| | | ll_pay_result.visible() |
| | | if (it.orderState in 6..7) { |