From f065760fa7df1f88747395ab4b55349ce8b2faf0 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期一, 25 十二月 2023 13:35:43 +0800 Subject: [PATCH] Update#178944: 移除 lodash 套件 --- PAMapp/layouts/default.vue | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/PAMapp/layouts/default.vue b/PAMapp/layouts/default.vue index 0e9d11d..e7d36c1 100644 --- a/PAMapp/layouts/default.vue +++ b/PAMapp/layouts/default.vue @@ -25,7 +25,6 @@ <script lang="ts"> import { Vue, Component } from 'vue-property-decorator'; - import * as _ from 'lodash'; @Component export default class DefaultLayout extends Vue { @@ -52,18 +51,18 @@ // format to {page}-container tag private routeFormatContainClass(route: string): string { const needContainBgRoutes = ['recommendConsultant', 'questionnaire-agentNo']; - return _.includes(needContainBgRoutes, route) ? route + '-container' : ''; + return needContainBgRoutes.includes(route) ? route + '-container' : ''; }; // format to {page}-banner or pam-no-banner tag private routeFormatBannerClass(route: string): string { - const needBannerRoutes = ['recommendConsultant', 'quickFilter', 'myConsultantList-consultantList', 'myConsultantList-contactedList', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'login']; - return _.includes(needBannerRoutes, route) ? route + '-banner' : 'pam-no-banner'; + const needBannerRoutes = ['recommendConsultant', 'quickFilter', 'myConsultantList-consultantList', 'myConsultantList-contactedList', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'login', 'notification']; + return needBannerRoutes.includes(route) ? route + '-banner' : 'pam-no-banner'; }; private bannerText: FeatureBannerTitle= { - [FeaturePage.RECOMMEND_CONSULTANT]: ['頛詨������', '靘����瘙���憿批��'], - [FeaturePage.QUICK_FILTER] : ['暺銝����', '撠���EST Match'], + [FeaturePage.RECOMMEND_CONSULTANT]: ['頛詨�犖��瘙��末', '���敺�澈��銋�憿批��'], + [FeaturePage.QUICK_FILTER] : ['靘�犖��末敹恍����', '��雿��雿喲“���'], [FeaturePage.MY_CONSULTANT_LIST] : [], [FeaturePage.QUESTIONNAIRE] : [], } @@ -114,6 +113,9 @@ } @include desktop { + .pam-banner { + height: 150px; + } .mt-navBar { margin-top: calc($DESKTOP_NAV_BAR + $MOB_NAV_BAR); } @@ -219,4 +221,16 @@ } } + .notification { + &-banner { + background-image: url('~/assets/images/notification/banner_mob.svg'); + } + + @include desktop { + &-banner { + background-image: url('~/assets/images/notification/banner_web.svg'); + } + } + } + </style> -- Gitblit v1.8.0