| | |
| | | map["startLon"] = startLon |
| | | map["totalSeat"] = totalSeat |
| | | map["travelMode"] = travelMode |
| | | map["type"] = orderType |
| | | map["travelTime"] = DateUtil.getTime(DateUtil.TYPE0, System.currentTimeMillis()) |
| | | if (majorSureMoneyAdapter.data.isNotEmpty()){ |
| | | map["additionalFee"] = gson.toJson(majorSureMoneyAdapter.data) |
| | |
| | | ): Boolean { |
| | | tv_order_type.text = list[options1] |
| | | orderType = if (options1 == 0) 3 else if (options1 == 1) 8 else 9 |
| | | clearByType(0) |
| | | return false |
| | | } |
| | | }) |
| | |
| | | toast("请先选择起点") |
| | | return@clickDelay |
| | | } |
| | | startActivity<SelectCityStartActivity>("startCityId" to startCityId) |
| | | startActivity<SelectCityStartActivity>("startCityId" to startCityId,"orderType" to orderType) |
| | | } |
| | | |
| | | ll_select_city_start.clickDelay { |
| | | selectCityLocation = 1 |
| | | startActivity<SelectCityStartActivity>() |
| | | if (orderType == 0){ |
| | | toast("请选择订单类型") |
| | | }else{ |
| | | selectCityLocation = 1 |
| | | startActivity<SelectCityStartActivity>("orderType" to orderType) |
| | | } |
| | | } |
| | | |
| | | ll_select_car_num.clickDelay { |
| | |
| | | private fun downOrder(paytype: String, orderId: String,function: () -> Unit) { |
| | | var map = getMapByAny() |
| | | map["orderId"] = orderId |
| | | map["orderType"] = "3" |
| | | map["orderType"] = orderType |
| | | map["payType"] = paytype |
| | | map["type"] = "2" |
| | | callNet(Api.payTaxiOrder, map) { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | private fun callMoney(function: (QueryOrderMoneyBean.DataBean) -> Unit) { |
| | | var map = getMapByAny() |
| | | map["endLonLat"] = "$endLon,$endLat" |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | // /*** |
| | | // * 根据排班id获取最大出行人数 |
| | | // */ |
| | | // private fun callPeopleNum() { |
| | | // var map = getMapByAny() |
| | | // map["id"] = lineShiftDriverId |
| | | // callNet(Api.querySeat,map){ |
| | | // var bean = gson.fromJson<PeopleNumBean>(it,PeopleNumBean::class.java) |
| | | // } |
| | | // |
| | | // } |
| | | |
| | | |
| | | override fun onEventMainThread(event: BaseEvent?) { |
| | | super.onEventMainThread(event) |
| | |
| | | startLon = "" |
| | | tv_up_point.text = "" |
| | | } |
| | | if(i < 1){ |
| | | startCityName = "" |
| | | startCityId = "" |
| | | tv_start_point.text = "" |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |