Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
0899267b
Commit
0899267b
authored
Mar 07, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
ecce3ff3
144f0d5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
marketing_config.ts
...pages/mobileTemplate/shopTemplateEdit/marketing_config.ts
+0
-1
index.tsx
...ement/readySubmitExamine/components/rulesLayout/index.tsx
+4
-4
No files found.
src/pages/mobileTemplate/shopTemplateEdit/marketing_config.ts
View file @
0899267b
...
@@ -418,7 +418,6 @@ export const marketingConfig_11 = {
...
@@ -418,7 +418,6 @@ export const marketingConfig_11 = {
canEdit
:
true
,
canEdit
:
true
,
canHide
:
false
,
canHide
:
false
,
componentName
:
'MarketingCard.VerticalContainer'
,
componentName
:
'MarketingCard.VerticalContainer'
,
maxLength
:
3
,
props
:
{
props
:
{
type
:
8
,
type
:
8
,
},
},
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/components/rulesLayout/index.tsx
View file @
0899267b
...
@@ -294,7 +294,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -294,7 +294,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name=
{
[
'activityDefined'
,
'restrictPrice'
]
}
name=
{
[
'activityDefined'
,
'restrictPrice'
]
}
rules=
{
[{
rules=
{
[{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
const
pattern
=
/^
-
?
[
1-9
]\d
*$/
;
const
pattern
=
/^
[
1-9
]\d
*$/
;
if
(
!
value
)
{
if
(
!
value
)
{
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseAmountBargaining' })}`
));
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseAmountBargaining' })}`
));
}
}
...
@@ -648,7 +648,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -648,7 +648,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue={1}
initialValue={1}
rules={[{
rules={[{
required: true, validator: (_rule, value) => {
required: true, validator: (_rule, value) => {
const pattern = /^
-?
[1-9]\d*$/;
const pattern = /^[1-9]\d*$/;
if (!value) {
if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseTuxedoNumber'})}`));
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseTuxedoNumber'})}`));
}
}
...
@@ -815,7 +815,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -815,7 +815,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name=
{
[
'activityDefined'
,
'integral'
]
}
name=
{
[
'activityDefined'
,
'integral'
]
}
rules=
{
[{
rules=
{
[{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
const
pattern
=
/^
-
?
[
1-9
]\d
*$/
;
const
pattern
=
/^
[
1-9
]\d
*$/
;
if
(
!
value
)
{
if
(
!
value
)
{
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheConsumptionPoints' })}`
));
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheConsumptionPoints' })}`
));
}
}
...
@@ -869,7 +869,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -869,7 +869,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue=
{
1
}
initialValue=
{
1
}
rules=
{
[{
rules=
{
[{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
const
pattern
=
/^
-
?
[
1-9
]\d
*$/
;
const
pattern
=
/^
[
1-9
]\d
*$/
;
if
(
!
value
)
{
if
(
!
value
)
{
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseNumberLottery' })}`
));
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseNumberLottery' })}`
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment