YY 2 년 전
부모
커밋
b044b728bb
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/views/selfShop/message/parts/left-1.vue

+ 3 - 3
src/views/selfShop/message/parts/left-1.vue

@@ -7,15 +7,15 @@
             <el-button slot="append" icon="el-icon-search"></el-button>
           </el-input>
         </el-col>
-        <el-col :span="24" class="left_two">
+        <el-col :span="24" class="left_two" v-if="roomList.length != 0">
           <el-col :span="24" v-for="item in roomList" :key="item._id" @click.native="toView(item)" style="cursor: pointer">
             <el-col :span="24" class="left_two_1">
-              <el-col :span="4" class="left_image">
+              <el-col :span="4" class="left_image" v-if="item.customer && item.customer.icon[0].url">
                 <el-image :src="item.customer.icon[0].url" class="left_icon"> </el-image>
               </el-col>
               <el-col :span="20">
                 <el-col :span="24" class="left_time">
-                  <el-col :span="10" style="text-align: left">{{ item.customer.name }}</el-col>
+                  <el-col :span="10" style="text-align: left">{{ item.customer.name || '用户名称' }}</el-col>
                   <el-col :span="14" style="text-align: right">{{ item.last_chat.time }}</el-col>
                 </el-col>
                 <el-col :span="20" class="left_content">