From d1951b45d8427446ce3cb3b36d3cfb10c7f5c2ee Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 17 十一月 2021 10:30:43 +0800 Subject: [PATCH] update: [註冊新帳戶] 如果沒有閱讀完使用者條款,disable 註冊按鈕、合約條款排版 --- PAMapp/layouts/default.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/PAMapp/layouts/default.vue b/PAMapp/layouts/default.vue index 3c838af..302a1b7 100644 --- a/PAMapp/layouts/default.vue +++ b/PAMapp/layouts/default.vue @@ -36,17 +36,18 @@ 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'; }; @@ -56,7 +57,7 @@ // 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' : ''; }; } @@ -160,7 +161,7 @@ } } - .myConsultantList { + .myConsultantList-consultantList,.myConsultantList-contactedList { &-banner { background-image: url('~/assets/images/myConsultantList/banner_mob.svg'); } @@ -172,7 +173,7 @@ } } - .questionnaire { + .questionnaire-agentNo { &-container { background-image: url('~/assets/images/recommendConsultant/bg_flower_mob.svg'); background-size: contain; @@ -185,4 +186,15 @@ } } } + .myAppointmentList-appointmentList,.myAppointmentList-contactedList{ + &-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> -- Gitblit v1.8.0