| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <template>
- <header class="cwg-pc-header">
- <div class="left">
- <image class="left-img" src="/static/images/logo.png" mode="widthFix" alt="logo" @click="openLeftDrawer" />
- </div>
- <div class="right">
- <LanguageDropdown />
- <cwg-notice />
- <view class="pc-header-btn">
- <cwg-icon name="icon_my" color="#141d22" @click="openRightDrawer" />
- </view>
- </div>
- </header>
- </template>
- <script setup lang="ts">
- // import useGlobalStore from '@/stores/use-global-store'
- // const globalStore = useGlobalStore()
- import useRouter from "@/hooks/useRouter";
- import LanguageDropdown from "@/components/LanguageDropdown.vue";
- const router = useRouter();
- const props = defineProps({
- sidebarVisible: {
- type: Boolean,
- default: false
- },
- })
- function openRightDrawer() {
- uni.$emit('open-right-drawer')
- }
- </script>
- <style scoped lang="scss">
- .cwg-pc-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: px2rpx(55);
- background-color: rgba(255, 255, 255, 0.9);
- border-bottom: 1px solid #f0f0f0;
- padding: 0 px2rpx(16);
- position: relative;
- z-index: 10;
- }
- .left {
- display: flex;
- align-items: center;
- }
- .center {
- flex: 1;
- }
- .right {
- display: flex;
- align-items: center;
- gap: 0;
- }
- .bell .dot {
- position: absolute;
- top: 0;
- right: -2px;
- width: 7px;
- height: 7px;
- background: #27ae60;
- border-radius: 50%;
- display: inline-block;
- }
- .left-img {
- width: px2rpx(120);
- }
- .avatar .img {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- background: #eee;
- }
- .logo .img {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- background: #fff;
- }
- </style>
|