|
@@ -10,12 +10,21 @@
|
|
<el-col :span="24" class="left_two" v-if="roomList.length != 0">
|
|
<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" 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="24" class="left_two_1">
|
|
- <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 :span="4" class="left_image">
|
|
|
|
+ <!-- <el-image v-if="item.customer && item.customer.icon[0].url" :src="item.customer.icon[0].url" class="left_icon"> </el-image> -->
|
|
|
|
+ <el-avatar v-if="item.customer && item.customer.icon[0].url" :size="60" :src="item.customer.icon[0].url" class="left_icon"></el-avatar>
|
|
|
|
+ <el-avatar
|
|
|
|
+ v-else
|
|
|
|
+ shape="square"
|
|
|
|
+ :size="60"
|
|
|
|
+ src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
|
|
|
|
+ class="right_icon"
|
|
|
|
+ ></el-avatar>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="20">
|
|
<el-col :span="20">
|
|
<el-col :span="24" class="left_time">
|
|
<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" v-if="item.customer && item.customer.name">{{ item.customer.name || '用户名称' }}</el-col>
|
|
|
|
+ <el-col :span="10" style="text-align: left" v-else>{{ '用户不存在' }}</el-col>
|
|
<el-col :span="14" style="text-align: right">{{ item.last_chat.time }}</el-col>
|
|
<el-col :span="14" style="text-align: right">{{ item.last_chat.time }}</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="20" class="left_content">
|
|
<el-col :span="20" class="left_content">
|