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 46a2b9c4
authored
Nov 23, 2021
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
9931f68a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
440 additions
and
181 deletions
src/assets/css/index.scss
src/components/Empty.vue
src/components/ScrollView.vue
src/utils/util.js
src/views/customer/information.vue
src/views/customerDetails/add.vue
src/views/customerDetails/index.vue
src/views/tag/index.vue
src/views/tag/make.vue
vue.config.js
src/assets/css/index.scss
View file @
46a2b9c
...
@@ -61,3 +61,13 @@ img {
...
@@ -61,3 +61,13 @@ 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/Empty.vue
View file @
46a2b9c
...
@@ -4,27 +4,26 @@
...
@@ -4,27 +4,26 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'empty'
,
name
:
'empty'
,
data
()
{
data
()
{
return
{
return
{
empty
:
require
(
'../assets/images/empty.png'
)
empty
:
require
(
'../assets/images/empty.png'
)
}
}
},
},
props
:
{
props
:
{
description
:
{
description
:
{
type
:
String
,
type
:
String
,
default
:
'暂无数据'
default
:
'暂无数据'
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.custom-image
{
.custom-image
{
padding-top
:
79px
;
padding-top
:
79px
;
}
}
.custom-image
.van-empty__image
{
.custom-image
/
deep
/
.van-empty__image
{
width
:
88px
;
width
:
88px
;
height
:
56px
;
height
:
56px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/components/ScrollView.vue
View file @
46a2b9c
...
@@ -38,4 +38,7 @@ export default {
...
@@ -38,4 +38,7 @@ export default {
overflow-y
:
scroll
;
overflow-y
:
scroll
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.van-list
{
background-color
:
#ffffff
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/utils/util.js
View file @
46a2b9c
...
@@ -125,6 +125,9 @@ const setClipboardData = data => {
...
@@ -125,6 +125,9 @@ const setClipboardData = data => {
data
,
data
,
success
(
res
)
{
success
(
res
)
{
Toast
(
'复制成功'
)
Toast
(
'复制成功'
)
},
fail
(
res
){
console
.
log
(
res
)
}
}
})
})
}
}
...
...
src/views/customer/information.vue
View file @
46a2b9c
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"tips flex"
>
<div
class=
"tips flex"
>
请完善以下客户信息
</div>
请完善以下客户信息
</div>
<template>
<template>
<template>
<template>
<scroll-view
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
class=
"content"
<template
v-for=
"(item, index) in customerList"
>
@
ReachBottom=
"onReachBottom"
<div
:key=
"index"
class=
"item flex"
>
ref=
"scrollView"
>
<template
v-for=
"(item,index) in 10"
>
<div
:key=
"index"
class=
"item flex"
>
<div
class=
"avatar"
>
<div
class=
"avatar"
>
<div
class=
"sprite-icon icon-avatar"
></div>
<div
class=
"sprite-icon icon-avatar"
></div>
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"phone flex"
>
<div
class=
"phone flex name"
>
{{
item
.
customerName
}}
</div>
恒河猴
</div>
<div
class=
"tags flex"
>
<div
class=
"tags flex"
>
<template
v-for=
"(i,ind) in 5"
>
<template
v-for=
"(i, ind) in 5"
>
<div
<div
:key=
"ind"
class=
"tag text-center"
>
{{
index
}}{{
ind
}}
恒河猴
</div>
:key=
"ind"
class=
"tag text-center"
>
{{
index
}}{{
ind
}}
恒河猴
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
@@ -45,17 +29,155 @@
...
@@ -45,17 +29,155 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
customerList
:
[]
}
}
},
},
mounted
()
{
created
()
{
this
.
init
()
},
},
methods
:
{
methods
:
{
onReachBottom
()
{
onReachBottom
()
{
console
.
log
(
'触底'
)
console
.
log
(
'触底'
)
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
this
.
$refs
.
scrollView
.
finished
=
true
},
// 消息盒子-好友列表
init
()
{
let
search
=
{
taskId
:
'cb3b9128e620413c931601a6d439d365'
,
status
:
this
.
status
}
this
.
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
:
'曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷'
,
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
:
'曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷'
,
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
:
'曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷'
,
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
}
]
console
.
log
(
this
.
customerList
)
groupCustomer
.
getCustomerList
(
search
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
this
.
customerList
=
res
.
data
}
})
}
}
}
}
}
}
...
@@ -71,6 +193,12 @@ export default {
...
@@ -71,6 +193,12 @@ export default {
height
:
auto
;
height
:
auto
;
padding
:
16px
16px
12px
16px
;
padding
:
16px
16px
12px
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.name
{
width
:
50px
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
.tags
{
.tags
{
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
.tag
{
.tag
{
...
...
src/views/customerDetails/add.vue
View file @
46a2b9c
<
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=
"
customerList
.length > 0"
>
<template
v-if=
"
data
.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
customerList
"
:key=
"index"
>
<div
class=
"customer-add"
v-for=
"(item, index) in
data
"
: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>
...
...
src/views/customerDetails/index.vue
View file @
46a2b9c
...
@@ -20,7 +20,130 @@ export default {
...
@@ -20,7 +20,130 @@ export default {
isTitle
:
false
,
//是否显示search组件
isTitle
:
false
,
//是否显示search组件
tabIndex
:
0
,
tabIndex
:
0
,
status
:
0
,
status
:
0
,
customerList
:
[]
taskId
:
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
''
,
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
:
{
...
@@ -34,133 +157,9 @@ export default {
...
@@ -34,133 +157,9 @@ export default {
// 消息盒子-好友列表
// 消息盒子-好友列表
init
()
{
init
()
{
let
search
=
{
let
search
=
{
taskId
:
'cb3b9128e620413c931601a6d439d365'
,
taskId
:
this
.
taskId
,
status
:
this
.
status
status
:
this
.
status
}
}
this
.
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
:
'曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷'
,
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
:
'曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷'
,
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
:
'曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷'
,
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
},
]
console
.
log
(
this
.
customerList
)
groupCustomer
.
getCustomerList
(
search
).
then
(
res
=>
{
groupCustomer
.
getCustomerList
(
search
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
...
...
src/views/tag/index.vue
View file @
46a2b9c
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
<div
class=
"customerList"
>
<div
class=
"customerList"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<div
class=
"customer"
v-for=
"(item, index) in customerList"
:key=
"item.id"
@
click=
"gotoInfo(item)"
>
<div
class=
"customer"
v-for=
"(item, index) in customerList"
:key=
"item.id"
@
click=
"gotoInfo(item)"
>
<div
class=
"checked-box"
>
<
!--
<
div
class=
"checked-box"
>
<template
v-if=
"item.isChecked"
>
<template
v-if=
"item.isChecked"
>
<div
class=
"sprite-icon icon-customer-active"
@
click
.
stop=
"toggleHandle(index)"
></div>
<div
class=
"sprite-icon icon-customer-active"
@
click
.
stop=
"toggleHandle(index)"
></div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div
class=
"checked"
@
click
.
stop=
"toggleHandle(index)"
></div>
<div
class=
"checked"
@
click
.
stop=
"toggleHandle(index)"
></div>
</
template
>
</
template
>
</div>
</div>
-->
<div
class=
"customer-portrait"
>
<div
class=
"customer-portrait"
>
<img
:src=
"item.avatar"
alt=
""
/>
<img
:src=
"item.avatar"
alt=
""
/>
</div>
</div>
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
<div
class=
"buttomLine"
></div>
<div
class=
"buttomLine"
></div>
</div>
</div>
</scroll-view>
</scroll-view>
<
template
v-if=
"isTitle"
>
<div
class=
"footer"
>
<div
class=
"footer"
>
<div
class=
"checked-box"
>
<div
class=
"checked-box"
>
<template
v-if=
"allChecked"
>
<template
v-if=
"allChecked"
>
...
@@ -40,12 +41,14 @@
...
@@ -40,12 +41,14 @@
<div
class=
"checked"
@
click
.
stop=
"checkAll()"
></div>
<div
class=
"checked"
@
click
.
stop=
"checkAll()"
></div>
</
template
>
</
template
>
</div>
</div>
<div
class=
"checkAll"
>
<div
class=
"checkAll"
>
全选
全选
<label>
已选{{ checkList.length }}个客户
</label>
<label>
已选{{ checkList.length }}个客户
</label>
</div>
</div>
<van-button
class=
"my-button"
round
color=
"#5850FF"
@
click=
"handleTag"
>
批量打标签
</van-button>
<van-button
class=
"my-button"
round
color=
"#5850FF"
@
click=
"handleTag"
>
批量打标签
</van-button>
</div>
</div>
</template>
</div>
</div>
</template>
</template>
<empty
v-else
description=
"暂无数据"
/>
<empty
v-else
description=
"暂无数据"
/>
...
@@ -61,6 +64,128 @@ export default {
...
@@ -61,6 +64,128 @@ export default {
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
:
''
...
@@ -94,7 +219,7 @@ export default {
...
@@ -94,7 +219,7 @@ export default {
//获取打标签客户列表
//获取打标签客户列表
let
seacrh
=
{
let
seacrh
=
{
keyword
:
this
.
keyword
,
keyword
:
this
.
keyword
,
sessionId
:
'mini-
dd4508ec-1f6c-463e-8b08-9fc1c46ed1d5
-rop'
sessionId
:
'mini-
31ff1fff-c432-46d9-b94e-9f4ab76086fd
-rop'
}
}
groupTag
.
getcustomerList
(
seacrh
).
then
(
res
=>
{
groupTag
.
getcustomerList
(
seacrh
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -143,8 +268,8 @@ export default {
...
@@ -143,8 +268,8 @@ export default {
//打开会话
//打开会话
gotoInfo
(
item
)
{
gotoInfo
(
item
)
{
let
seach
=
{
let
seach
=
{
userIds
:
item
.
userid
,
//参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
userIds
:
[]
,
//参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
externalUserIds
:
''
,
// 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
externalUserIds
:
[
'wm-ZewEAAALezLnqhZLNLvXgwqvx6BOw'
]
,
// 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
groupName
:
''
,
// 会话名称。单聊时该参数传入空字符串""即可。
groupName
:
''
,
// 会话名称。单聊时该参数传入空字符串""即可。
chatId
:
''
chatId
:
''
}
}
...
@@ -158,7 +283,6 @@ export default {
...
@@ -158,7 +283,6 @@ export default {
})
})
},
},
onReachBottom
()
{
onReachBottom
()
{
console
.
log
(
'触底'
)
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
this
.
$refs
.
scrollView
.
finished
=
true
}
}
...
@@ -170,7 +294,8 @@ export default {
...
@@ -170,7 +294,8 @@ export default {
.customerList
{
.customerList
{
//
background
:
#fff
;
//
background
:
#fff
;
.content
{
.content
{
height
:
calc
(
100vh
-
164px
);
//
height
:
calc
(
100vh
-
164px
);
height
:
calc
(
100vh
-
90px
);
}
}
.customer
{
.customer
{
padding
:
0
16px
;
padding
:
0
16px
;
...
@@ -198,10 +323,10 @@ export default {
...
@@ -198,10 +323,10 @@ export default {
padding-bottom
:
6px
;
padding-bottom
:
6px
;
display
:
flex
;
display
:
flex
;
.name
{
.name
{
width
:
60px
;
//
width
:
60px
;
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
//
text-overflow
:
ellipsis
;
}
}
.origin
{
.origin
{
color
:
#6760ff
;
color
:
#6760ff
;
...
@@ -246,7 +371,6 @@ export default {
...
@@ -246,7 +371,6 @@ export default {
line-height
:
22px
;
line-height
:
22px
;
margin-left
:
16px
;
margin-left
:
16px
;
margin-right
:
32px
;
margin-right
:
32px
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
...
...
src/views/tag/make.vue
View file @
46a2b9c
...
@@ -75,7 +75,7 @@ export default {
...
@@ -75,7 +75,7 @@ export default {
}
}
],
],
checkAll
:
[],
checkAll
:
[],
tagShow
:
tru
e
tagShow
:
fals
e
}
}
},
},
created
()
{
created
()
{
...
...
vue.config.js
View file @
46a2b9c
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
const
defaultSettings
=
require
(
'./src/config/conf.js'
)
const
defaultSettings
=
require
(
'./src/config/conf.js'
)
const
BundleAnalyzerPlugin
=
require
(
'webpack-bundle-analyzer'
).
BundleAnalyzerPlugin
const
BundleAnalyzerPlugin
=
require
(
'webpack-bundle-analyzer'
).
BundleAnalyzerPlugin
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
// page title
// page title
const
name
=
defaultSettings
.
title
||
'vue mobile template'
const
name
=
defaultSettings
.
title
||
'vue mobile template'
...
@@ -51,7 +50,6 @@ const spritesmithFunction = data => {
...
@@ -51,7 +50,6 @@ const spritesmithFunction = data => {
module
.
exports
=
{
module
.
exports
=
{
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-group-chat/'
,
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-group-chat/'
,
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir
:
'dist'
,
// 生产环境构建文件的目录
outputDir
:
'dist'
,
// 生产环境构建文件的目录
...
@@ -134,11 +132,9 @@ module.exports = {
...
@@ -134,11 +132,9 @@ module.exports = {
// config.externals = externals
// config.externals = externals
// }
// }
},
},
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
// 别名 alias
// 别名 alias
config
.
resolve
.
alias
config
.
resolve
.
alias
.
set
(
'@'
,
resolve
(
'src'
))
.
set
(
'@'
,
resolve
(
'src'
))
...
@@ -148,7 +144,6 @@ module.exports = {
...
@@ -148,7 +144,6 @@ module.exports = {
.
set
(
'components'
,
resolve
(
'src/components'
))
.
set
(
'components'
,
resolve
(
'src/components'
))
.
set
(
'plugins'
,
resolve
(
'src/components'
))
.
set
(
'plugins'
,
resolve
(
'src/components'
))
.
set
(
'utils'
,
resolve
(
'src/utils'
))
.
set
(
'utils'
,
resolve
(
'src/utils'
))
/**
/**
* 添加CDN参数到htmlWebpackPlugin配置中
* 添加CDN参数到htmlWebpackPlugin配置中
*/
*/
...
@@ -160,7 +155,6 @@ module.exports = {
...
@@ -160,7 +155,6 @@ module.exports = {
// }
// }
// return args
// return args
// })
// })
/**
/**
* 设置保留空格
* 设置保留空格
*/
*/
...
@@ -184,7 +178,6 @@ module.exports = {
...
@@ -184,7 +178,6 @@ module.exports = {
config
config
// https://webpack.js.org/configuration/devtool/#development
// https://webpack.js.org/configuration/devtool/#development
.
when
(
!
IS_PROD
,
config
=>
config
.
devtool
(
'cheap-source-map'
))
.
when
(
!
IS_PROD
,
config
=>
config
.
devtool
(
'cheap-source-map'
))
config
.
when
(
IS_PROD
,
config
=>
{
config
.
when
(
IS_PROD
,
config
=>
{
config
config
.
plugin
(
'ScriptExtHtmlWebpackPlugin'
)
.
plugin
(
'ScriptExtHtmlWebpackPlugin'
)
...
...
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