| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="pam-container" :class="containClassName"> |
| | | <div |
| | | class="pam-container" |
| | | :class="{containClassName, 'mt-navBar': bannerClassName === 'pam-no-banner'}" |
| | | > |
| | | <Nuxt class="pam-page-container"></Nuxt> |
| | | </div> |
| | | <Footer></Footer> |
| | |
| | | return this.bannerTextDto[this.route] ? this.bannerTextDto[this.route] : []; |
| | | }; |
| | | |
| | | get route(): string { |
| | | return _.split(this.$route.name, '-')[0]; |
| | | get route(): string{ |
| | | const routeName = this.$route.name; |
| | | return routeName ? routeName:''; |
| | | }; |
| | | |
| | | get bannerClassName() { |
| | | return this.route ? this.routeFormatBannerClass(this.route) : ''; |
| | | return this.routeFormatBannerClass(this.route); |
| | | }; |
| | | |
| | | // format to {page}-banner or pam-no-banner tag |
| | | private routeFormatBannerClass(route: string): string { |
| | | const needBannerTags = ['recommendConsultant', 'quickFilter', 'myConsultantList']; |
| | | const needBannerTags = ['recommendConsultant', 'quickFilter', 'myConsultantList-consultantList', 'myConsultantList-contactedList', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList']; |
| | | return _.includes(needBannerTags, route) ? route + '-banner' : 'pam-no-banner'; |
| | | }; |
| | | |
| | |
| | | |
| | | // format to {page}-container tag |
| | | private routeFormatContainClass(route: string): string { |
| | | const needContainBgTags = ['recommendConsultant', 'questionnaire']; |
| | | const needContainBgTags = ['recommendConsultant', 'questionnaire-agentNo']; |
| | | return _.includes(needContainBgTags, route) ? route + '-container' : ''; |
| | | }; |
| | | } |
| | |
| | | .pam-page-container { |
| | | width: 700px; |
| | | margin: 30px auto 0px auto; |
| | | overflow-x: hidden; |
| | | } |
| | | .pam-banner__text{ |
| | | width: 700px; |
| | |
| | | background-repeat: no-repeat; |
| | | background-position: center; |
| | | position: relative; |
| | | @extend .mt-navBar; |
| | | } |
| | | |
| | | .mt-navBar { |
| | | margin-top: $MOB_NAV_BAR; |
| | | } |
| | | |
| | | |
| | | .pam-banner__text { |
| | | font-size: 18px; |
| | |
| | | } |
| | | } |
| | | |
| | | .myConsultantList { |
| | | .myConsultantList-consultantList,.myConsultantList-contactedList { |
| | | &-banner { |
| | | background-image: url('~/assets/images/myConsultantList/banner_mob.svg'); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | .questionnaire { |
| | | .questionnaire-agentNo { |
| | | &-container { |
| | | background-image: url('~/assets/images/recommendConsultant/bg_flower_mob.svg'); |
| | | background-size: contain; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | </style> |