Browse Source

轮播图高度

Xiao_123 1 year ago
parent
commit
e7970d4122

+ 1 - 1
src/layout/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="parent" @click="layoutClick">
     <Headers class="headers"></Headers>
-    <div style="margin-top: 50px;">
+    <div style="margin-top: 50px;" class="default-width">
       <router-view></router-view>
     </div>
     <Footers class="mt-10"></Footers>

+ 1 - 1
src/layout/personal/navBar.vue

@@ -105,7 +105,7 @@ defineProps({
 const localeStore = useLocaleStore()
 
 const list = ref([
-  { text: '首页', path: '/home' },
+  { text: '首页', path: '' },
   { text: '职位', path: '/recruit/position' },
   { text: '公司', path: '' }
 ])

+ 4 - 1
src/views/Home/personal/components/jobTypeCard.vue

@@ -48,7 +48,7 @@
       </div>
     </v-card>
     <v-card height="392px" v-if="!isFloat && !rightObj.show" class="card rightCardBox ml-1">
-      <v-carousel show-arrows="hover" cycle :hide-delimiters="false">
+      <v-carousel show-arrows="hover" cycle>
         <v-carousel-item v-for="(item, i) in carouselList" :key="i">
           <div style="height: 392px; overflow: hidden;">
             <v-img :src="item.src" cover style="height: 100%; overflow: hidden;"></v-img>
@@ -120,6 +120,9 @@ const carouselList = ref([
 </script>
 
 <style lang="scss" scoped>
+:deep(.v-window) {
+  height: 392px !important;
+}
 .floatCard {
   .leftIndexAct { color: var(--v-primary-base); }
   .leftCard {