| | |
| | | import { useStatistic } from './statistic-proxy.js'; |
| | | import { useTasks } from './tasks-proxy.js'; |
| | | |
| | | import clueApi from '../../../services/clue/fetchClue'; |
| | | import { fetchClueTask } from '../../../services/clue/fetchClue'; |
| | | |
| | | const app = getApp(); |
| | | |
| | |
| | | onLoad(options) {}, |
| | | |
| | | onShow() { |
| | | this.getTabBar().init(); |
| | | if (this.getTabBar()) { |
| | | this.getTabBar().init(); |
| | | } |
| | | this.refresh(); |
| | | }, |
| | | |
| | | onPullDownRefresh() { |
| | |
| | | optionsCount: 0, |
| | | init() { |
| | | this.optionsCount++; |
| | | if (this.optionsCount == 2) this._startLoad(); |
| | | this.refresh(); |
| | | }, |
| | | |
| | | refresh() { |
| | | this._startLoad(); |
| | | }, |
| | | |
| | | _fetchData(page) { |
| | | return clueApi.fetchClueTask({}).then(res => { |
| | | return fetchClueTask({}).then(res => { |
| | | this.setData({ clueTaskList: res.data }); |
| | | this.calClueCount(); |
| | | this.formatClueTask(); |