Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
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
wangxuelai
biz.qingxiao.com
Commits
cf99d9e8
Commit
cf99d9e8
authored
Sep 03, 2019
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分管理
parent
6c9749d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
index.js
src/pages/integralmanage/integralsetting/index.js
+16
-4
index.js
src/pages/integralmanage/storesetting/index.js
+3
-0
No files found.
src/pages/integralmanage/integralsetting/index.js
View file @
cf99d9e8
...
...
@@ -14,10 +14,19 @@ class Integralsetting extends React.Component {
this
.
props
.
form
.
validateFields
((
err
,
values
)
=>
{
if
(
!
err
)
{
const
params
=
[];
// eslint-disable-next-line no-empty
for
(
let
i
=
0
;
i
<
values
;
i
++
)
{
const
arr
=
Object
.
keys
(
values
).
length
;
const
obj
=
{};
for
(
let
i
=
1
;
i
<=
arr
;
i
++
)
{
const
value
=
`daily_limit
${
i
}
`
;
const
value1
=
`single
${
i
}
`
;
if
(
values
[
value
])
{
obj
[
i
]
=
{
daily_limit
:
values
[
value
],
single
:
values
[
value1
],
};
}
}
console
.
log
(
'Received values of form: '
,
values
);
console
.
log
(
'Received values of form: '
,
obj
);
}
});
}
...
...
@@ -27,6 +36,9 @@ class Integralsetting extends React.Component {
onChange
=
(
value
)
=>
{
console
.
log
(
value
);
}
onChangeNumber
=
(
value
)
=>
{
console
.
log
(
value
);
}
render
()
{
const
{
staticcenter
,
...
...
@@ -64,7 +76,7 @@ class Integralsetting extends React.Component {
每日打卡
<
span
className
=
{
pageStyle
.
checkboxTip
}
>
(
学员每日登录打卡
)
<
/span
>
<
/div
>
<
div
className
=
{
pageStyle
.
formItem
}
>
<
Form
.
Item
className
=
{
pageStyle
.
formflex
}
label
=
"获得"
>
{
getFieldDecorator
(
'single1'
,
{
initialValue
:
2
})(
<
InputNumber
style
=
{{
width
:
90
}}
min
=
{
0
}
/>
)
}
<
Form
.
Item
className
=
{
pageStyle
.
formflex
}
label
=
"获得"
>
{
getFieldDecorator
(
'single1'
,
{
initialValue
:
2
})(
<
InputNumber
onChange
=
{
this
.
onChangeNumber
}
style
=
{{
width
:
90
}}
min
=
{
0
}
/>
)
}
<
span
className
=
"ant-form-text"
>
积分
<
/span
>
<
/Form.Item
>
<
Form
.
Item
className
=
{
pageStyle
.
formflex
}
label
=
"每日"
>
...
...
src/pages/integralmanage/storesetting/index.js
View file @
cf99d9e8
...
...
@@ -114,6 +114,9 @@ class StoreMgt extends React.Component {
}
editCoupon
=
(
record
)
=>
{
const
{
dispatch
}
=
this
.
props
;
this
.
setState
({
isEdit
:
1
,
});
dispatch
({
type
:
'integral/integralModelGoodEdit'
,
payload
:
{
...
...
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