From 831f601ca3e807636e40aa64a637fba6fe275e09 Mon Sep 17 00:00:00 2001 From: wangmingjun Date: Wed, 21 Sep 2022 16:39:40 +0800 Subject: [PATCH] =?UTF-8?q?[2.11.0/1.6.0]=20bus=E5=8F=B8=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=EF=BC=8C=E4=B9=98=E5=AE=A2=E5=B1=8F=E8=B7=AF=E7=BA=BF=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusPassengerLineStationsAdapter.java | 52 ------------- .../bean/BusPassengerRoutesResponse.java | 1 + .../bean/BusPassengerRoutesResult.java | 20 +++++ .../passenger/bean/BusPassengerStation.java | 27 +++++++ .../IBusPassengerRouteLineInfoCallback.java | 2 + .../passenger/model/BusPassengerModel.java | 11 +++ .../presenter/BaseBusPassengerPresenter.java | 10 +++ .../ui/BusPassengerRouteFragment.java | 18 +++++ .../res/layout/bus_p_no_data_common_view.xml | 2 +- .../main/res/layout/bus_p_route_fragment.xml | 2 +- .../res/layout/bus_p_stations_end_item.xml | 72 ------------------ .../res/layout/bus_p_stations_middle_item.xml | 61 --------------- .../res/layout/bus_p_stations_start_item.xml | 74 ------------------- .../src/main/res/values/strings.xml | 3 +- .../mogo/och/bus/fragment/BusFragment.java | 13 +--- .../src/main/res/layout/bus_no_line_view.xml | 4 +- .../src/main/res/layout/fragment_och_bus.xml | 8 +- .../src/main/res/values/strings.xml | 8 +- 18 files changed, 106 insertions(+), 282 deletions(-) delete mode 100644 OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_end_item.xml delete mode 100644 OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_middle_item.xml delete mode 100644 OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_start_item.xml diff --git a/OCH/mogo-och-bus-passenger/src/main/java/com/mogo/och/bus/passenger/adapter/BusPassengerLineStationsAdapter.java b/OCH/mogo-och-bus-passenger/src/main/java/com/mogo/och/bus/passenger/adapter/BusPassengerLineStationsAdapter.java index 6a5cf47c32..25ef3ead6d 100644 --- a/OCH/mogo-och-bus-passenger/src/main/java/com/mogo/och/bus/passenger/adapter/BusPassengerLineStationsAdapter.java +++ b/OCH/mogo-och-bus-passenger/src/main/java/com/mogo/och/bus/passenger/adapter/BusPassengerLineStationsAdapter.java @@ -28,9 +28,6 @@ public class BusPassengerLineStationsAdapter extends RecyclerView.Adapter mStations; - private static final int LINE_START_STATION_ITEM = 0; - private static final int LINE_END_STATION_ITEM = 1; - private static final int LINE_MIDDLE_STATION_ITEM = 2; public BusPassengerLineStationsAdapter(Context context, List stations){ this.mContext = context; @@ -99,19 +96,6 @@ public class BusPassengerLineStationsAdapter extends RecyclerView.Adapter + android:text="@string/bus_p_no_out"/> \ No newline at end of file diff --git a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_route_fragment.xml b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_route_fragment.xml index 58ae13004c..2dd36c279b 100644 --- a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_route_fragment.xml +++ b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_route_fragment.xml @@ -148,7 +148,7 @@ android:layout_height="match_parent" android:layout_marginTop="@dimen/dp_280" android:paddingBottom="@dimen/dp_30" - android:paddingLeft="@dimen/bus_p_route_info_margin_left" + android:paddingLeft="@dimen/dp_30" android:paddingRight="@dimen/bus_p_route_info_margin_right" android:requiresFadingEdge="vertical" app:layout_constraintLeft_toLeftOf="@+id/bus_p_driver_num_plate_tv" diff --git a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_end_item.xml b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_end_item.xml deleted file mode 100644 index 9d2edfd07f..0000000000 --- a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_end_item.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_middle_item.xml b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_middle_item.xml deleted file mode 100644 index 9acb37947a..0000000000 --- a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_middle_item.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_start_item.xml b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_start_item.xml deleted file mode 100644 index 50ed06a589..0000000000 --- a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_stations_start_item.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OCH/mogo-och-bus-passenger/src/main/res/values/strings.xml b/OCH/mogo-och-bus-passenger/src/main/res/values/strings.xml index d142ef29fc..0f4dc17854 100644 --- a/OCH/mogo-och-bus-passenger/src/main/res/values/strings.xml +++ b/OCH/mogo-och-bus-passenger/src/main/res/values/strings.xml @@ -1,7 +1,8 @@ KM/H - 您已收车 + 您已收车 + 暂无班次 到达站: diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java index e7dad27d26..b256f9f2a4 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BusFragment.java @@ -48,18 +48,11 @@ public class BusFragment extends BaseBusTabFragment implements SlidePanelView.OnSlidePanelMoveToEndListener, View.OnClickListener { private static final String TAG = "BusFragment"; -// private TextView mCurrentStationName; -// private TextView mNextStationName; -// private TextView mCurrentTag; -// private TextView mNextTag; private TextView mSwitchLine; //切换路线 private TextView mLineName; private TextView mTaskTime; private Group groupStationsPanel; private ConstraintLayout noDataView; -// private int mCurrentStation = 0; - -// private View mBus; private BusStationBean startStation = null; private BusStationBean endStation = null; @@ -75,10 +68,7 @@ public class BusFragment extends BaseBusTabFragment @Override protected void initViews() { super.initViews(); -// mCurrentStationName = findViewById(R.id.module_och_bus_current_station); -// mCurrentTag = findViewById(R.id.module_och_bus_current_station_anchor); -// mNextStationName = findViewById(R.id.module_och_bus_order_end_station); -// mNextTag = findViewById(R.id.module_och_bus_next_station_anchor); + mSwitchLine = findViewById(R.id.switch_line_btn); mSwitchLine.setTag(0); mLineName = findViewById(R.id.module_och_bus_line_name); @@ -224,6 +214,7 @@ public class BusFragment extends BaseBusTabFragment int arrivingOrArrivedIndex, boolean isArrived) { secondStationItem.setStationTag(""); + secondStationItem.showOrHideStationArrowBg(true); thirdStationItem.setStationTag(""); secondStationItem.setVisibility(View.VISIBLE); thirdStationItem.showOrHideStationArrowBg(false); diff --git a/OCH/mogo-och-bus/src/main/res/layout/bus_no_line_view.xml b/OCH/mogo-och-bus/src/main/res/layout/bus_no_line_view.xml index 9276383a2a..9cbebe5646 100644 --- a/OCH/mogo-och-bus/src/main/res/layout/bus_no_line_view.xml +++ b/OCH/mogo-och-bus/src/main/res/layout/bus_no_line_view.xml @@ -1,7 +1,7 @@ @@ -24,5 +24,5 @@ app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/no_line_data_iv" - android:text="暂无服务订单"/> + android:text="@string/bus_no_task_tip"/> \ No newline at end of file diff --git a/OCH/mogo-och-bus/src/main/res/layout/fragment_och_bus.xml b/OCH/mogo-och-bus/src/main/res/layout/fragment_och_bus.xml index 0e9b06e8b6..8609630b9c 100644 --- a/OCH/mogo-och-bus/src/main/res/layout/fragment_och_bus.xml +++ b/OCH/mogo-och-bus/src/main/res/layout/fragment_och_bus.xml @@ -97,7 +97,7 @@ android:layout_height="@dimen/bus_switch_line_btn_height_1" android:layout_marginLeft="@dimen/dp_28" android:layout_marginTop="@dimen/dp_40" - app:layout_goneMarginTop="@dimen/dp_400" + app:layout_goneMarginTop="@dimen/dp_600" android:background="@drawable/bus_switch_line_btn" android:gravity="center" android:text="@string/bus_switch_line_btn" @@ -109,10 +109,10 @@ app:layout_constraintLeft_toLeftOf="parent" /> + android:layout_marginTop="@dimen/dp_160" + app:layout_constraintTop_toTopOf="parent"/> 起点: 终点: 确认 - 切换路线 - 结束路线 + 选择任务 + 结束任务 自动驾驶状态中,不可切换或结束路线 当前行程未完成,不可切换路线 当前车辆无路线\n请联系运营人员绑定 @@ -31,7 +31,9 @@ 班次: 提示 - 您确认要结束路线吗? + 您确认要结束任务吗? 确认 取消 + + 暂无任务