| | |
| | | import dataResponseLevel from '../../../common/clue/dataResponseLevel'; |
| | | import dataTravelMode from '../../../common/clue/dataTravelMode'; |
| | | |
| | | import { searchClueTask } from '../../../services/clue/fetchClue'; |
| | | |
| | | |
| | | /** |
| | | * 线索任务列表展示相关逻辑 |
| | | */ |
| | | export const useTasks = Behavior({ |
| | | data: {}, |
| | | methods: { |
| | | searchClueTask(page) { |
| | | const options = this._getOptions() |
| | | options.finished = false |
| | | return searchClueTask(options, page, 30).then(res => { |
| | | this.setData({ clueTaskList: res.data }); |
| | | this.formatClueTask(); |
| | | |
| | | return res.head; |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * 格式化 |
| | | */ |