Browse Source

top logo

master
maochaoying 2 years ago
parent
commit
1a8244e99f
  1. 11
      src/components/Swiper.vue
  2. 28
      src/components/Top.vue

11
src/components/Swiper.vue

@ -20,12 +20,14 @@
<div class="summar_wrap">
<Summarize />
</div>
<div class="top_wrap"><Top /></div>
</div>
</template>
<script setup>
import { Swiper, SwiperSlide } from 'swiper/vue'
import Summarize from 'cpns/Summarize'
import Top from 'cpns/Top'
import 'swiper/css'
import 'swiper/css/pagination'
import 'swiper/css/navigation'
@ -49,5 +51,14 @@ const modules = [Pagination, Navigation]
width: 100%;
height: 340px;
}
.top_wrap {
position: absolute;
left: 0;
top: 0;
right: 0;
width: 100%;
height: 47px;
z-index: 200;
}
}
</style>

28
src/components/Top.vue

@ -0,0 +1,28 @@
<template>
<div class="top_container">
<div class="logo_container"></div>
<div class="fold_icon"></div>
</div>
</template>
<script setup></script>
<style lang="scss" scoped>
.top_container {
padding: 14px 18px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
background: #fff;
.logo_container {
display: flex;
align-items: center;
}
.fold_icon {
width: 18px;
height: 12px;
background: #000;
}
}
</style>
Loading…
Cancel
Save