diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/bean/QueryLeaveAwayPassengersRequest.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/bean/QueryLeaveAwayPassengersRequest.java index 0ea411d4d7..acea5172a8 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/bean/QueryLeaveAwayPassengersRequest.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/bean/QueryLeaveAwayPassengersRequest.java @@ -10,8 +10,9 @@ import com.mogo.commons.network.Utils; public class QueryLeaveAwayPassengersRequest { private String sn; private int endSiteId; + private int orderDispatchType = 4; - public QueryLeaveAwayPassengersRequest( int siteId ) { + public QueryLeaveAwayPassengersRequest(int siteId) { this.sn = Utils.getSn(); this.endSiteId = siteId; } @@ -20,7 +21,7 @@ public class QueryLeaveAwayPassengersRequest { return sn; } - public void setSn( String sn ) { + public void setSn(String sn) { this.sn = sn; } @@ -31,4 +32,12 @@ public class QueryLeaveAwayPassengersRequest { public void setEndSiteId(int endSiteId) { this.endSiteId = endSiteId; } + + public int getOrderDispatchType() { + return orderDispatchType; + } + + public void setOrderDispatchType(int orderDispatchType) { + this.orderDispatchType = orderDispatchType; + } } diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java index c56a60c069..f3ceb8d44e 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java @@ -221,9 +221,11 @@ public class OchBusFragment extends BaseOchFragment< OchBusFragment, OchBusPrese if ( launch ) { tvOperationStatus.setText( "收车" ); showSlidePanle("准备出发"); + showPanel(); } else { tvOperationStatus.setText( "出车" ); hideSlidePanel(); + hidPanel(); } } } diff --git a/OCH/mogo-och-bus/src/main/res/raw/bus_station_list1.json b/OCH/mogo-och-bus/src/main/res/raw/bus_station_list1.json index f9ac00fca0..c74daa1174 100644 --- a/OCH/mogo-och-bus/src/main/res/raw/bus_station_list1.json +++ b/OCH/mogo-och-bus/src/main/res/raw/bus_station_list1.json @@ -26,27 +26,27 @@ }, { "lineId": 1.0, - "siteId": 1.0, - "siteName": "万集东门站", + "siteId": 2.0, + "siteName": "市政府前街18号", "cityCode": "010", "areaCode": "1001", "areaName": "顺义区", "currentLocation": [ - 116.7374429112, - 40.2023987087 + 116.729134342, + 40.1953113732 ], - "lon": 116.7374429112, - "lat": 40.2023987087, - "siteDesc": "万集东门站", + "lon": 116.729134342, + "lat": 40.1953113732, + "siteDesc": "市政府前街18号", "siteState": 1.0, - "isCurrentSite": 1.0, - "siteColor": 1.0, + "isCurrentSite": 3.0, + "siteColor": 2.0, "peoples": "0", - "ifStop": 1.0 + "ifStop": 0.0 }, { "lineId": 1.0, - "siteId": 2.0, + "siteId": 3.0, "siteName": "顺密路口站", "cityCode": "010", "areaCode": "1001", @@ -59,486 +59,6 @@ "lat": 40.1940181096, "siteDesc": "顺密路口站", "siteState": 1.0, - "isCurrentSite": 3.0, - "siteColor": 2.0, - "peoples": "0", - "ifStop": 1.0 - }, - { - "lineId": 1.0, - "siteId": 2.0, - "siteName": "顺密路口站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.723146, - 40.179637 - ], - "lon": 116.723146, - "lat": 40.179637, - "siteDesc": "顺密路口站", - "siteState": 1.0, - "isCurrentSite": 3.0, - "siteColor": 2.0, - "peoples": "0", - "ifStop": 1.0 - }, - { - "lineId": 2.0, - "siteId": 2.0, - "siteName": "顺密路口站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.738835502, - 40.2023958306 - ], - "lon": 116.738835502, - "lat": 40.2023958306, - "siteDesc": "顺密路口站", - "siteState": 1.0, - "isCurrentSite": 3.0, - "siteColor": 2.0, - "peoples": "0", - "ifStop": 1.0 - }, - { - "lineId": 1.0, - "siteId": 3.0, - "siteName": "第三站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.723232, - 40.180637 - ], - "lon": 116.723232, - "lat": 40.180637, - "siteDesc": "这里是第三站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 4.0, - "siteName": "第四站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.72343, - 40.182092 - ], - "lon": 116.72343, - "lat": 40.182092, - "siteDesc": "这里是第四站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 5.0, - "siteName": "第五站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.7235, - 40.182699 - ], - "lon": 116.7235, - "lat": 40.182699, - "siteDesc": "这里是第五站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 6.0, - "siteName": "第六站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.723789, - 40.185416 - ], - "lon": 116.723789, - "lat": 40.185416, - "siteDesc": "这里是第六站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 7.0, - "siteName": "第七站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.723977, - 40.18701 - ], - "lon": 116.723977, - "lat": 40.18701, - "siteDesc": "这里是第七站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 8.0, - "siteName": "第八站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.72431, - 40.190182 - ], - "lon": 116.72431, - "lat": 40.190182, - "siteDesc": "这里是第八站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 9.0, - "siteName": "第九站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.72431, - 40.190182 - ], - "lon": 116.72431, - "lat": 40.190182, - "siteDesc": "这里是第九站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 10.0, - "siteName": "第十站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.724503, - 40.192026 - ], - "lon": 116.724503, - "lat": 40.192026, - "siteDesc": "这里是第十站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 11.0, - "siteName": "第十一站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.724873, - 40.19489 - ], - "lon": 116.724873, - "lat": 40.19489, - "siteDesc": "这里是第十一站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 14.0, - "siteName": "第十四站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.728258, - 40.195255 - ], - "lon": 116.728258, - "lat": 40.195255, - "siteDesc": "这里是第十四站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 15.0, - "siteName": "第十五站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.729288, - 40.195476 - ], - "lon": 116.729288, - "lat": 40.195476, - "siteDesc": "这里是第十五站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 16.0, - "siteName": "第十六站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.730554, - 40.195952 - ], - "lon": 116.730554, - "lat": 40.195952, - "siteDesc": "这里是第十六站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 17.0, - "siteName": "第十七站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.732227, - 40.196374 - ], - "lon": 116.732227, - "lat": 40.196374, - "siteDesc": "这里是第十七站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 18.0, - "siteName": "第十八站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.732978, - 40.196443 - ], - "lon": 116.732978, - "lat": 40.196443, - "siteDesc": "这里是第十八站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 19.0, - "siteName": "第十九站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.733671, - 40.196497 - ], - "lon": 116.733671, - "lat": 40.196497, - "siteDesc": "这里是第十九站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 20.0, - "siteName": "第二十站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.736852, - 40.196493 - ], - "lon": 116.736852, - "lat": 40.196493, - "siteDesc": "这里是第二十站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 21.0, - "siteName": "第二十一站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.737866, - 40.19646 - ], - "lon": 116.737866, - "lat": 40.19646, - "siteDesc": "这里是第二十一站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 22.0, - "siteName": "第二十二站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.745177, - 40.19646 - ], - "lon": 116.745177, - "lat": 40.19646, - "siteDesc": "这里是第二十二站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 1.0, - "siteId": 23.0, - "siteName": "第二十三站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.750644, - 40.196402 - ], - "lon": 116.750644, - "lat": 40.196402, - "siteDesc": "这里是第二十三站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 10000.0, - "siteId": 10000.0, - "siteName": "0409第一站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.7389159039, - 40.1992312592 - ], - "lon": 116.7389159039, - "lat": 40.1992312592, - "siteDesc": "0409这里第一站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 10000.0, - "siteId": 10000.0, - "siteName": "0409第一站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.7389159039, - 40.1992312592 - ], - "lon": 116.7389159039, - "lat": 40.1992312592, - "siteDesc": "0409这里第一站", - "siteState": 1.0, - "isCurrentSite": 0.0, - "siteColor": 0.0, - "peoples": "0", - "ifStop": 0.0 - }, - { - "lineId": 10001.0, - "siteId": 10002.0, - "siteName": "0409第二站", - "cityCode": "010", - "areaCode": "1001", - "areaName": "顺义区", - "currentLocation": [ - 116.7375553739, - 40.1992677344 - ], - "lon": 116.7375553739, - "lat": 40.1992677344, - "siteDesc": "这里是第二站", - "siteState": 1.0, "isCurrentSite": 0.0, "siteColor": 0.0, "peoples": "0", diff --git a/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java index 775f882092..a8861ae85e 100644 --- a/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java +++ b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java @@ -74,6 +74,7 @@ class OCHTaxiFragment extends BaseOchFragment< OCHTaxiView, OCHTaxiPresenter > i mEndStationName = findViewById( R.id.module_och_taxi_order_end_station ); mDistance = findViewById( R.id.module_och_taxi_order_distance ); + showPanel(); initListeners(); updateOrderStatus(); if ( MogoApisHandler.getInstance() diff --git a/OCH/mogo-och-taxi/src/main/res/layout/module_och_taxi_panel.xml b/OCH/mogo-och-taxi/src/main/res/layout/module_och_taxi_panel.xml index 99ca32287c..0f357cd739 100644 --- a/OCH/mogo-och-taxi/src/main/res/layout/module_och_taxi_panel.xml +++ b/OCH/mogo-och-taxi/src/main/res/layout/module_och_taxi_panel.xml @@ -2,9 +2,8 @@ > e }); } + public void hidPanel(){ + getActivity().runOnUiThread(()->{ + flStationPanelContainer.setVisibility(View.GONE); + }); + } + + public void showPanel(){ + getActivity().runOnUiThread(()->{ + flStationPanelContainer.setVisibility(View.VISIBLE); + }); + } + public View getPanelView() { return panelView; } diff --git a/OCH/mogo-och/src/main/res/drawable-xhdpi/module_mogo_och_operation_status_bg.png b/OCH/mogo-och/src/main/res/drawable-xhdpi/img_module_mogo_och_operation_status_bg.png similarity index 100% rename from OCH/mogo-och/src/main/res/drawable-xhdpi/module_mogo_och_operation_status_bg.png rename to OCH/mogo-och/src/main/res/drawable-xhdpi/img_module_mogo_och_operation_status_bg.png diff --git a/OCH/mogo-och/src/main/res/drawable/module_mogo_och_autopilot_status_bg_check.png b/OCH/mogo-och/src/main/res/drawable/module_mogo_och_autopilot_status_bg_check.png new file mode 100644 index 0000000000..28857974b5 Binary files /dev/null and b/OCH/mogo-och/src/main/res/drawable/module_mogo_och_autopilot_status_bg_check.png differ diff --git a/OCH/mogo-och/src/main/res/drawable/module_mogo_och_autopilot_status_bg_nor.png b/OCH/mogo-och/src/main/res/drawable/module_mogo_och_autopilot_status_bg_nor.png new file mode 100644 index 0000000000..f7d4f92c4b Binary files /dev/null and b/OCH/mogo-och/src/main/res/drawable/module_mogo_och_autopilot_status_bg_nor.png differ diff --git a/OCH/mogo-och/src/main/res/drawable/module_mogo_och_operation_status_bg.xml b/OCH/mogo-och/src/main/res/drawable/module_mogo_och_operation_status_bg.xml new file mode 100644 index 0000000000..84b729bc63 --- /dev/null +++ b/OCH/mogo-och/src/main/res/drawable/module_mogo_och_operation_status_bg.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/OCH/mogo-och/src/main/res/drawable/module_och_panel_bkg.xml b/OCH/mogo-och/src/main/res/drawable/module_och_panel_bkg.xml new file mode 100644 index 0000000000..204c5fc692 --- /dev/null +++ b/OCH/mogo-och/src/main/res/drawable/module_och_panel_bkg.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OCH/mogo-och/src/main/res/layout/module_mogo_och_base_fragment.xml b/OCH/mogo-och/src/main/res/layout/module_mogo_och_base_fragment.xml index 509d3e5f16..4ae3c37821 100644 --- a/OCH/mogo-och/src/main/res/layout/module_mogo_och_base_fragment.xml +++ b/OCH/mogo-och/src/main/res/layout/module_mogo_och_base_fragment.xml @@ -4,16 +4,17 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingStart="@dimen/module_mogo_och_margin_left" android:paddingBottom="@dimen/module_mogo_och_margin_bottom"> + app:layout_goneMarginTop="@dimen/module_mogo_och_station_panel_container_margin_top_no_call" + tools:visibility="visible" /> + app:layout_constraintLeft_toLeftOf="@+id/module_mogo_och_autopilot_status" /> implements IV2XScenario { @Override public void speakTTSVoice(@Nullable String msg, IMogoVoiceCmdCallBack callBack) { if (!TextUtils.isEmpty(msg)) { - Logger.w(V2XConst.MODULE_NAME, "调用TTS播放语音:" + msg); + Logger.d(V2XConst.MODULE_NAME, "调用TTS播放语音:" + msg); AIAssist.getInstance(V2XUtils.getApp()).speakTTSVoice(msg, VoicePreemptType.PREEMPT_TYPE_IMMEADIATELY, callBack); } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventMarker.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventMarker.java index f4a2898d3c..a5d78f20ca 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventMarker.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventMarker.java @@ -21,7 +21,7 @@ public class V2XOptimalRouteVREventMarker implements IV2XMarker