[6.2.6]
[taxi-p] [a litter change]
This commit is contained in:
@@ -158,7 +158,7 @@ class TaxiPassengerBaseFragment() :
|
||||
override fun isShow(show: Boolean) {
|
||||
CallerLogger.d(M_TAXI_P + TAG, "arrived ${show}")
|
||||
if(arrivedView.visibility==View.GONE&&chekAndStartAutopilotView.visibility==View.GONE){
|
||||
showOrHide(true)
|
||||
showOrHide(true,"到达目的地页面隐藏")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -166,7 +166,7 @@ class TaxiPassengerBaseFragment() :
|
||||
override fun isShow(show: Boolean) {
|
||||
CallerLogger.d(M_TAXI_P + TAG, "check and startAutopilot ${show}")
|
||||
if(arrivedView.visibility==View.GONE&&chekAndStartAutopilotView.visibility==View.GONE){
|
||||
showOrHide(true)
|
||||
showOrHide(true,"手机号check+startautopilot页面隐藏")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -239,19 +239,18 @@ class TaxiPassengerBaseFragment() :
|
||||
when (status) {
|
||||
0 -> {
|
||||
if(chekAndStartAutopilotView.visibility == View.GONE){
|
||||
showOrHide(false)
|
||||
showOrHide(false,"显示手机号check")
|
||||
}
|
||||
chekAndStartAutopilotView.aniCheckAndStartAutopilot(true,0)
|
||||
}
|
||||
1 -> {
|
||||
if(chekAndStartAutopilotView.visibility == View.GONE){
|
||||
showOrHide(false)
|
||||
showOrHide(false,"显示启动自动驾驶")
|
||||
}
|
||||
chekAndStartAutopilotView.aniCheckAndStartAutopilot(true,1)
|
||||
}
|
||||
2 -> {
|
||||
chekAndStartAutopilotView.aniCheckAndStartAutopilot(false,2)
|
||||
showOrHide(true)
|
||||
chekAndStartAutopilotView.resetCheckView()
|
||||
}
|
||||
else -> {}
|
||||
@@ -282,13 +281,13 @@ class TaxiPassengerBaseFragment() :
|
||||
if (isShow) {
|
||||
exitFullVideoScreen(true)
|
||||
arrivedView.aniArrived(true)
|
||||
showOrHide(false)
|
||||
showOrHide(false,"显示到达目的地")
|
||||
RxUtils.createSubscribe(500) {
|
||||
arrivedView.setDataAndStartAnimation()
|
||||
VoiceNotice.showNotice("已到达目的地,带好随身物品,右侧下车更安全!期待下次再见", AIAssist.LEVEL2)
|
||||
}
|
||||
} else {
|
||||
showOrHide(true)
|
||||
showOrHide(true,"隐藏到达目的地")
|
||||
arrivedView.aniArrived(false)
|
||||
}
|
||||
}
|
||||
@@ -307,7 +306,8 @@ class TaxiPassengerBaseFragment() :
|
||||
bottom.setCheckIndex(BottomBar.SelectView.OVERMAPVIEW)
|
||||
}
|
||||
|
||||
private fun showOrHide(isShow: Boolean){
|
||||
private fun showOrHide(isShow: Boolean,type:String){
|
||||
CallerLogger.d(M_TAXI_P + TAG, "类型:$type")
|
||||
val animatorSet = AnimatorSet()
|
||||
val allAnimator = mutableListOf<Animator>()
|
||||
allAnimator.addAll(aniStatusBar(isShow))
|
||||
|
||||
@@ -43,6 +43,8 @@ class ArrivedView : WindowRelativeLayout, ArrivedViewModel.ArrivedViewCallback {
|
||||
|
||||
var arrivedVisilityChangeListenr:ArrivedVisilityChangeListenr?=null
|
||||
|
||||
private lateinit var viewModel: ArrivedViewModel
|
||||
|
||||
|
||||
private fun initView() {
|
||||
d(SceneConstant.M_TAXI_P + TAG, "initView")
|
||||
@@ -67,6 +69,7 @@ class ArrivedView : WindowRelativeLayout, ArrivedViewModel.ArrivedViewCallback {
|
||||
taxiPxiaozhiLove = BigFrameAnimatorContainer(R.array.arrived_dest, 31,aciv_bg,isOnce = true)
|
||||
taxiPxiaozhiLove?.start()
|
||||
v_video_right_rear_view.resetView()
|
||||
viewModel.setEndInfo()
|
||||
} else {
|
||||
v_video_right_rear_view.resetView()
|
||||
taxiPxiaozhiLove = null
|
||||
@@ -77,7 +80,7 @@ class ArrivedView : WindowRelativeLayout, ArrivedViewModel.ArrivedViewCallback {
|
||||
|
||||
override fun onAttachedToWindow() {
|
||||
super.onAttachedToWindow()
|
||||
val viewModel = ViewModelProvider(this).get(ArrivedViewModel::class.java)
|
||||
viewModel = ViewModelProvider(this).get(ArrivedViewModel::class.java)
|
||||
viewModel.setViewCallback(this)
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@ class ArrivedViewModel: ViewModel() {
|
||||
|
||||
fun setViewCallback(viewCallback: ArrivedViewCallback){
|
||||
this.viewCallback = viewCallback
|
||||
|
||||
}
|
||||
|
||||
fun setEndInfo(){
|
||||
TaxiPassengerModel.currentOCHOrder?.endSiteAddr?.let {
|
||||
this.viewCallback?.setEndStation(it)
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class ChekViewModel : ViewModel() {
|
||||
val currentOCHOrder = TaxiPassengerModel.currentOCHOrder
|
||||
currentOCHOrder?.let { order ->
|
||||
viewCallback?.setOrderInfo(order.startSiteAddr,
|
||||
order.endSiteAddr, order.carNumber, order.passengerPhone)
|
||||
order.endSiteAddr, order.passengerNum, order.passengerPhone)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
android:id="@+id/actv_arrived_station"
|
||||
app:layout_constraintStart_toStartOf="@+id/actv_endstation"
|
||||
app:layout_constraintBottom_toTopOf="@+id/actv_endstation"
|
||||
android:layout_marginBottom="@dimen/dp_26"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="@dimen/dp_64"
|
||||
android:layout_marginBottom="@dimen/dp_13"
|
||||
android:textColor="@color/taxi_p_373B46"
|
||||
android:textSize="@dimen/dp_56"
|
||||
android:text="已到达"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
@@ -40,11 +40,12 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/v_video_right_rear_view"
|
||||
app:layout_constraintBottom_toTopOf="@+id/v_video_right_rear_view"
|
||||
android:layout_marginBottom="@dimen/dp_26"
|
||||
android:textColor="@android:color/white"
|
||||
android:textColor="@color/taxi_p_373B46"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:maxWidth="@dimen/dp_1200"
|
||||
android:textSize="@dimen/dp_100"
|
||||
android:textSize="@dimen/dp_88"
|
||||
android:textStyle="bold"
|
||||
tools:text="环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
<color name="taxi_p_876E788B">#876E788B</color>
|
||||
|
||||
<color name="taxi_p_333333">#333333</color>
|
||||
<color name="taxi_p_373B46">#373B46</color>
|
||||
|
||||
|
||||
</resources>
|
||||
@@ -48,6 +48,8 @@ class ArrivedView : WindowRelativeLayout, ArrivedViewModel.ArrivedViewCallback {
|
||||
|
||||
var arrivedVisilityChangeListenr:ArrivedVisilityChangeListenr?=null
|
||||
|
||||
private lateinit var viewModel: ArrivedViewModel
|
||||
|
||||
|
||||
private fun initView() {
|
||||
d(SceneConstant.M_TAXI_P + TAG, "initView")
|
||||
@@ -72,6 +74,7 @@ class ArrivedView : WindowRelativeLayout, ArrivedViewModel.ArrivedViewCallback {
|
||||
taxiPxiaozhiLove = BigFrameAnimatorContainer(R.array.arrived_dest, 31,aciv_bg,isOnce = true)
|
||||
taxiPxiaozhiLove?.start()
|
||||
v_video_right_rear_view.resetView()
|
||||
viewModel.setEndInfo()
|
||||
} else {
|
||||
v_video_right_rear_view.resetView()
|
||||
taxiPxiaozhiLove = null
|
||||
@@ -82,7 +85,7 @@ class ArrivedView : WindowRelativeLayout, ArrivedViewModel.ArrivedViewCallback {
|
||||
|
||||
override fun onAttachedToWindow() {
|
||||
super.onAttachedToWindow()
|
||||
val viewModel = ViewModelProvider(this).get(ArrivedViewModel::class.java)
|
||||
viewModel = ViewModelProvider(this).get(ArrivedViewModel::class.java)
|
||||
viewModel.setViewCallback(this)
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@ class ArrivedViewModel: ViewModel() {
|
||||
|
||||
fun setViewCallback(viewCallback: ArrivedViewCallback){
|
||||
this.viewCallback = viewCallback
|
||||
|
||||
}
|
||||
|
||||
fun setEndInfo(){
|
||||
TaxiPassengerModel.currentOCHOrder?.orderEndSite?.let {
|
||||
this.viewCallback?.setEndStation(it.siteName)
|
||||
}
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
android:id="@+id/actv_arrived_station"
|
||||
app:layout_constraintStart_toStartOf="@+id/actv_endstation"
|
||||
app:layout_constraintBottom_toTopOf="@+id/actv_endstation"
|
||||
android:layout_marginBottom="@dimen/dp_26"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="@dimen/dp_64"
|
||||
android:layout_marginBottom="@dimen/dp_13"
|
||||
android:textColor="@color/taxi_p_373B46"
|
||||
android:textSize="@dimen/dp_56"
|
||||
android:text="已到达"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
@@ -40,15 +40,16 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/v_video_right_rear_view"
|
||||
app:layout_constraintBottom_toTopOf="@+id/v_video_right_rear_view"
|
||||
android:layout_marginBottom="@dimen/dp_26"
|
||||
android:textColor="@android:color/white"
|
||||
android:textColor="@color/taxi_p_373B46"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:maxWidth="@dimen/dp_1200"
|
||||
android:textSize="@dimen/dp_100"
|
||||
android:textSize="@dimen/dp_88"
|
||||
android:textStyle="bold"
|
||||
tools:text="环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心环球贸易中心"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
|
||||
<com.mogo.och.taxi.passenger.ui.arrived.RightRearCamView
|
||||
android:id="@+id/v_video_right_rear_view"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
<color name="taxi_p_333333">#333333</color>
|
||||
<color name="taxi_p_995D6A8C">#995D6A8C</color>
|
||||
<color name="taxi_p_B37E90BF">#B37E90BF</color>
|
||||
<color name="taxi_p_373B46">#373B46</color>
|
||||
<color name="taxi_p_876E788B">#876E788B</color>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user