| | |
| | | <template> |
| | | <div> |
| | | <div class="text--right mb-10" @click="showNotificationHint = true"> |
| | | <i class="satisfaction-icon icon-edit"></i> |
| | | </div> |
| | | <div |
| | | v-if="isUserLogin && unReviewLogList.length" |
| | | class="satisfaction-banner my-10 cursor--pointer" |
| | |
| | | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <PopUpFrame |
| | | :isOpen.sync="showNotificationHint" |
| | | > |
| | | <div class="text--center mdTxt"> |
| | | <p class="mb-30">通知</p> |
| | | <div class="mb-20 cursor--pointer">全部已讀</div> |
| | | <div class="cursor--pointer">全部刪除</div> |
| | | <div class="text--center mt-30"> |
| | | <el-button |
| | | type="primary" |
| | | @click="showNotificationHint = false" |
| | | >確定</el-button> |
| | | </div> |
| | | </div> |
| | | </PopUpFrame> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { AppointmentLog } from "~/shared/models/appointment.model"; |
| | | import { NotificationList } from "~/shared/models/reviews.model"; |
| | | import authService from "~/shared/services/auth.service"; |
| | | import reviewsService from "~/shared/services/reviews.service"; |
| | | |
| | | @Component |
| | | export default class Notification extends Vue { |
| | |
| | | @State |
| | | notificationList!: NotificationList[]; |
| | | |
| | | showNotificationHint = false; |
| | | isUserLogin = false; |
| | | |
| | | //////////////////////////////////////////////////////////// |
| | | |
| | | mounted() { |
| | | this.isUserLogin = authService.isUserLogin(); |
| | | reviewsService.readAllMyNotification().then(res => res); |
| | | } |
| | | |
| | | } |
| | |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 50px; |
| | | background-color: $YELLOW; |
| | | background-color: $PRIMARY_RED; |
| | | } |
| | | |
| | | .notification-period { |