Commit 86f99cf8 by 王志慧
2 parents 8cc5a8cd 2fa5fb1d

650 Bytes | W: | H:

2.56 KB | W: | H:

src/assets/images/user.png
src/assets/images/user.png
src/assets/images/user.png
src/assets/images/user.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -26,23 +26,23 @@
<template v-if="item.userList">
<!-- <div :style="{ 'width': item.imgs.length > 4 ? 14.67 : (item.imgs.length > 1 ? 22 : 44) + 'px', 'height': item.imgs.length > 4 ? 14.67 : (item.imgs.length > 1 ? 22 : 44) + 'px' }" v-for="img in item.imgs" :key='img.id'> -->
<div :class="[item.userList.length > 4 ? 'head-img-five' : item.userList.length > 1 ? 'head-img-two' : 'head-img-one', 'head-img']" v-for="user in item.userList" :key="user.id">
<!-- <img src="@/assets/images/user.png" alt="" /> -->
<img src="@/assets/images/user.png" alt="" />
</div>
</template>
</div>
</div>
<div class="textBox">
<div class="title">{{ item.groupName }}{{ '(' + item.userList.length + ')' }}</div>
<div class="nameBox">
<span class="wechatNumber welcomeSpan" v-for="user in item.userList" :key="user.id">{{ '@' + user.staffName }}</span>
<div class="nameBox wechatNumber text-two-line">
<span v-for="user in item.userList" :key="user.id">{{ '@' + user.staffName }}</span>
</div>
</div>
<van-button @click="showDialog(item)" style="margin-left: auto" size="small" color="#5850FF">{{ item.chatId == null ? '创建群聊' : '加入群聊' }}</van-button>
</div>
<div class="groups-item-bottom">
<div class="welcomeTitle">入群欢迎语</div>
<div class="welcomeWords" v-for="content in item.attachmentList" :key="content.index">
<span class="welcomeSpan">{{ content.attType == 1 ? content.attContent : '' }}</span>
<div class="welcomeWords welcomeSpan" v-for="content in item.attachmentList" :key="content.index">
{{ content.attType == 1 ? content.attContent : '' }}
</div>
</div>
</div>
......@@ -55,14 +55,14 @@
并新建一个
</div>
<div>外部客户群聊</div>
<div class="imgBox" style="margin-left: 93px; width: 132px; height: 132px; margin-top: 16px; margin-bottom: 34px">
<div class="dialogImgBox">
<div class="itemsBox">
<div
:class="[dialogMessage.length > 4 ? 'head-img-five-dialog' : dialogMessage.length > 1 ? 'head-img-two-dialog' : 'head-img-one-dialog', 'head-img']"
v-for="user in dialogMessage"
:key="user.id"
>
<!-- <img src="@/assets/images/user.png" alt="" /> -->
<img src="@/assets/images/user.png" alt="" />
</div>
</div>
</div>
......@@ -283,6 +283,7 @@ export default {
}
.nameBox {
width: 176px;
height: 34px;
}
.wechatNumber {
font-size: 12px;
......@@ -375,13 +376,37 @@ export default {
line-height: 22px;
}
.welcomeSpan {
white-space: nowrap;
overflow: hidden;
width: 100px;
text-overflow: ellipsis;
width: 200px;
}
.userSpan {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100px;
}
.img {
width: 44.01px;
height: 44.01px;
}
.text-two-line {
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.dialogImgBox {
margin-left: 93px;
width: 132px;
height: 132px;
margin-top: 16px;
margin-bottom: 34px;
display: flex;
justify-content: center;
align-items: center;
background: #e1e1e1;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!