From 68a06a99b1218f313c7fce2dd6eacd956ebf7a7f Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期日, 20 八月 2023 19:09:43 +0800 Subject: [PATCH] Update: 添加 sandbox 屬性 allow-popups 解決無法開啟原始 Youtube 連結的情形 --- PAMapp/components/NavBar.vue | 49 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 32 insertions(+), 17 deletions(-) diff --git a/PAMapp/components/NavBar.vue b/PAMapp/components/NavBar.vue index 13c53a4..644cf4c 100644 --- a/PAMapp/components/NavBar.vue +++ b/PAMapp/components/NavBar.vue @@ -3,15 +3,18 @@ <div class="pam-header__logo" @click="pushRouterByLoginRole"></div> <div class="pam-header__title"> - <div class="pam-header__title--main">���兢蝳��蜓</div> - <div class="pam-header__title--sub">�����兢蝳�風��</div> + <div class="pam-header__title--main">�憿找�����</div> + <div class="pam-header__title--sub">��������“���</div> </div> <div class="pam-header__action-bar"> <i v-if="isShowNotification" - class="icon-bell text--dark-blue cursor--pointer fix-chrome-click--issue" + class="icon-bell text--dark-blue cursor--pointer" @click="$router.push('/notification')" - ></i> + > + <span :class="{'newNotification': isNewNotification}"></span> + </i> + <el-dropdown :class="{'is-open':isOpenDropdown}" ref="dropdown" trigger="click" @@ -124,7 +127,7 @@ { authorityOfRoleList: [Role.NOT_LOGIN, Role.USER], routeUrl: '/faq', - title: 'F&Q 撣貉����', + title: 'FAQ 撣貉����', }, { authorityOfRoleList: [Role.USER, Role.ADMIN], @@ -142,18 +145,10 @@ @Watch('$route', {immediate: true}) onRouterChange() { - this.getNotificationAndReviewLog(); - } - - private getNotificationAndReviewLog() { - if (this.isUserLogin) { - this.storeMyPersonalNotification(); - this.storeMyAppointmentReviewLog(); - } - - if (this.isAdminLogin) { - this.storeMyPersonalNotification(); - } + if (this.currentRole) { + this.storeMyPersonalNotification(); + this.storeMyAppointmentReviewLog(); + } } ////////////////////////////////////////////////////////////////////// @@ -185,6 +180,12 @@ } if (this.isAdminLogin) { return this.notificationList.length + } + } + + get isNewNotification() { + if (this.currentRole) { + return this.notificationList.filter(item => !item.readDate).length; } } @@ -253,6 +254,7 @@ i { padding: 0px 15px; + @extend .fix-chrome-click--issue; @media screen and (max-width: 352px) { padding: 0px 10px; @@ -265,6 +267,19 @@ margin: 0px 10px; } } + + .icon-bell { + position: relative; + .newNotification { + position: absolute; + width: 10px; + height: 10px; + top: 0; + right: 15px; + border-radius: 50px; + background: $PRIMARY_RED; + } + } } } -- Gitblit v1.8.0