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
c3066737
Commit
c3066737
authored
Dec 10, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
接口格式
parent
f02d51b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
task.service.ts
v2.0/src/service/common/task.service.ts
+9
-7
No files found.
v2.0/src/service/common/task.service.ts
View file @
c3066737
...
@@ -135,12 +135,14 @@ export default class TaskService extends UserService {
...
@@ -135,12 +135,14 @@ export default class TaskService extends UserService {
async
getItemListWithCollectStatus
(
list
:
{
list
:
ITaoBaoItems
[]
},
userInfo
:
IUserInfo
)
{
async
getItemListWithCollectStatus
(
list
:
{
list
:
ITaoBaoItems
[]
},
userInfo
:
IUserInfo
)
{
const
{
taskInfo
}
=
getTotalCompleteTask
(
'collectGoods'
,
userInfo
)
const
{
taskInfo
}
=
getTotalCompleteTask
(
'collectGoods'
,
userInfo
)
return
list
.
list
.
map
(
v
=>
{
return
{
return
{
list
:
list
.
list
.
map
(
v
=>
{
...
v
,
return
{
// 完成列表是否含有itemId
...
v
,
collected
:
taskInfo
.
some
(
completeItem
=>
completeItem
.
itemId
===
v
.
itemId
)
// 完成列表是否含有itemId
}
collected
:
taskInfo
.
some
(
completeItem
=>
completeItem
.
itemId
===
v
.
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