保誠-保戶業務員媒合平台
fixed TODO#131354 未登入狀態點選進行預約, 登入成功後跳轉回進行預約畫面
修改1個檔案
7 ■■■■ 已變更過的檔案
PAMapp/components/Consultant/ConsultantCard.vue 7 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/Consultant/ConsultantCard.vue
@@ -127,7 +127,7 @@
</template>
<script lang="ts">
import { Vue, Component, Prop, Action, namespace, State } from 'nuxt-property-decorator';
import { Vue, Component, Prop, Action, namespace } from 'nuxt-property-decorator';
import appointmentService from '~/assets/ts/services/appointment.service';
import { isMobileDevice } from '~/assets/ts/device';
@@ -135,7 +135,6 @@
import { UserReviewsConsultantsParams, userReviewsConsultants } from '~/assets/ts/api/consultant';
import { Consultant, ConsultantWithAppointmentId } from '~/assets/ts/models/consultant.model';
import { Appointment } from '~/assets/ts/models/appointment.model';
import { Role } from '~/assets/ts/models/enum/role';
const localStorage = namespace('localStorage');
@Component({
@@ -317,9 +316,7 @@
      const isAppointment = !!this.agentInfo['appointmentStatus'];
      const contactStatus = this.agentInfo.contactStatus;
        if (!isAppointment && (!contactStatus || contactStatus === 'picked')) {
            this.currentRole === Role.USER
                ? this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`)
                : this.$router.push('/login');
            this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`);
        } else {
            this.openPopUp();
        }