[charter]
[3.2.0] [tts 修改]
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.mogo.och.bus.passenger.presenter
|
||||
|
||||
import androidx.lifecycle.LifecycleOwner
|
||||
import com.mogo.och.bus.passenger.R
|
||||
import com.mogo.och.bus.passenger.bean.response.OrderInfoResponse
|
||||
import com.mogo.och.bus.passenger.model.CharterPassengerModel
|
||||
import com.mogo.och.bus.passenger.ui.dialogfragment.M1ContainFragment
|
||||
import com.mogo.och.bus.passenger.ui.dialogfragment.NoviceGuidanceFragment
|
||||
@@ -31,6 +33,20 @@ class CharterPassengerNoviceGuidancePresenter(view: NoviceGuidanceFragment?) :
|
||||
}catch (e:Exception){
|
||||
e.printStackTrace()
|
||||
}
|
||||
when (it.productType) {
|
||||
OrderInfoResponse.M1_LOVE -> {
|
||||
mView?.setProductType("爱情号")
|
||||
}
|
||||
OrderInfoResponse.M1_FAMILY -> {
|
||||
mView?.setProductType("家庭号")
|
||||
}
|
||||
OrderInfoResponse.M1_FRIENDLY -> {
|
||||
mView?.setProductType("朋友号")
|
||||
}
|
||||
else -> {
|
||||
mView?.setProductType("")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -292,6 +292,10 @@ class NoviceGuidanceFragment :
|
||||
super.onViewStateRestored(savedInstanceState)
|
||||
}
|
||||
|
||||
fun setProductType(type: String) {
|
||||
actv_start_guildance.text = "欢迎乘坐蘑菇车联自动驾驶$type!"
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val TAG = "NoviceGuidanceFragment"
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_186"
|
||||
android:layout_marginStart="@dimen/dp_280"
|
||||
android:text="欢迎乘坐蘑菇车联自动驾驶亲情号!"
|
||||
android:text="欢迎乘坐蘑菇车联自动驾驶!"
|
||||
android:visibility="gone"
|
||||
android:textSize="@dimen/dp_52"
|
||||
android:textStyle="bold"
|
||||
|
||||
@@ -38,13 +38,13 @@
|
||||
<string name="m1_bottom_reach_time">--:--</string>
|
||||
|
||||
<string name="m1_stop_site">靠边停车</string>
|
||||
<string name="m1_welcome_tts">欢迎乘坐蘑菇车联自动驾驶小巴车,按照桌面屏幕的指引,开始探索吧!小蘑菇预祝您旅途愉快</string>
|
||||
<string name="m1_welcome_tts">欢迎乘坐蘑菇车联自动驾驶小巴车,按照桌面屏幕的指引,开始探索吧!</string>
|
||||
|
||||
<string name="m1_novice_guidance_tts">铛铛~接下来由蘑菇小助手为您\'指引方向\'!</string>
|
||||
<string name="m1_novice_guidance_door_tts">关闭车门后,点击‘出发’按钮启程,车辆自动判断开始自动驾驶啦!咻~</string>
|
||||
<string name="m1_novice_guidance_stop_site_tts">点击‘停车’按钮后,车辆自动靠边停车,车辆停稳后就可以下车游玩啦!</string>
|
||||
<string name="m1_novice_guidance_tts">接下来由蘑菇小助手为您\'指引方向\'!</string>
|
||||
<string name="m1_novice_guidance_door_tts">关闭车门后,点击‘出发’按钮启动</string>
|
||||
<string name="m1_novice_guidance_stop_site_tts">点击‘停车’按钮后进行靠边停车,车辆停稳后就可以下车游玩啦!</string>
|
||||
<string name="m1_novice_guidance_notice_tts">最后,蘑菇小助手为您送上乘车小贴士~</string>
|
||||
<string name="m1_novice_guidance_complier_tts">太棒了!您已完成乘车指南,更多功能欢迎探索~蘑菇小助手预祝您旅途愉快</string>
|
||||
<string name="m1_novice_guidance_complier_tts">太棒了!您已完成乘车指南,更多功能欢迎探索,蘑菇小助手预祝您旅途愉快</string>
|
||||
|
||||
<string name="m1_close_door_and_startauto">先关闭车门再启动吧~</string>
|
||||
<string name="m1_start_auto_fail">自驾系统繁忙,稍后再试试吧~</string>
|
||||
|
||||
Reference in New Issue
Block a user