| | |
| | | package com.driver.igotrip.ui.main |
| | | |
| | | import android.view.View |
| | | import cn.sinata.rxnetty.LogHelper.logRecord |
| | | import cn.sinata.xldutils.utils.clickDelay |
| | | import com.driver.igotrip.R |
| | | import com.driver.igotrip.base.BaseEvent |
| | | import com.driver.igotrip.base.PublicServiceDialogActivity |
| | | import com.driver.igotrip.netUtls.Api |
| | | import com.driver.igotrip.netUtls.callNet |
| | | import com.driver.igotrip.netUtls.callNet1 |
| | | import com.driver.igotrip.netUtls.getMapByAny |
| | | import org.greenrobot.eventbus.EventBus |
| | | import org.jetbrains.anko.find |
| | |
| | | find<View>(R.id.agree).clickDelay { |
| | | updateEndAddress(2) |
| | | } |
| | | logRecord("修改目的地弹窗orderId:${orderId} orderType:${orderType}") |
| | | } |
| | | |
| | | /** |
| | |
| | | map["orderId"] = orderId |
| | | map["orderType"] = orderType |
| | | map["status"] = status |
| | | callNet(this, Api.updateEndAddress, map) { |
| | | if(status == 2){ |
| | | callNet1(this, Api.updateEndAddress, map, clickAction = { |
| | | logRecord("修改目的地操作成功orderId:${orderId} orderType:${orderType}") |
| | | if (status == 2) { |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.MODIFY_ADDRESS_SUC)) |
| | | } |
| | | finish() |
| | | } |
| | | }, errorAction = { code, msg -> |
| | | logRecord("修改目的地操作失败orderId:${orderId} orderType:${orderType} code:${code} msg:${msg}") |
| | | }) |
| | | } |
| | | } |