Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6368b1b2
authored
Nov 24, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2
1 parent
a7ac60aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
src/main.js
src/views/customerGroup/index.vue
src/main.js
View file @
6368b1b
...
@@ -38,8 +38,8 @@ Vue.prototype.to = function (name, params) {
...
@@ -38,8 +38,8 @@ Vue.prototype.to = function (name, params) {
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
//
import VConsole from 'vconsole'
import
VConsole
from
'vconsole'
//
const vConsole = new VConsole()
const
vConsole
=
new
VConsole
()
const
isMock
=
true
const
isMock
=
true
fetchConfig
(
!
isMock
).
then
(
res
=>
{
fetchConfig
(
!
isMock
).
then
(
res
=>
{
...
...
src/views/customerGroup/index.vue
View file @
6368b1b
...
@@ -25,7 +25,12 @@
...
@@ -25,7 +25,12 @@
<div
class=
"itemsBox"
>
<div
class=
"itemsBox"
>
<template
v-if=
"item.userList"
>
<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
: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=
""
/>
<img
src=
"@/assets/images/user.png"
alt=
""
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -51,7 +56,7 @@
...
@@ -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"
>
<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"
>
<div
class=
"dialogMessage"
>
邀请客户
邀请客户
<span
class=
"name"
>
@{{ businessCard.
n
ame }}
</span>
<span
class=
"name"
>
@{{ businessCard.
customerN
ame }}
</span>
并新建一个
并新建一个
</div>
</div>
<div>
外部客户群聊
</div>
<div>
外部客户群聊
</div>
...
@@ -59,7 +64,8 @@
...
@@ -59,7 +64,8 @@
<div
class=
"itemsBox"
>
<div
class=
"itemsBox"
>
<div
<div
:class=
"[dialogMessage.length > 4 ? 'head-img-five-dialog' : dialogMessage.length > 1 ? 'head-img-two-dialog' : 'head-img-one-dialog', 'head-img']"
: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=
""
/>
<img
src=
"@/assets/images/user.png"
alt=
""
/>
</div>
</div>
...
@@ -129,7 +135,7 @@ export default {
...
@@ -129,7 +135,7 @@ export default {
console
.
log
(
res
,
'???'
)
console
.
log
(
res
,
'???'
)
//打开刚创建的群聊
//打开刚创建的群聊
let
chatId
=
this
.
insertParams
.
chatId
let
chatId
=
this
.
insertParams
.
chatId
window
.
$wx
.
openExistedChatWithMsg
({
chatId
}).
then
(
res
=>
{
window
.
$wx
.
openExistedChatWithMsg
({
chatId
}).
then
(
res
=>
{
console
.
log
(
this
.
addGroupParams
.
chatId
,
'55555'
)
console
.
log
(
this
.
addGroupParams
.
chatId
,
'55555'
)
})
})
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment