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 6d007106
authored
Jan 11, 2022
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
1
2 parents
e06c5c58
fddb0ee7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
src/api/entmicroApi.js
src/api/groupTag.js
src/views/attractCustomer/index.vue
src/api/entmicroApi.js
View file @
6d00710
const
url
=
'/rop-scrm-entmicro/router'
export
default
{
/**全部活码接口 */
getAllEntmicroChannelCodeList
(
data
){
data
.
method
=
'entmicro.api.code.listStaffEntmicroChannelCodeList'
return
window
.
$HTTP
({
url
,
data
,
returnAll
:
true
})
},
/**引流获客列表 */
getEntmicroChannelCodeList
(
data
)
{
data
.
method
=
'entmicro.api.code.listEntmicroChannelCodeList'
...
...
src/api/groupTag.js
View file @
6d00710
// const url = 'http://192.168.2.42:8064/rop-scrm-entmicro/router'
const
url
=
'
/rop-scrm-entmicro/router'
// const url = window.$fetchConfig ? window.$fetchConfig.tagUrl + '/rop-scrm-entmicro/router' : 'http://oin7.branch.glsx.com.cn
/rop-scrm-entmicro/router'
console
.
log
(
url
)
export
default
{
/**获取打标签的客户列表 */
getcustomerList
(
data
=
{})
{
data
.
method
=
'entmicro.api.qywechat.tagging.customer.list'
return
window
.
$HTTP
({
url
,
url
:
window
.
$fetchConfig
.
tagUrl
,
data
})
},
...
...
@@ -14,7 +15,7 @@ export default {
gettagList
(
data
=
{})
{
data
.
method
=
'entmicro.api.qywechat.tagging.info'
return
window
.
$HTTP
({
url
,
url
:
window
.
$fetchConfig
.
tagUrl
,
data
})
},
...
...
@@ -22,7 +23,7 @@ export default {
putCustomertag
(
data
=
{})
{
data
.
method
=
'entmicro.api.qywechat.tagging.put.customer'
return
window
.
$HTTP
({
url
,
url
:
window
.
$fetchConfig
.
tagUrl
,
data
})
}
...
...
src/views/attractCustomer/index.vue
View file @
6d00710
...
...
@@ -2,6 +2,10 @@
<div
class=
"layout"
>
<div
class=
"search sticky"
>
<search
@
search=
"search"
/>
<tab
:list=
"['全部活码','我的活码']"
@
change=
"change"
></tab>
</div>
<scroll-view
class=
"content"
...
...
@@ -73,15 +77,21 @@ export default {
}
},
mounted
()
{
this
.
getList
()
this
.
getList
(
0
)
},
methods
:
{
getList
()
{
change
(
e
)
{
this
.
flag
=
false
this
.
list
=
[]
this
.
getList
(
e
)
},
getList
(
index
)
{
let
{
codeNameOrStaffName
}
=
this
let
obj
=
{}
if
(
codeNameOrStaffName
)
obj
.
codeNameOrStaffName
=
codeNameOrStaffName
this
.
showLoading
()
entmicroApi
.
getEntmicroChannelCodeList
(
obj
).
then
(({
code
,
data
,
message
})
=>
{
let
target
=
[
'getAllEntmicroChannelCodeList'
,
'getEntmicroChannelCodeList'
][
index
]
entmicroApi
[
target
](
obj
).
then
(({
code
,
data
,
message
})
=>
{
this
.
hideLoading
()
if
(
code
==
'0'
)
{
data
.
map
(
e
=>
{
...
...
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