Commit 6368b1b2 by zhouzy

2

1 parent a7ac60aa
......@@ -38,8 +38,8 @@ Vue.prototype.to = function (name, params) {
Vue.config.productionTip = false
// import VConsole from 'vconsole'
// const vConsole = new VConsole()
import VConsole from 'vconsole'
const vConsole = new VConsole()
const isMock = true
fetchConfig(!isMock).then(res => {
......
......@@ -25,7 +25,12 @@
<div class="itemsBox">
<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">
<!-- <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"> -->
<div
:class="[item.userList.length > 4 ? 'head-img-five' : item.userList.length > 1 ? 'head-img-two' : 'head-img-one', 'head-img']"
v-for="(index) in (item.userList.length > 9 ? item.userList.slice(0, 9) : item.userList)"
:key="index"
>
<img src="@/assets/images/user.png" alt="" />
</div>
</template>
......@@ -51,7 +56,7 @@
<van-dialog class="dialog" v-model="show" title="创建新群" message="邀请客户并创建一个群聊" show-cancel-button show-confirm-button confirm-button-color="black" allowHtml @confirm="addGroup">
<div class="dialogMessage">
邀请客户
<span class="name">@{{ businessCard.name }}</span>
<span class="name">@{{ businessCard.customerName }}</span>
并新建一个
</div>
<div>外部客户群聊</div>
......@@ -59,7 +64,8 @@
<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="(item, index) in dialogMessage.length > 9? dialogMessage.slice(0,9): dialogMessage" :key="index"
v-for="(item, index) in dialogMessage.length > 9 ? dialogMessage.slice(0, 9) : dialogMessage"
:key="index"
>
<img src="@/assets/images/user.png" alt="" />
</div>
......@@ -129,7 +135,7 @@ export default {
console.log(res, '???')
//打开刚创建的群聊
let chatId = this.insertParams.chatId
window.$wx.openExistedChatWithMsg({ chatId}).then(res => {
window.$wx.openExistedChatWithMsg({ chatId }).then(res => {
console.log(this.addGroupParams.chatId, '55555')
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!