| | |
| | | }; |
| | | |
| | | get route(): string { |
| | | return _.split(this.$route.name, '-')[0]; |
| | | 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','myAppointmentList-appointmentList']; |
| | | return _.includes(needBannerTags, route) ? route + '-banner' : 'pam-no-banner'; |
| | | }; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | .myConsultantList { |
| | | .myConsultantList-consultantList { |
| | | &-banner { |
| | | background-image: url('~/assets/images/myConsultantList/banner_mob.svg'); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | .myAppointmentList-appointmentList{ |
| | | &-banner { |
| | | background-image: url('~/assets/images/myAppointmentList/agent_banner_mob.svg'); |
| | | } |
| | | |
| | | @media (min-width: 768px) { |
| | | &-banner { |
| | | background-image: url('~/assets/images/myAppointmentList/agent_banner_web.svg'); |
| | | } |
| | | } |
| | | } |
| | | </style> |