Commit 3750ed22 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

feat: 修改参数配置 运费相关正则表达式

parent b7a3f3ce
......@@ -564,7 +564,7 @@ const ParameterSetting: React.FC<{}> = () => {
>
{({ getFieldValue }) => getFieldValue('status') && (
<Space>
<Form.Item label={intl.formatMessage({ id: 'systemSetting.dingdanjineman', defaultMessage: '订单金额满' })} name='orderAmount' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurudingdanjineman', defaultMessage: '请输入订单金额满' }) }, {pattern: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/ , message: intl.formatMessage({ id: 'systemSetting.dingdanjinemanbixuda', defaultMessage: '订单金额满必须大于0,最多保留2位小数' })}]}>
<Form.Item label={intl.formatMessage({ id: 'systemSetting.dingdanjineman', defaultMessage: '订单金额满' })} name='orderAmount' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurudingdanjineman', defaultMessage: '请输入订单金额满' }) }, {pattern: /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/ , message: intl.formatMessage({ id: 'systemSetting.dingdanjinemanbixuda', defaultMessage: '订单金额满必须大于0,最多保留2位小数' })}]}>
<Input addonBefore={intl.formatMessage({id: 'common.money', defaultMessage: '¥'})} />
</Form.Item>
<div style={{ marginBottom: '24px', color: '#909399' }}>{intl.formatMessage({ id: 'systemSetting.yuanmianyunfei', defaultMessage: '元免运费' })}</div>
......
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