Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
9d3caf16
Commit
9d3caf16
authored
Feb 04, 2021
by
王波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
f339cbf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
probability-prize-table.js
.../prize/probability-prize-table/probability-prize-table.js
+4
-4
No files found.
client/components/prize/probability-prize-table/probability-prize-table.js
View file @
9d3caf16
...
@@ -29,8 +29,8 @@ Component({
...
@@ -29,8 +29,8 @@ Component({
up
(
e
)
{
up
(
e
)
{
const
index
=
e
.
target
.
dataset
.
idx
;
const
index
=
e
.
target
.
dataset
.
idx
;
const
{
onChange
,
list
,
dataName
}
=
this
.
props
;
const
{
onChange
,
list
,
dataName
}
=
this
.
props
;
const
upPrize
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
index
-
1
]))
const
upPrize
=
list
[
index
-
1
]
const
nowPrize
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
index
]))
const
nowPrize
=
list
[
index
]
list
[
index
-
1
]
=
nowPrize
list
[
index
-
1
]
=
nowPrize
list
[
index
]
=
upPrize
list
[
index
]
=
upPrize
onChange
&&
onChange
(
list
,
dataName
);
onChange
&&
onChange
(
list
,
dataName
);
...
@@ -39,8 +39,8 @@ Component({
...
@@ -39,8 +39,8 @@ Component({
down
(
e
)
{
down
(
e
)
{
const
index
=
e
.
target
.
dataset
.
idx
;
const
index
=
e
.
target
.
dataset
.
idx
;
const
{
onChange
,
list
,
dataName
}
=
this
.
props
;
const
{
onChange
,
list
,
dataName
}
=
this
.
props
;
const
downPrize
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
index
+
1
]))
const
downPrize
=
list
[
index
+
1
]
const
nowPrize
=
JSON
.
parse
(
JSON
.
stringify
(
list
[
index
]))
const
nowPrize
=
list
[
index
]
list
[
index
+
1
]
=
nowPrize
list
[
index
+
1
]
=
nowPrize
list
[
index
]
=
downPrize
list
[
index
]
=
downPrize
onChange
&&
onChange
(
list
,
dataName
);
onChange
&&
onChange
(
list
,
dataName
);
...
...
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