| | |
| | | import com.example.emanagercar.ui.base.BaseRecyclerFragment |
| | | import com.okgoincar.base.MyApplication |
| | | import com.okgoincar.netUtls.getMapByAny |
| | | import com.okgoincar.ui.adapter.SlabMainAdapter |
| | | import com.okgoincar.slab.adapter.SlabMainAdapter |
| | | import com.okgoincar.bean.OrderListBean |
| | | import com.okgoincar.netUtls.Api |
| | | import com.okgoincar.netUtls.callNet |
| | |
| | | class SlabMainFragment : BaseRecyclerFragment<OrderListBean.DataBean>(SlabMainAdapter()) { |
| | | |
| | | var state = 1 |
| | | var type = 1 |
| | | |
| | | var firstCallRecord = false //是否首次在进行中的列表中加入历史记录 (进行中的订单太少客户觉得太空) |
| | | |
| | | override fun pathUrl(): String? { |
| | | return Api.queryOrderList |
| | | return Api.queryOrderList1 |
| | | } |
| | | |
| | | override fun mapObject(): HashMap<String?, Any?>? { |
| | | var map = getMapByAny() |
| | | map["state"] = state |
| | | map["type"] = type |
| | | return map |
| | | } |
| | | |
| | |
| | | |
| | | override fun noShowNothing() { |
| | | super.noShowNothing() |
| | | if (!firstCallRecord && state == 1) { |
| | | if (!firstCallRecord && state == 1 && type == 1) { |
| | | callRecord() |
| | | } |
| | | } |