Commit c3066737 authored by qinhaitao's avatar qinhaitao

feat: 🎸 接口格式

parent f02d51b9
...@@ -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)
}) }
})
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment