Commit 0899267b authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents ecce3ff3 144f0d5b
......@@ -418,7 +418,6 @@ export const marketingConfig_11 = {
canEdit: true,
canHide: false,
componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: {
type: 8,
},
......
......@@ -294,7 +294,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name={['activityDefined', 'restrictPrice']}
rules={[{
required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/;
const pattern = /^[1-9]\d*$/;
if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseAmountBargaining' })}`));
}
......@@ -648,7 +648,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue={1}
rules={[{
required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/;
const pattern = /^[1-9]\d*$/;
if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseTuxedoNumber'})}`));
}
......@@ -815,7 +815,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name={['activityDefined', 'integral']}
rules={[{
required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/;
const pattern = /^[1-9]\d*$/;
if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheConsumptionPoints' })}`));
}
......@@ -869,7 +869,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue={1}
rules={[{
required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/;
const pattern = /^[1-9]\d*$/;
if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseNumberLottery' })}`));
}
......
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