保誠-保戶業務員媒合平台
Mila
2021-12-02 829c5f83c9e8c9571b38b97c3bc7eff95bcf266d
PAMapp/layouts/default.vue
@@ -1,6 +1,7 @@
<template>
  <div class="pam-background">
    <UiGoToTop></UiGoToTop>
    <NavBar></NavBar>
    <BackActionBar></BackActionBar>
    <div class="pam-banner"
      :class="bannerClassName">
@@ -12,7 +13,10 @@
        </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>
@@ -47,7 +51,7 @@
    // format to {page}-banner or pam-no-banner tag
    private routeFormatBannerClass(route: string): string {
      const needBannerTags = ['recommendConsultant', 'quickFilter', 'myConsultantList-consultantList', 'myConsultantList-contactedList', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList'];
      const needBannerTags = ['recommendConsultant', 'quickFilter', 'myConsultantList-consultantList', 'myConsultantList-contactedList', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'login'];
      return _.includes(needBannerTags, route) ? route + '-banner' : 'pam-no-banner';
    };
@@ -88,7 +92,24 @@
    margin: 30px 20px;
  }
  .pam-banner {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    @extend .mt-navBar;
  }
  .mt-navBar {
    margin-top: calc($MOB_NAV_BAR * 2);
  }
  @include desktop {
    .mt-navBar {
      margin-top: calc($DESKTOP_NAV_BAR + $MOB_NAV_BAR);
    }
    .pam-page-container {
      width: 700px;
      margin: 30px auto 0px auto;
@@ -100,14 +121,7 @@
    }
  }
  .pam-banner {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
  }
  .pam-banner__text {
    font-size: 18px;
@@ -186,15 +200,17 @@
      }
    }
  }
  .myAppointmentList-appointmentList,.myAppointmentList-contactedList{
  .login {
    &-banner {
      background-image: url('~/assets/images/myAppointmentList/agent_banner_mob.svg');
      background-image: url('~/assets/images/login/login_mob.svg');
    }
    @media (min-width: 768px) {
      &-banner {
        background-image: url('~/assets/images/myAppointmentList/agent_banner_web.svg');
        background-image: url('~/assets/images/login/login_web.svg');
      }
    }
  }
</style>