| | |
| | | import { Module, VuexModule, Mutation, Action } from 'vuex-module-decorators' |
| | | import { ClientInfo, getMyAppointmentList } from '~/assets/ts/api/appointment'; |
| | | import { allAppointmentsView, ClientInfo, getMyAppointmentList } from '~/assets/ts/api/appointment'; |
| | | // import * as consultant from '~/assets/ts/api/consultant'; |
| | | import { Consultants,recommend,AgentOfStrictQuery, getFavoriteConsultant, addFavoriteConsultant, deleteConsultant, strictQuery } from '~/assets/ts/api/consultant'; |
| | | import { isLogin } from '~/assets/ts/auth'; |
| | |
| | | } |
| | | |
| | | @Action |
| | | storeMyAppointmentList() { |
| | | getMyAppointmentList().then((data) => { |
| | | this.context.commit('updateMyAppointmentList', data) |
| | | async storeMyAppointmentList() { |
| | | return await getMyAppointmentList().then((data) => { |
| | | this.context.commit('updateMyAppointmentList', data); |
| | | return data.filter(item => !item.consultantViewTime || item.consultantViewTime === null).length |
| | | }); |
| | | } |
| | | |