wuhongyu 4 years ago
parent
commit
4a190c8d52
2 changed files with 5 additions and 4 deletions
  1. 1 0
      src/layout/market/context.vue
  2. 4 4
      src/views/market/index.vue

+ 1 - 0
src/layout/market/context.vue

@@ -120,6 +120,7 @@
           </p>
         </div> -->
         <!-- <el-col :span="24"></el-col> -->
+        <div></div>
         <div>
           <p>服务范围:</p>
           <p class="moreScope" v-if="scope != ''">{{ detailInfo.scope || '暂无' }}</p>

+ 4 - 4
src/views/market/index.vue

@@ -44,7 +44,7 @@
           </el-col>
           <el-col :span="12" class="productList" v-for="(item, index) in productList" :key="index" @click.native="productDetail(item.id)">
             <!-- <el-image :src="item.image[0].url"></el-image> -->
-            <template v-if="item.image">
+            <template v-if="item.image.length">
               <el-image :src="item.image[0].url"></el-image>
             </template>
             <template v-else>暂无图片</template>
@@ -91,7 +91,7 @@
             <el-col :span="24" class="downLeftInfo">
               <el-col :span="24" class="bankingList" v-for="(item, index) in serviceList" :key="index" @click.native="serviceDetail(item.id)">
                 <el-col :span="10">
-                  <template v-if="item.image">
+                  <template v-if="item.image.length">
                     <el-image :src="item.image[0].url"></el-image>
                   </template>
                   <template v-else>暂无图片</template>
@@ -210,10 +210,10 @@ export default {
       this.$router.push({ path: '/market/marketlists', query: { totaltype: 0, id: id, display: 2, column_name: '技术供求' } });
     },
     toServiceList() {
-      this.$router.push({ path: '/market/marketlists', query: { totaltype: 2, column_name: '技术供求', display: 1 } });
+      this.$router.push({ path: '/market/marketlists', query: { totaltype: 2, column_name: '服务供求', display: 1 } });
     },
     serviceDetail(id) {
-      this.$router.push({ path: '/market/marketlists', query: { totaltype: 2, id: id, display: 2, column_name: '技术供求' } });
+      this.$router.push({ path: '/market/marketlists', query: { totaltype: 2, id: id, display: 2, column_name: '服务供求' } });
     },
     zhuanjia() {
       this.$router.push({ path: '/market/marketlists', query: { column_name: '专家供求', display: 1 } });