update#132068: 嚴選配對篩選後,進行預約,想要詢問的問題等沒有自動帶入
| | |
| | | |
| | | alertFieldInfo(field: string): void { |
| | | this.isAlertFieldInfo = true; |
| | | console.log(field); |
| | | switch(field) { |
| | | case 'suitability': |
| | | this.fieldInfoTitle = '匹配度'; |
| | |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, namespace } from 'nuxt-property-decorator'; |
| | | import { Vue, Component } from 'nuxt-property-decorator'; |
| | | import { addFavoriteConsultant, appointmentDemand, AppointmentParams, AppointmentRequests ,RegisterInfo } from '~/assets/ts/api/consultant'; |
| | | import { getRequestsFromStorage, setRequestsToStorage } from '~/assets/ts/storageRequests'; |
| | | import { getRequestsFromStorage, setRequestsToStorage, getRequestQuestionFromStorage, removeRequestQuestionFromStorage } from '~/assets/ts/storageRequests'; |
| | | import { Gender } from '~/assets/ts/models/enum/Gender'; |
| | | import { ContactType } from '~/assets/ts/models/enum/ContactType'; |
| | | import _ from 'lodash'; |
| | |
| | | label:'保單健檢/規劃', |
| | | }, |
| | | { |
| | | title:'分紅保單相關', |
| | | label:'分紅保單相關', |
| | | title:'分紅保單', |
| | | label:'分紅保單', |
| | | }, |
| | | ]; |
| | | |
| | |
| | | showDrawer= false; |
| | | sendReserve = false; |
| | | |
| | | beforeRouteEnter (to, from, next) { |
| | | beforeRouteEnter(to: any, from: any, next: any) { |
| | | next(vm => { |
| | | if (from.name === 'login' && !isLogin()) { |
| | | vm.$router.go(-1); |
| | |
| | | } |
| | | }) |
| | | } |
| | | mounted() { |
| | | |
| | | mounted(): void { |
| | | this.setMyRequest(); |
| | | } |
| | | |
| | | private setMyRequest(): void { |
| | | const storageMyRequest = getRequestsFromStorage(); |
| | | const storageMyQuestion = getRequestQuestionFromStorage(); |
| | | |
| | | if (storageMyRequest) { |
| | | this.myRequest = { |
| | | ...storageMyRequest, |
| | |
| | | }], |
| | | }; |
| | | } |
| | | |
| | | if (storageMyQuestion) { |
| | | this.myRequest = { |
| | | ...this.myRequest, |
| | | requirement: storageMyQuestion |
| | | } |
| | | removeRequestQuestionFromStorage(); |
| | | } |
| | | } |
| | | |
| | | get phoneValid(): boolean { |
| | |
| | | </PopUpFrame> |
| | | </div> |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { |
| | | Vue, |
| | |
| | | } from 'nuxt-property-decorator'; |
| | | import * as _ from 'lodash'; |
| | | import { Seniority } from '~/assets/ts/models/enum/seniority'; |
| | | import { setRequestQuestionToStorage } from '~/assets/ts/storageRequests'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | |
| | |
| | | } |
| | | async makePair() { |
| | | await this.storeStrictQueryList(this.strictQueryDto).then(dataLength => { |
| | | const questions = this.strictQueryDto.requirements.length ? this.strictQueryDto.requirements : []; |
| | | setRequestQuestionToStorage(questions); |
| | | if (dataLength === 0) { |
| | | this.isVisiblePopUp = true; |
| | | return; |