Commit 79b410e3 authored by XieZhiXiong's avatar XieZhiXiong

feat: 完成售后已使用的常量 CN国际化

parent f3381e48
import { getIntl } from 'umi';
const intl = getIntl();
/**
* ****售后能力 相关常量****
*/
......@@ -577,9 +581,9 @@ export const RETURN_OUTER_STATUS = {
export const DELIVERY_TYPE_ENUM = [
{ label: '物流', value: 1 },
{ label: '自提', value: 2 },
{ label: '无需配送', value: 3 },
{ label: intl.formatMessage({ id: 'afterService.constants.DELIVERY_TYPE_ENUM_1' }, { default: '物流' }), value: 1 },
{ label: intl.formatMessage({ id: 'afterService.constants.DELIVERY_TYPE_ENUM_2' }, { default: '自提' }), value: 2 },
{ label: intl.formatMessage({ id: 'afterService.constants.DELIVERY_TYPE_ENUM_3' }, { default: '无需配送' }), value: 3 },
]
export default {
'afterService.constants.DELIVERY_TYPE_ENUM_1': '物流',
'afterService.constants.DELIVERY_TYPE_ENUM_2': '自提',
'afterService.constants.DELIVERY_TYPE_ENUM_3': '无需配送',
}
\ No newline at end of file
......@@ -6,6 +6,7 @@ import exchangeManage from './exchangeManage';
import repairApplication from './repairApplication';
import repairManage from './repairManage';
import components from './components';
import constants from './constants';
export default {
...common,
......@@ -16,4 +17,5 @@ export default {
...repairApplication,
...repairManage,
...components,
...constants,
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment