Bläddra i källkod

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

lifanagju_citu 6 månader sedan
förälder
incheckning
2e6c343a0b

+ 7 - 1
src/views/login/index.vue

@@ -6,7 +6,13 @@
           <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>
+                <v-img :src="item.src" :lazy-src="item.src" cover style="height: 100%; overflow: hidden;">
+                  <template v-slot:placeholder>
+                    <v-row align="center" class="fill-height ma-0" justify="center">
+                      <v-progress-circular color="grey-lighten-5" indeterminate></v-progress-circular>
+                    </v-row>
+                  </template>
+                </v-img>
               </div>
             </v-carousel-item>
           </v-carousel>

+ 7 - 1
src/views/recruit/personal/home/components/homeJobTypeCard/index.vue

@@ -57,7 +57,13 @@
       <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>
+            <v-img :src="item.src" :lazy-src="item.src" cover style="height: 100%; overflow: hidden;">
+              <template v-slot:placeholder>
+                <v-row align="center" class="fill-height ma-0" justify="center">
+                  <v-progress-circular color="grey-lighten-5" indeterminate></v-progress-circular>
+                </v-row>
+              </template>
+            </v-img>
           </div>
         </v-carousel-item>
       </v-carousel>