| | |
| | | <div class="pb-10 mdTxt">顧問性別</div> |
| | | <SingleSelectBtn :singleSelected.sync="strictQueryDto.gender" :options="genderOptions"/> |
| | | <div class="pam-paragraph"> |
| | | <div class="pb-10 mdTxt required">顧問所在地區</div> |
| | | <div class="job-pick cursor--pointer" |
| | | <div class="pb-10 mdTxt required">顧問服務地區</div> |
| | | <div class="job-pick" |
| | | @click="showAddress = true"> |
| | | <input class="text--middle input cursor--pointer pl-10" |
| | | <input class="text--middle cursor--pointer input pl-10" |
| | | :value="strictQueryDto.area" |
| | | placeholder="請選擇"> |
| | | placeholder="請選擇" |
| | | readonly> |
| | | <i class="icon-down down-icon"></i> |
| | | </div> |
| | | <PopUpFrame :isOpen.sync="showAddress" |
| | | :drawerSize="'65%'"> |
| | | > |
| | | <AddressPicker |
| | | @confirm="confirmAddress" /> |
| | | </PopUpFrame> |
| | |
| | | <div class="pb-10 mdTxt">顧問年資</div> |
| | | <SingleSelectBtn :singleSelected.sync="strictQueryDto.seniority" :options="seniorityOptions"/> |
| | | </div> |
| | | <div class="pam-paragraph"> |
| | | <div class="pb-10 mdTxt">保險顧問滿意度</div> |
| | | <!-- <div class="pam-paragraph"> |
| | | TODO:隱藏滿意度 |
| | | <div class="pb-10 mdTxt">顧問滿意度</div> |
| | | <el-rate class="pam-consultant-rate" v-model="strictQueryDto.avgScore"> |
| | | </el-rate> |
| | | </div> |
| | | </div> --> |
| | | <div class="pam-paragraph"> |
| | | <div class="rec-popular"> |
| | | <div class="pb-10 mdTxt">熱門檢索</div> |
| | |
| | | </div> |
| | | |
| | | <PopUpFrame :isOpen.sync="showDialog" |
| | | :drawerSize=" '95%' "> |
| | | > |
| | | <div class="qaTextTitle mdTxt"> |
| | | <strong>想要詢問的問題</strong> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="text--center mdTxt mt-30 mb-30"> |
| | | <div class="text--center mdTxt mt-30"> |
| | | <el-button type="primary" @click="showDialog = false">我知道了</el-button> |
| | | </div> |
| | | </PopUpFrame> |
| | |
| | | </PopUpFrame> |
| | | </div> |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { |
| | | Vue, |
| | | Component, |
| | | Mutation, |
| | | namespace |
| | | namespace, |
| | | Action, |
| | | State |
| | | } from 'nuxt-property-decorator'; |
| | | import * as _ from 'lodash'; |
| | | import { strictQuery } from '~/assets/ts/api/consultant'; |
| | | import { Seniority } from '~/shared/models/enum/seniority'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | |
| | |
| | | { |
| | | title:'不限', |
| | | subTitle:'年齡不是問題', |
| | | label:'不限', |
| | | label:Seniority.UNLIMITED, |
| | | }, |
| | | { |
| | | title:'年輕', |
| | | subTitle:'給年輕人一個機會', |
| | | label:'年輕', |
| | | label:Seniority.YOUNG, |
| | | }, |
| | | { |
| | | title:'資深', |
| | | subTitle:'薑是老的辣', |
| | | label:'資深', |
| | | label:Seniority.SENIOR, |
| | | } |
| | | ]; |
| | | popularOptions=[ |
| | |
| | | }, |
| | | { |
| | | title: '分紅保單', |
| | | content: '分紅保單 分紅保單是兼具「分攤風險」與「紅利共享」特色的保單,具有一定穩定度,讓你可以同時享有壽險保障及紅利!' |
| | | content: '分紅保單是兼具「分攤風險」與「紅利共享」特色的保單,具有一定穩定度,讓你可以同時享有壽險保障及紅利!' |
| | | } |
| | | ]; |
| | | showDialog = false; |
| | | showAddress = false; |
| | | |
| | | @Mutation updateStrictQueryList!: (data: any) => void; |
| | | @localStorage.Mutation storageRecommendConsultant!: (data: any) => void; |
| | | @Action storeStrictQueryList!: (data: any) => Promise<number>; |
| | | @State strictQueryList!: any; |
| | | @localStorage.State recommendConsultantItem!: string; |
| | | |
| | | mounted() { |
| | |
| | | this.strictQueryDto = JSON.parse(this.recommendConsultantItem); |
| | | } |
| | | } |
| | | makePair():void{ |
| | | strictQuery(this.strictQueryDto).then(res=>{ |
| | | console.log('resultData',res.data); |
| | | this.storageRecommendConsultant(JSON.stringify(this.strictQueryDto)); |
| | | this.updateStrictQueryList(res.data); |
| | | if (res.data.length === 0) { |
| | | async makePair() { |
| | | await this.storeStrictQueryList(this.strictQueryDto).then(dataLength => { |
| | | if (dataLength === 0) { |
| | | this.isVisiblePopUp = true; |
| | | return; |
| | | } |
| | |
| | | |
| | | .qa-dialog { |
| | | overflow-y: auto; |
| | | height: 500px; |
| | | height: 60vh; |
| | | margin-top: 20px; |
| | | text-align: justify; |
| | | } |