|
@@ -10,6 +10,7 @@ import { Button } from '@/components/ui/button'
|
|
|
import { Card, CardContent } from '@/components/ui/card'
|
|
import { Card, CardContent } from '@/components/ui/card'
|
|
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog'
|
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog'
|
|
|
import { showToast } from '@/utils/toast'
|
|
import { showToast } from '@/utils/toast'
|
|
|
|
|
+import { getVehicleTypeText } from '@/types/route.types'
|
|
|
import type { InferResponseType , InferRequestType} from 'hono/client'
|
|
import type { InferResponseType , InferRequestType} from 'hono/client'
|
|
|
import {
|
|
import {
|
|
|
requestWechatPayment,
|
|
requestWechatPayment,
|
|
@@ -540,7 +541,7 @@ export default function OrderPage() {
|
|
|
{isCharter ? '包车服务' : '班次信息'}
|
|
{isCharter ? '包车服务' : '班次信息'}
|
|
|
</Text>
|
|
</Text>
|
|
|
<View className="bg-primary text-white px-4 py-2 rounded-full text-xs font-semibold tracking-wide">
|
|
<View className="bg-primary text-white px-4 py-2 rounded-full text-xs font-semibold tracking-wide">
|
|
|
- {schedule.travelMode === 'charter' ? '专车包车' : (schedule.vehicleType === 'business' ? '商务拼车' : '大巴拼车')}
|
|
|
|
|
|
|
+ {schedule.travelMode === 'charter' ? '专车包车' : (getVehicleTypeText(schedule.vehicleType) + '拼车')}
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
@@ -551,7 +552,7 @@ export default function OrderPage() {
|
|
|
</View>
|
|
</View>
|
|
|
<View className="flex justify-between items-center">
|
|
<View className="flex justify-between items-center">
|
|
|
<Text className={`text-sm font-medium ${isCharter ? 'text-gray-300' : 'text-gray-600'}`}>车辆型号</Text>
|
|
<Text className={`text-sm font-medium ${isCharter ? 'text-gray-300' : 'text-gray-600'}`}>车辆型号</Text>
|
|
|
- <Text className={`text-sm font-semibold ${isCharter ? 'text-white' : 'text-gray-900'}`}>{schedule.vehicleType}</Text>
|
|
|
|
|
|
|
+ <Text className={`text-sm font-semibold ${isCharter ? 'text-white' : 'text-gray-900'}`}>{getVehicleTypeText(schedule.vehicleType)}</Text>
|
|
|
</View>
|
|
</View>
|
|
|
<View className="flex justify-between items-center">
|
|
<View className="flex justify-between items-center">
|
|
|
<Text className={`text-sm font-medium ${isCharter ? 'text-gray-300' : 'text-gray-600'}`}>上车地点</Text>
|
|
<Text className={`text-sm font-medium ${isCharter ? 'text-gray-300' : 'text-gray-600'}`}>上车地点</Text>
|