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
ceb9aa69
Commit
ceb9aa69
authored
Aug 27, 2020
by
李硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择宝贝为20个时无法取消
parent
2000cfcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
items-dialog.js
client/components/dialog/items-dialog/items-dialog.js
+7
-9
No files found.
client/components/dialog/items-dialog/items-dialog.js
View file @
ceb9aa69
...
@@ -114,7 +114,12 @@ Component({
...
@@ -114,7 +114,12 @@ Component({
},
},
changeCheckStatus
(
e
)
{
changeCheckStatus
(
e
)
{
const
{
chooseId
}
=
this
.
data
;
const
{
chooseId
}
=
this
.
data
;
const
{
item
}
=
e
.
target
.
dataset
;
if
(
chooseId
.
includes
(
item
.
itemId
))
{
this
.
setData
({
chooseId
:
chooseId
.
filter
(
v
=>
v
!==
item
.
itemId
),
});
}
else
{
if
(
chooseId
.
length
>=
20
)
{
if
(
chooseId
.
length
>=
20
)
{
my
.
showToast
({
my
.
showToast
({
type
:
"fail"
,
type
:
"fail"
,
...
@@ -122,13 +127,6 @@ Component({
...
@@ -122,13 +127,6 @@ Component({
});
});
return
;
return
;
}
}
const
{
item
}
=
e
.
target
.
dataset
;
if
(
chooseId
.
includes
(
item
.
itemId
))
{
this
.
setData
({
chooseId
:
chooseId
.
filter
(
v
=>
v
!==
item
.
itemId
),
});
}
else
{
this
.
setData
({
this
.
setData
({
chooseId
:
[...
chooseId
,
item
.
itemId
],
chooseId
:
[...
chooseId
,
item
.
itemId
],
});
});
...
...
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