From cedd1f296cdb1b14cdb4e7d1c5c080e507c7eeb1 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期四, 23 十二月 2021 09:13:30 +0800 Subject: [PATCH] refactor: layouts/default.vue --- PAMapp/components/Client/ClientCard.vue | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PAMapp/components/Client/ClientCard.vue b/PAMapp/components/Client/ClientCard.vue index 4fca204..e3548a1 100644 --- a/PAMapp/components/Client/ClientCard.vue +++ b/PAMapp/components/Client/ClientCard.vue @@ -96,10 +96,11 @@ <script lang="ts"> import { Vue, Component, Prop, Action } from 'nuxt-property-decorator'; -import appointmentService from '~/assets/ts/services/appointment.service'; -import { isMobileDevice } from '~/assets/ts/device'; -import { hideReviews } from '~/assets/ts/const/hide-reviews'; -import { ClientInfo } from '~/assets/ts/models/client.model'; +import appointmentService from '~/shared/services/appointment.service'; +import UtilsService from '~/shared/services/utils.service'; +import { hideReviews } from '~/shared/const/hide-reviews'; +import { ClientInfo } from '~/shared/models/client.model'; +import myConsultantService from '~/shared/services/my-consultant.service'; @Component({ @@ -193,12 +194,12 @@ } openDetail() { - this.dialogWidth = isMobileDevice() ? '80%' : ''; + this.dialogWidth = UtilsService.isMobileDevice() ? '80%' : ''; this.isVisibleDialog = true; } markAppointment() { - appointmentService.markAsContact(this.client.id).then(data => { + myConsultantService.markAsContact(this.client.id).then(data => { // TODO: 閬敺����� updated client 鞈�� - Ben 2021/11/16 const updatedClient = {...this.client}; updatedClient.communicateStatus = 'contacted'; -- Gitblit v1.8.0