top-window.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <header class="cwg-pc-header">
  3. <div class="left">
  4. <image class="left-img" src="/static/images/logo.png" mode="widthFix" alt="logo" @click="openLeftDrawer" />
  5. </div>
  6. <div class="right">
  7. <cwg-payment />
  8. <cwg-system />
  9. <cwg-language />
  10. <cwg-notice />
  11. <cwg-right-drawer />
  12. </div>
  13. </header>
  14. </template>
  15. <script setup lang="ts">
  16. const props = defineProps({
  17. sidebarVisible: {
  18. type: Boolean,
  19. default: false
  20. },
  21. })
  22. </script>
  23. <style scoped lang="scss">
  24. .cwg-pc-header {
  25. display: flex;
  26. align-items: center;
  27. justify-content: space-between;
  28. height: px2rpx(55);
  29. background-color: rgba(255, 255, 255, 0.9);
  30. border-bottom: 1px solid #f0f0f0;
  31. padding: 0 px2rpx(16);
  32. position: relative;
  33. z-index: 10;
  34. }
  35. .left {
  36. display: flex;
  37. align-items: center;
  38. }
  39. .center {
  40. flex: 1;
  41. }
  42. .right {
  43. display: flex;
  44. align-items: center;
  45. gap: 0;
  46. }
  47. .bell .dot {
  48. position: absolute;
  49. top: 0;
  50. right: -2px;
  51. width: 7px;
  52. height: 7px;
  53. background: #27ae60;
  54. border-radius: 50%;
  55. display: inline-block;
  56. }
  57. .left-img {
  58. width: px2rpx(120);
  59. }
  60. .avatar .img {
  61. width: 32px;
  62. height: 32px;
  63. border-radius: 50%;
  64. background: #eee;
  65. }
  66. .logo .img {
  67. width: 36px;
  68. height: 36px;
  69. border-radius: 50%;
  70. background: #fff;
  71. }
  72. </style>