|
@@ -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">
|