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 2fa5fb1d
authored
Nov 24, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx/dj-scrm-wx-work-attachment-customer
2 parents
f4c16bf0
e98b2f90
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
155 additions
and
339 deletions
src/api/groupCustomer.js
src/api/groupTag.js
src/api/ssoApi.js
src/assets/css/index.scss
src/components/Tip.vue
src/utils/util.js
src/views/customerDetails/add.vue
src/views/customerDetails/index.vue
src/views/tag/index.vue
src/api/groupCustomer.js
View file @
2fa5fb1
const
url
=
'http://192.168.3.191:8064/rop-scrm-entmicro/router'
// const url = 'http://192.168.3.191:8064/rop-scrm-entmicro/router'
const
url
=
'/rop-scrm-entmicro/router'
const
returnAll
=
true
const
returnAll
=
true
export
default
{
export
default
{
/**消息盒子-好友列表 */
/**消息盒子-好友列表 */
getCustomerList
(
data
)
{
getCustomerList
(
data
=
{}
)
{
data
.
method
=
'
org.ore
.api.dracScrmWork.findWorkDetail'
data
.
method
=
'
entmicro
.api.dracScrmWork.findWorkDetail'
return
window
.
$HTTP
({
return
window
.
$HTTP
({
url
,
url
,
data
,
data
,
...
...
src/api/groupTag.js
View file @
2fa5fb1
const
url
=
'http://192.168.3.191:8064/rop-scrm-entmicro/router'
// const url = 'http://192.168.3.191:8064/rop-scrm-entmicro/router'
const
url
=
'/rop-scrm-entmicro/router'
const
returnAll
=
true
const
returnAll
=
true
export
default
{
export
default
{
/**获取打标签的客户列表 */
/**获取打标签的客户列表 */
getcustomerList
(
data
)
{
getcustomerList
(
data
=
{}
)
{
data
.
method
=
'
org.ore
.api.qywechat.tagging.customer.list'
data
.
method
=
'
entmicro
.api.qywechat.tagging.customer.list'
return
window
.
$HTTP
({
return
window
.
$HTTP
({
url
,
url
,
data
,
data
,
...
@@ -13,8 +14,8 @@ export default {
...
@@ -13,8 +14,8 @@ export default {
})
})
},
},
/**标签数据获取 */
/**标签数据获取 */
gettaggingList
(
data
)
{
gettaggingList
(
data
=
{}
)
{
data
.
method
=
'
org.ore
.api.qywechat.tagging.info'
data
.
method
=
'
entmicro
.api.qywechat.tagging.info'
return
window
.
$HTTP
({
return
window
.
$HTTP
({
url
,
url
,
data
,
data
,
...
...
src/api/ssoApi.js
View file @
2fa5fb1
...
@@ -18,5 +18,15 @@ export default {
...
@@ -18,5 +18,15 @@ export default {
data
,
data
,
returnAll
returnAll
})
})
}
},
/** 获取userid */
getuserInfo
(
data
=
{})
{
data
.
method
=
'scrm.api.sso.user.getLoginInfo'
return
window
.
$HTTP
({
url
,
data
,
returnAll
})
}
}
}
\ No newline at end of file
\ No newline at end of file
src/assets/css/index.scss
View file @
2fa5fb1
...
@@ -61,12 +61,3 @@ img {
...
@@ -61,12 +61,3 @@ img {
.sticky
{
.sticky
{
position
:
static
;
position
:
static
;
}
}
.buttomLine
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
375px
;
height
:
1px
;
opacity
:
0
.3
;
background-color
:
#c3c3c3
;
}
\ No newline at end of file
\ No newline at end of file
src/components/Tip.vue
View file @
2fa5fb1
<
template
>
<
template
>
<div
class=
"hint"
>
<div
class=
"hint
-tip
"
>
<div
class=
"tip"
>
{{
title
}}
</div>
<div
class=
"tip
-title
"
>
{{
title
}}
</div>
<div
class=
"date"
v-if=
"time"
>
{{
time
}}
</div>
<div
class=
"
tip-
date"
v-if=
"time"
>
{{
time
}}
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -26,7 +26,7 @@ export default {
...
@@ -26,7 +26,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.hint
{
.hint
-tip
{
padding
:
10px
16px
;
padding
:
10px
16px
;
width
:
375px
;
width
:
375px
;
height
:
40px
;
height
:
40px
;
...
@@ -36,14 +36,14 @@ export default {
...
@@ -36,14 +36,14 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.tip
{
.tip
-title
{
color
:
#545454
;
color
:
#545454
;
font-size
:
16px
;
font-size
:
16px
;
line-height
:
20px
;
line-height
:
20px
;
text-align
:
left
;
text-align
:
left
;
letter-spacing
:
0px
;
letter-spacing
:
0px
;
}
}
.date
{
.
tip-
date
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#545454
;
color
:
#545454
;
...
...
src/utils/util.js
View file @
2fa5fb1
...
@@ -124,10 +124,10 @@ const setClipboardData = data => {
...
@@ -124,10 +124,10 @@ const setClipboardData = data => {
wx
.
setClipboardData
({
wx
.
setClipboardData
({
data
,
data
,
success
(
res
)
{
success
(
res
)
{
console
.
log
(
res
)
Toast
(
'复制成功'
)
Toast
(
'复制成功'
)
},
},
fail
(
res
){
fail
(
res
){
console
.
log
(
res
)
}
}
})
})
}
}
...
...
src/views/customerDetails/add.vue
View file @
2fa5fb1
<
template
>
<
template
>
<div
:class=
"['container-add', `page-type-$
{tabIndex}`]">
<div
:class=
"['container-add', `page-type-$
{tabIndex}`]">
<tip
:title=
"title"
></tip>
<tip
:title=
"title"
></tip>
<template
v-if=
"
data
.length > 0"
>
<template
v-if=
"
customerList
.length > 0"
>
<div
class=
"customerList-add"
>
<div
class=
"customerList-add"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<div
class=
"customer-add"
v-for=
"(item, index) in
data
"
:key=
"index"
>
<div
class=
"customer-add"
v-for=
"(item, index) in
customerList
"
:key=
"index"
>
<div
class=
"customer-add-portrait"
v-if=
"tabIndex == 3"
>
<div
class=
"customer-add-portrait"
v-if=
"tabIndex == 3"
>
<img
:src=
"item.avatar"
/>
<img
:src=
"item.avatar"
/>
</div>
</div>
...
@@ -14,14 +14,12 @@
...
@@ -14,14 +14,12 @@
</div>
</div>
<template
v-if=
"item.status == 0"
>
<template
v-if=
"item.status == 0"
>
<div
class=
"customer-add-friend flex"
>
<div
class=
"customer-add-friend flex"
>
<div
class=
"sprite-icon icon-customer-add"
@
click=
"addFriend(item)"
>
<div
class=
"sprite-icon icon-customer-add"
@
click=
"addFriend(item)"
></div>
</div>
<div
class=
"customer-add-friend-text"
>
加好友
</div>
<div
class=
"customer-add-friend-text"
>
加好友
</div>
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"line"
></div>
<div
class=
" customer-add-friend flex"
@
click=
"callPhone(item.customerPhone)"
>
<div
class=
"customer-add-friend flex"
@
click=
"callPhone(item.customerPhone)"
>
<div
class=
"sprite-icon icon-customer-phone"
>
<div
class=
"sprite-icon icon-customer-phone"
></div>
</div>
<div
class=
"customer-add-friend-text"
>
拨打电话
</div>
<div
class=
"customer-add-friend-text"
>
拨打电话
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -44,12 +42,15 @@
...
@@ -44,12 +42,15 @@
</template>
</template>
<
script
>
<
script
>
import
{
wxConfig
}
from
'@/api'
import
{
wxConfig
}
from
'@/api'
import
{
groupCustomer
}
from
'@/api'
export
default
{
export
default
{
name
:
'customerDetails'
,
name
:
'customerDetails'
,
data
()
{
data
()
{
return
{
return
{
check
:
true
,
check
:
true
,
customerList
:
this
.
data
,
customerList
:
[],
status
:
0
,
taskId
:
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
'e0e1a10cf50f427bb6d35906cf3dbf21'
,
copywriting
:
'我是深圳福田宝马4S店的售后经理王俊凯,添加企业微信,帮你解决您购车售后任何问题。'
copywriting
:
'我是深圳福田宝马4S店的售后经理王俊凯,添加企业微信,帮你解决您购车售后任何问题。'
}
}
},
},
...
@@ -63,21 +64,51 @@ export default {
...
@@ -63,21 +64,51 @@ export default {
default
:
0
default
:
0
}
}
},
},
created
()
{
this
.
customerList
=
this
.
data
},
computed
:
{
computed
:
{
title
()
{
title
()
{
switch
(
this
.
tabIndex
)
{
switch
(
this
.
tabIndex
)
{
case
0
:
case
0
:
return
`您共有
${
this
.
data
.
length
}
位客户待添加!`
return
`您共有
${
this
.
customerList
.
length
}
位客户待添加!`
case
1
:
case
1
:
return
`您共有
${
this
.
data
.
length
}
位客户待通过!`
return
`您共有
${
this
.
customerList
.
length
}
位客户待通过!`
case
3
:
case
3
:
return
`您共有
${
this
.
data
.
length
}
位客户!`
return
`您共有
${
this
.
customerList
.
length
}
位客户!`
default
:
default
:
return
`您共有
${
this
.
data
.
length
}
位客户待添加!`
return
`您共有
${
this
.
customerList
.
length
}
位客户待添加!`
}
}
}
}
},
},
watch
:
{
tabIndex
:
{
handler
(
newVal
)
{
if
(
newVal
==
3
)
{
this
.
status
=
''
}
else
{
this
.
status
=
newVal
}
this
.
init
()
},
immediate
:
true
}
},
methods
:
{
methods
:
{
init
()
{
let
search
=
{
taskId
:
this
.
taskId
,
status
:
this
.
status
}
groupCustomer
.
getCustomerList
(
search
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
customerList
=
res
.
data
}
else
{
this
.
customerList
=
[]
}
})
},
onReachBottom
()
{
onReachBottom
()
{
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
this
.
$refs
.
scrollView
.
finished
=
true
...
@@ -90,8 +121,7 @@ export default {
...
@@ -90,8 +121,7 @@ export default {
addFriend
(
data
)
{
addFriend
(
data
)
{
window
.
$wx
=
wxConfig
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'navigateToAddCustomer'
,
'setClipboardData'
]).
then
(()
=>
{
window
.
$wx
.
init
([
'navigateToAddCustomer'
,
'setClipboardData'
]).
then
(()
=>
{
//获取userId
this
.
setClipboardData
(
data
.
customerPhone
)
//复制
this
.
setClipboardData
({
data
:
data
.
customerPhone
})
//复制
window
.
$wx
.
navigateToAddCustomer
().
then
(
res
=>
{
window
.
$wx
.
navigateToAddCustomer
().
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
})
})
...
@@ -101,7 +131,7 @@ export default {
...
@@ -101,7 +131,7 @@ export default {
copy
()
{
copy
()
{
window
.
$wx
=
wxConfig
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'setClipboardData'
]).
then
(()
=>
{
window
.
$wx
.
init
([
'setClipboardData'
]).
then
(()
=>
{
this
.
setClipboardData
(
{
data
:
this
.
copywriting
}
)
//复制
this
.
setClipboardData
(
this
.
copywriting
)
//复制
})
})
}
}
}
}
...
@@ -196,14 +226,13 @@ export default {
...
@@ -196,14 +226,13 @@ export default {
white-space
:
nowrap
;
white-space
:
nowrap
;
margin-top
:
7px
;
margin-top
:
7px
;
}
}
}
}
.line
{
.line
{
margin
:
0
13px
0
16px
;
margin
:
0
13px
0
16px
;
width
:
1px
;
width
:
1px
;
height
:
42px
;
height
:
42px
;
background
:
rgba
(
0
,
0
,
0
,
0.1
);
background
:
rgba
(
0
,
0
,
0
,
0.1
);
}
}
.customer-add-stay
{
.customer-add-stay
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -253,6 +282,15 @@ export default {
...
@@ -253,6 +282,15 @@ export default {
margin-bottom
:
16px
;
margin-bottom
:
16px
;
}
}
}
}
.buttomLine
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
375px
!important
;
height
:
1px
;
opacity
:
0.3
;
background-color
:
#c3c3c3
!important
;
}
}
}
.page-type-0
{
.page-type-0
{
.content
{
.content
{
...
...
src/views/customerDetails/index.vue
View file @
2fa5fb1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"container-wrap"
>
<div
class=
"container-wrap"
>
<tab
:list=
"list"
:sticky=
"sticky"
:index=
"tabIndex"
@
change=
"changeTabs"
></tab>
<tab
:list=
"list"
:sticky=
"sticky"
:index=
"tabIndex"
@
change=
"changeTabs"
></tab>
<!-- 添加 待通过 全部-->
<!-- 添加 待通过 全部-->
<add
v-if=
"tabIndex == 0 || tabIndex == 1 || tabIndex == 3"
:tabIndex=
"tabIndex"
:data=
"customerList"
></add>
<add
v-if=
"tabIndex == 0 || tabIndex == 1 || tabIndex == 3"
:tabIndex=
"tabIndex"
:data=
"customerList"
></add>
<!-- 已通过 -->
<!-- 已通过 -->
<tag
:isTitle=
"isTitle"
v-else-if=
"tabIndex == 2"
:data=
"customerList"
></tag>
<tag
:isTitle=
"isTitle"
v-else-if=
"tabIndex == 2"
:data=
"customerList"
></tag>
</div>
</div>
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
<
script
>
<
script
>
import
add
from
'./add'
import
add
from
'./add'
import
tag
from
'../tag/index.vue'
import
tag
from
'../tag/index.vue'
import
{
groupCustomer
}
from
'@/api'
export
default
{
export
default
{
name
:
'customerDetails'
,
name
:
'customerDetails'
,
data
()
{
data
()
{
...
@@ -20,130 +19,8 @@ export default {
...
@@ -20,130 +19,8 @@ export default {
isTitle
:
false
,
//是否显示search组件
isTitle
:
false
,
//是否显示search组件
tabIndex
:
0
,
tabIndex
:
0
,
status
:
0
,
status
:
0
,
taskId
:
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
''
,
customerList
:
[],
customerList
:
[]
// customerList : [
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// }
// ],
}
}
},
},
components
:
{
components
:
{
...
@@ -151,30 +28,26 @@ export default {
...
@@ -151,30 +28,26 @@ export default {
tag
tag
},
},
created
()
{
created
()
{
this
.
init
()
//
this.init()
},
},
methods
:
{
methods
:
{
// 消息盒子-好友列表
// 消息盒子-好友列表
init
()
{
// init() {
let
search
=
{
// let search = {
taskId
:
this
.
taskId
,
// taskId: this.taskId,
status
:
this
.
status
// status: this.status
}
// }
groupCustomer
.
getCustomerList
(
search
).
then
(
res
=>
{
// groupCustomer.getCustomerList(search).then(res => {
console
.
log
(
res
)
// if (res.code == 0) {
if
(
res
.
code
==
0
)
{
// this.customerList = res.data
this
.
customerList
=
res
.
data
// } else {
}
// this.customerList = []
})
// }
},
// })
// },
changeTabs
(
e
)
{
changeTabs
(
e
)
{
if
(
e
==
3
)
{
this
.
status
=
''
}
else
{
this
.
status
=
e
}
this
.
tabIndex
=
e
this
.
tabIndex
=
e
this
.
init
()
//
this.init()
}
}
}
}
}
}
...
...
src/views/tag/index.vue
View file @
2fa5fb1
...
@@ -57,138 +57,17 @@
...
@@ -57,138 +57,17 @@
</template>
</template>
<
script
>
<
script
>
import
make
from
'./make.vue'
import
make
from
'./make.vue'
import
{
groupTag
,
wxConfig
}
from
'@/api'
import
{
groupTag
,
ssoApi
,
groupCustomer
,
wxConfig
}
from
'@/api'
export
default
{
export
default
{
components
:
{
make
},
components
:
{
make
},
data
()
{
data
()
{
return
{
return
{
keyword
:
''
,
keyword
:
''
,
customerList
:
[],
customerList
:
[],
// customerList: [
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// }
// ],
checkList
:
[],
checkList
:
[],
allChecked
:
false
,
allChecked
:
false
,
title
:
''
title
:
''
,
userIds
:
''
}
}
},
},
name
:
'tag'
,
name
:
'tag'
,
...
@@ -196,33 +75,48 @@ export default {
...
@@ -196,33 +75,48 @@ export default {
isTitle
:
{
isTitle
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
data
:
{
type
:
Array
,
default
:
()
=>
[]
}
}
},
},
created
()
{
created
()
{
//初始化数据
//获取userid
if
(
this
.
isTitle
)
{
this
.
taskId
=
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
'e0e1a10cf50f427bb6d35906cf3dbf21'
;
this
.
init
()
this
.
getuserInfo
()
}
else
{
//初始化数据
this
.
customerList
=
this
.
data
if
(
this
.
isTitle
)
{
this
.
title
=
`已有
${
this
.
customerList
.
length
}
位客户已通过您的好友申请!`
this
.
init
()
this
.
customerList
.
forEach
(
item
=>
{
}
else
{
this
.
$set
(
item
,
'isChecked'
,
false
)
this
.
initAll
()
})
}
},
methods
:
{
initAll
()
{
let
search
=
{
taskId
:
this
.
taskId
,
status
:
2
}
}
groupCustomer
.
getCustomerList
(
search
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
customerList
=
res
.
data
this
.
title
=
`已有
${
this
.
customerList
.
length
}
位客户已通过您的好友申请!`
this
.
customerList
.
forEach
(
item
=>
{
this
.
$set
(
item
,
'isChecked'
,
false
)
})
}
else
{
this
.
customerList
=
[]
}
})
},
getuserInfo
()
{
ssoApi
.
getuserInfo
().
then
(
res
=>
{
this
.
workUserId
=
res
.
data
.
workUserId
})
},
},
methods
:
{
init
()
{
init
()
{
//获取打标签客户列表
//获取打标签客户列表
let
seacrh
=
{
let
seacrh
=
{
keyword
:
this
.
keyword
,
keyword
:
this
.
keyword
sessionId
:
'mini-31ff1fff-c432-46d9-b94e-9f4ab76086fd-rop'
}
}
groupTag
.
getcustomerList
(
seacrh
).
then
(
res
=>
{
groupTag
.
getcustomerList
(
seacrh
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
customerList
=
res
.
data
this
.
customerList
=
res
.
data
this
.
title
=
`您共有
${
this
.
customerList
.
length
}
位客户暂未添加标签`
this
.
title
=
`您共有
${
this
.
customerList
.
length
}
位客户暂未添加标签`
...
@@ -268,17 +162,16 @@ export default {
...
@@ -268,17 +162,16 @@ export default {
//打开会话
//打开会话
gotoInfo
(
item
)
{
gotoInfo
(
item
)
{
let
seach
=
{
let
seach
=
{
userIds
:
[],
//参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
userIds
:
[
this
.
workUserId
],
//参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
externalUserIds
:
[
'wm-ZewEAAALezLnqhZLNLvXgwqvx6BOw'
],
// 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
externalUserIds
:
[
item
.
userid
],
// 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
groupName
:
''
,
// 会话名称。单聊时该参数传入空字符串""即可。
groupName
:
''
,
// 会话名称。单聊时该参数传入空字符串""即可。
chatId
:
''
chatId
:
''
}
}
console
.
log
(
seach
)
console
.
log
(
seach
)
window
.
$wx
=
wxConfig
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
window
.
$wx
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
//获取userId
window
.
$wx
.
openEnterpriseChat
(
seach
).
then
(
res
=>
{
window
.
$wx
.
openEnterpriseChat
(
seach
).
then
(
res
=>
{
console
.
log
(
res
)
//
console.log(res)
})
})
})
})
},
},
...
@@ -403,6 +296,15 @@ export default {
...
@@ -403,6 +296,15 @@ export default {
}
}
}
}
}
}
.buttomLine
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
375px
!important
;
height
:
1px
;
opacity
:
0.3
;
background-color
:
#c3c3c3
!important
;
}
}
}
.container
/
deep
/
.van-checkbox__icon--checked
.van-icon
{
.container
/
deep
/
.van-checkbox__icon--checked
.van-icon
{
color
:
#fff
;
color
:
#fff
;
...
...
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