|
|
@@ -93,7 +93,7 @@ export default function OrderDetailScreen({
|
|
|
{data.deliveryAmount}
|
|
|
</Text>
|
|
|
<Text fontSize="sm" color="gray600">
|
|
|
- 本单派送收入
|
|
|
+ {t('ben-dan-pai-song-shou-ru')}
|
|
|
</Text>
|
|
|
</Div>
|
|
|
<Div w={1} bg="gray100" />
|
|
|
@@ -103,7 +103,7 @@ export default function OrderDetailScreen({
|
|
|
{data.userReceivedTime}
|
|
|
</Text>
|
|
|
<Text fontSize="sm" color="gray600">
|
|
|
- 用户收到时间
|
|
|
+ {t('yong-hu-shou-dao-shi-jian')}
|
|
|
</Text>
|
|
|
</Div>
|
|
|
) : (
|
|
|
@@ -112,7 +112,7 @@ export default function OrderDetailScreen({
|
|
|
{data.timeOfArrival}
|
|
|
</Text>
|
|
|
<Text fontSize="sm" color="gray600">
|
|
|
- 预计送达时间
|
|
|
+ {t('yu-ji-song-da-shi-jian')}
|
|
|
</Text>
|
|
|
</Div>
|
|
|
)}
|
|
|
@@ -140,11 +140,11 @@ export default function OrderDetailScreen({
|
|
|
{statusInfo.name}
|
|
|
</Text>
|
|
|
<Text fontSize="sm" color="gray600" mt={2}>
|
|
|
- 流水号:{data.id}
|
|
|
+ {t('liu-shui-hao')}:{data.id}
|
|
|
</Text>
|
|
|
</Div>
|
|
|
<Button bg="yellow500" w={112} onPress={orderChange}>
|
|
|
- 确认送达
|
|
|
+ {t('que-ren-song-da')}
|
|
|
</Button>
|
|
|
</Div>
|
|
|
)}
|
|
|
@@ -152,9 +152,9 @@ export default function OrderDetailScreen({
|
|
|
<>
|
|
|
<Div row py={10}>
|
|
|
<Div flex={1}>
|
|
|
- <Text>我已到店</Text>
|
|
|
+ <Text>{t('wo-yi-dao-dian')}</Text>
|
|
|
<Text fontSize="sm" color="gray600" mt={2}>
|
|
|
- 流水号:{data.id}
|
|
|
+ {t('liu-shui-hao')}:{data.id}
|
|
|
</Text>
|
|
|
</Div>
|
|
|
<Button
|
|
|
@@ -163,7 +163,7 @@ export default function OrderDetailScreen({
|
|
|
disabled={statusInfo.status != 0}
|
|
|
onPress={orderChange}
|
|
|
>
|
|
|
- 我已到店
|
|
|
+ {t('wo-yi-dao-dian')}
|
|
|
</Button>
|
|
|
</Div>
|
|
|
|
|
|
@@ -171,13 +171,13 @@ export default function OrderDetailScreen({
|
|
|
<>
|
|
|
<Div row py={10}>
|
|
|
<Div flex={1}>
|
|
|
- <Text>我已取货</Text>
|
|
|
+ <Text>{t('wo-yi-qu-huo')}</Text>
|
|
|
<Text fontSize="sm" color="gray600" mt={2} pr={48}>
|
|
|
- 为避免货物纠纷,请在取货时 检查并拍照存证
|
|
|
+ {t('ordertips')}
|
|
|
</Text>
|
|
|
</Div>
|
|
|
<Button bg="yellow500" w={112} onPress={orderChange}>
|
|
|
- 拍照取货
|
|
|
+ {t('pai-zhao-qu-huo')}
|
|
|
</Button>
|
|
|
</Div>
|
|
|
<ImagePicker
|
|
|
@@ -190,7 +190,7 @@ export default function OrderDetailScreen({
|
|
|
)}
|
|
|
{(statusInfo.type === 'user' || statusInfo.type === 'finish') && (
|
|
|
<Div py={10}>
|
|
|
- <Text fontSize="sm">用户信息</Text>
|
|
|
+ <Text fontSize="sm">{t('yong-hu-xin-xi')}</Text>
|
|
|
<Div px={10} mt={10}>
|
|
|
<Text fontSize="xl" fontWeight="bold">
|
|
|
{data.nickname}
|
|
|
@@ -217,7 +217,7 @@ export default function OrderDetailScreen({
|
|
|
});
|
|
|
}}
|
|
|
>
|
|
|
- 联系客户
|
|
|
+ {t('lian-xi-ke-hu')}
|
|
|
</Button>
|
|
|
</Div>
|
|
|
)}
|
|
|
@@ -225,7 +225,7 @@ export default function OrderDetailScreen({
|
|
|
{(statusInfo.type === 'merchant' ||
|
|
|
statusInfo.type === 'finish') && (
|
|
|
<Div borderTopColor="gray100" borderTopWidth={1} py={10}>
|
|
|
- <Text fontSize="sm">商家信息</Text>
|
|
|
+ <Text fontSize="sm">{t('shang-jia-xin-xi')}</Text>
|
|
|
<Div px={10} mt={10}>
|
|
|
<Text fontSize="xl" fontWeight="bold">
|
|
|
{data.merShowName}
|
|
|
@@ -252,7 +252,7 @@ export default function OrderDetailScreen({
|
|
|
});
|
|
|
}}
|
|
|
>
|
|
|
- 联系商家
|
|
|
+ {t('lian-xi-shang-jia')}
|
|
|
</Button>
|
|
|
</Div>
|
|
|
)}
|
|
|
@@ -288,10 +288,11 @@ export default function OrderDetailScreen({
|
|
|
<Div borderTopColor="gray100" borderTopWidth={1} py={10}>
|
|
|
<Div row>
|
|
|
<Text fontSize="sm" flex={2}>
|
|
|
- 商品信息
|
|
|
+ {t('shang-pin-xin-xi')}
|
|
|
</Text>
|
|
|
<Text fontSize="sm" flex={1} textAlign="right">
|
|
|
- {totalNum}份
|
|
|
+ {totalNum}
|
|
|
+ {t('fen')}
|
|
|
</Text>
|
|
|
<Text fontSize="sm" flex={1} color="red500" textAlign="right">
|
|
|
¥{data.totalAmount || 0}
|
|
|
@@ -324,17 +325,17 @@ export default function OrderDetailScreen({
|
|
|
my={10}
|
|
|
onPress={() => {
|
|
|
receiverOrder(data.id, (res) => {
|
|
|
- toastSuccess('接单成功');
|
|
|
+ toastSuccess(t('jie-dan-cheng-gong'));
|
|
|
});
|
|
|
}}
|
|
|
>
|
|
|
- 接单
|
|
|
+ {t('jie-dan')}
|
|
|
</Button>
|
|
|
)}
|
|
|
</Div>
|
|
|
{(statusInfo.type === 'merchant' || statusInfo.type === 'user') && (
|
|
|
<Button block mx={15} my={10} bg="yellow500">
|
|
|
- 查看导航
|
|
|
+ {t('cha-kan-dao-hang')}
|
|
|
</Button>
|
|
|
)}
|
|
|
</>
|