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 05286f2a
authored
Jan 19, 2022
by
李伟康
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
c1be6d15
8ed57ba7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
22 deletions
src/router/routes.js
src/views/attractCustomer/index.vue
src/views/customer/detail.vue
src/views/customerGroup/index.vue
src/router/routes.js
View file @
05286f2
const
pages
=
{
const
pages
=
{
customerGroup
:
[{
customerGroup
:
[{
name
:
'index'
name
:
'index'
,
meta
:
{
title
:
'一客一群'
,
backgroundColor
:
'#F7F7F7'
,
keepAlive
:
true
,
}
},
},
{
name
:
'mass'
}
{
name
:
'mass'
}
],
],
...
...
src/views/attractCustomer/index.vue
View file @
05286f2
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
>
>
<div
class=
"title text-hide"
>
{{
i
.
codeName
}}
</div>
<div
class=
"title text-hide"
>
{{
i
.
codeName
}}
</div>
<div
class=
"name-list"
>
<div
class=
"name-list"
>
<div
class=
"label"
>
使用
人员:
</div>
<div
class=
"label"
>
扫码添加
人员:
</div>
<div
class=
"value"
>
{{
i
.
staffName
}}
</div>
<div
class=
"value"
>
{{
i
.
staffName
}}
</div>
</div>
</div>
<div
class=
"remark"
>
<div
class=
"remark"
>
...
@@ -196,7 +196,7 @@ export default {
...
@@ -196,7 +196,7 @@ export default {
margin-bottom
:
8px
;
margin-bottom
:
8px
;
.label
{
.label
{
color
:
#666666
;
color
:
#666666
;
width
:
7
0px
;
width
:
9
0px
;
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
}
}
...
...
src/views/customer/detail.vue
View file @
05286f2
...
@@ -305,6 +305,7 @@ export default {
...
@@ -305,6 +305,7 @@ export default {
}
=
this
}
=
this
let
userId
=
this
.
id
let
userId
=
this
.
id
if
(
type
==
'tel'
)
{
if
(
type
==
'tel'
)
{
if
(
info
.
customerPhone
&&
save_key
==
'customerPhone'
)
return
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'customer.editDetail'
,
name
:
'customer.editDetail'
,
params
:
{
params
:
{
...
...
src/views/customerGroup/index.vue
View file @
05286f2
...
@@ -19,9 +19,10 @@
...
@@ -19,9 +19,10 @@
</div>
</div>
<div
class=
"business-card-buttom"
>
客户名片
</div>
<div
class=
"business-card-buttom"
>
客户名片
</div>
</div>
</div>
<div
class=
"container-bottom-title"
>
邀入并创建新群聊
</div>
</div>
</div>
<div
class=
"container-bottom"
>
<div
class=
"container-bottom"
>
<div
class=
"container-bottom-ttile"
>
邀入并创建新群聊
</div>
<div
class=
"groups-list"
v-if=
"groupList.length > 0 ? true : false"
>
<div
class=
"groups-list"
v-if=
"groupList.length > 0 ? true : false"
>
<div
class=
"groups-item"
v-for=
"item in groupList"
:key=
"item.index"
>
<div
class=
"groups-item"
v-for=
"item in groupList"
:key=
"item.index"
>
<div
class=
"groups-item-top"
>
<div
class=
"groups-item-top"
>
...
@@ -179,8 +180,6 @@ export default {
...
@@ -179,8 +180,6 @@ export default {
wxConfig
wxConfig
.
getCurExternalContact
()
.
getCurExternalContact
()
.
then
(
userId
=>
{
.
then
(
userId
=>
{
this
.
hideLoading
()
this
.
flag
=
true
console
.
log
(
userId
,
'11111'
)
console
.
log
(
userId
,
'11111'
)
this
.
userId
=
userId
this
.
userId
=
userId
let
externalUserId
=
userId
let
externalUserId
=
userId
...
@@ -188,6 +187,8 @@ export default {
...
@@ -188,6 +187,8 @@ export default {
//获取客户信息
//获取客户信息
groupChat
.
getDetail
({
userId
:
externalUserId
}).
then
(
res
=>
{
groupChat
.
getDetail
({
userId
:
externalUserId
}).
then
(
res
=>
{
console
.
log
(
res
,
'data'
)
console
.
log
(
res
,
'data'
)
this
.
hideLoading
()
this
.
flag
=
true
this
.
businessCard
=
res
.
info
this
.
businessCard
=
res
.
info
this
.
vehicleInfoList
=
res
.
vehicleInfoList
this
.
vehicleInfoList
=
res
.
vehicleInfoList
groupChat
.
getList
({
externalUserId
:
externalUserId
}).
then
(
res
=>
{
groupChat
.
getList
({
externalUserId
:
externalUserId
}).
then
(
res
=>
{
...
@@ -197,17 +198,25 @@ export default {
...
@@ -197,17 +198,25 @@ export default {
if
(
res
)
{
if
(
res
)
{
for
(
var
a
=
0
;
a
<
this
.
groupList
.
length
;
a
++
)
{
for
(
var
a
=
0
;
a
<
this
.
groupList
.
length
;
a
++
)
{
if
(
!
this
.
vehicleInfoList
)
{
if
(
!
this
.
vehicleInfoList
)
{
if
(
this
.
groupList
[
a
].
groupNameRule
==
1
)
{
this
.
groupList
[
a
].
groupName
=
this
.
businessCard
.
customerName
+
this
.
groupList
[
a
].
groupName
}
if
(
this
.
groupList
[
a
].
groupNameRule
==
0
)
{
this
.
groupList
[
a
].
groupName
=
this
.
groupList
[
a
].
groupName
this
.
groupList
[
a
].
groupName
=
this
.
groupList
[
a
].
groupName
}
if
(
this
.
groupList
[
a
].
groupNameRule
==
2
){
this
.
groupList
[
a
].
groupName
=
this
.
groupList
[
a
].
groupName
}
}
else
{
}
else
{
if
(
this
.
groupList
[
a
].
groupNameRule
==
0
)
{
if
(
this
.
groupList
[
a
].
groupNameRule
==
0
)
{
this
.
groupList
[
a
].
groupName
=
this
.
groupList
[
a
].
groupName
this
.
groupList
[
a
].
groupName
=
this
.
groupList
[
a
].
groupName
}
}
if
(
this
.
groupList
[
a
].
groupNameRule
==
1
)
{
if
(
this
.
groupList
[
a
].
groupNameRule
==
1
)
{
if
(
this
.
vehicleInfoList
[
0
].
vehicleTrain
)
{
if
(
!
this
.
vehicleInfoList
[
0
].
vehicleTrain
)
{
this
.
groupList
[
a
].
groupName
=
this
.
vehicleInfoList
[
0
].
vehicleTrain
+
this
.
businessCard
.
customerName
+
this
.
groupList
[
a
].
groupName
this
.
vehicleInfoList
[
0
].
vehicleTrain
=
''
}
else
{
this
.
groupList
[
a
].
groupName
=
this
.
businessCard
.
customerName
+
this
.
groupList
[
a
].
groupName
}
}
// this.groupList[a].groupName = `${this.businessCard.customerName}${this.groupList[a].groupName}`
this
.
groupList
[
a
].
groupName
=
this
.
vehicleInfoList
[
0
].
vehicleTrain
+
this
.
businessCard
.
customerName
+
this
.
groupList
[
a
].
groupName
}
}
if
(
this
.
groupList
[
a
].
groupNameRule
==
2
)
{
if
(
this
.
groupList
[
a
].
groupNameRule
==
2
)
{
if
(
!
this
.
vehicleInfoList
[
0
].
vehicleTrain
)
{
if
(
!
this
.
vehicleInfoList
[
0
].
vehicleTrain
)
{
...
@@ -242,16 +251,12 @@ export default {
...
@@ -242,16 +251,12 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.container
{
.container
{
top
:
0
;
left
:
0
;
position
:
fixed
;
width
:
100%
;
height
:
100vh
;
background
:
#f7f7f7
;
background
:
#f7f7f7
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.container-customerBox
{
.container-customerBox
{
padding
:
14px
16px
0px
16px
;
/* padding: 14px 16px 0px 16px; */
padding-bottom
:
50px
;
}
}
.business-card
{
.business-card
{
margin
:
0
;
margin
:
0
;
...
@@ -267,6 +272,7 @@ export default {
...
@@ -267,6 +272,7 @@ export default {
margin-left
:
55px
;
margin-left
:
55px
;
margin-top
:
10px
;
margin-top
:
10px
;
border-radius
:
4px
;
border-radius
:
4px
;
margin-bottom
:
17px
;
}
}
.business-card-top
{
.business-card-top
{
display
:
flex
;
display
:
flex
;
...
@@ -388,8 +394,11 @@ export default {
...
@@ -388,8 +394,11 @@ export default {
word-wrap
:
break-word
;
word-wrap
:
break-word
;
}
}
.container-top
{
.container-top
{
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
padding
:
14px
16px
;
padding-bottom
:
17px
;
position
:
sticky
;
z-index
:
1
;
background-color
:
rgb
(
247
,
247
,
247
);
top
:
0
;
}
}
.container-bottom-title
{
.container-bottom-title
{
font-size
:
16px
;
font-size
:
16px
;
...
@@ -397,10 +406,11 @@ export default {
...
@@ -397,10 +406,11 @@ export default {
font-weight
:
500
;
font-weight
:
500
;
color
:
#3a3a3a
;
color
:
#3a3a3a
;
line-height
:
22px
;
line-height
:
22px
;
border-top
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
padding
:
17px
0
0
;
}
}
.container-bottom
{
.container-bottom
{
padding-top
:
15px
;
padding
:
0
16px
;
height
:
calc
(
100vh
-
167px
);
}
}
.groups-item
{
.groups-item
{
width
:
323px
;
width
:
323px
;
...
@@ -412,8 +422,8 @@ export default {
...
@@ -412,8 +422,8 @@ export default {
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.groups-list
{
.groups-list
{
overflow-y
:
scroll
;
/*
overflow-y: scroll;
height
:
calc
(
100%
-
21px
);
height: calc(100% - 21px);
*/
}
}
.groups-item-top
{
.groups-item-top
{
display
:
flex
;
display
:
flex
;
...
...
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