zs 6 months ago
parent
commit
9d62c0ab3c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/detail/serviceDetail.vue

+ 2 - 1
src/views/detail/serviceDetail.vue

@@ -6,7 +6,7 @@
         <div class="info_2">
           <div class="top">
             <div class="info_left">
-              <el-carousel height="260px">
+              <el-carousel height="260px" v-if="info.file && info.file.length > 0">
                 <el-carousel-item v-for="(item, index) in info.file" :key="index">
                   <el-image class="image" :src="getUrl(item.uri)" fit="fill">
                     <template v-slot:error>
@@ -15,6 +15,7 @@
                   </el-image>
                 </el-carousel-item>
               </el-carousel>
+              <el-image v-else class="image" :src="service" fit="fill" />
             </div>
             <div class="info_right">
               <div class="info_title">