Browse Source

先收工

master
maochaoying 2 years ago
parent
commit
061985174b
  1. 4
      src/assets/scss/globalVar.scss
  2. 16
      src/components/Bottom.vue
  3. 15
      src/components/SubNavigation.vue
  4. 4
      src/components/Swiper.vue
  5. 2
      src/pages/Company.vue
  6. 8
      src/pages/index.vue

4
src/assets/scss/globalVar.scss

@ -1 +1,3 @@
$bg-color: #1989fa;
$bg-color: #1989fa;
$bottom-height: 38px;
$sub-header-height: 47px;

16
src/components/Bottom.vue

@ -0,0 +1,16 @@
<template>
<div class="bottom_container">bottom</div>
</template>
<script setup></script>
<style lang="scss" scoped>
.bottom_container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: $bottom-height;
background: #283fe7;
}
</style>

15
src/components/SubNavigation.vue

@ -0,0 +1,15 @@
<template>
<div class="sub_navigation_container">sub</div>
</template>
<script setup></script>
<style lang="scss" scoped>
.sub_navigation_container {
height: $sub-header-height;
background: #efefef;
display: flex;
align-items: center;
justify-content: space-between;
}
</style>

4
src/components/Swiper.vue

@ -21,12 +21,8 @@
</template>
<script setup>
// Import Swiper Vue.js components
import { Swiper, SwiperSlide } from 'swiper/vue'
// Import Swiper styles
import 'swiper/css'
import 'swiper/css/pagination'
import 'swiper/css/navigation'
import { Pagination, Navigation } from 'swiper'

2
src/pages/Company.vue

@ -1,5 +1,6 @@
<template>
<div class="company_container">
<SubNavigation />
<AboutUs />
<div class="video_container">
<video
@ -29,6 +30,7 @@ import Movie from '@/static/video/a.mp4'
import DesignConcept from 'cpns/DesignConcept'
import Cooperation from 'cpns/Cooperation'
import QRCode from 'cpns/QRCode'
import SubNavigation from 'cpns/SubNavigation'
const video = ref(null)
const maskShow = ref(true)
const playVideo = () => {

8
src/pages/index.vue

@ -10,6 +10,7 @@
<News />
<Cooperation />
<Awards />
<Bottom />
</div>
</template>
@ -24,6 +25,11 @@ import OneStop from 'cpns/OneStop'
import News from 'cpns/News'
import Cooperation from 'cpns/Cooperation'
import Awards from 'cpns/Awards'
import Bottom from 'cpns/Bottom'
</script>
<style></style>
<style lang="scss" scoped>
.home_container {
margin-bottom: $bottom-height;
}
</style>
Loading…
Cancel
Save