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 89f2e444
authored
Nov 23, 2021
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
引流获客
1 parent
f3bf6a20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
47 deletions
src/api/entmicroApi.js
src/api/index.js
src/views/attractCustomer/index.vue
src/api/entmicroApi.js
0 → 100644
View file @
89f2e44
const
url
=
'/rop-scrm-entmicro/router'
export
default
{
/**引流获客列表 */
getEntmicroChannelCodeList
(
data
)
{
data
.
method
=
'entmicro.api.code.listEntmicroChannelCodeList'
return
window
.
$HTTP
({
url
,
data
,
returnAll
:
true
})
}
}
src/api/index.js
View file @
89f2e44
...
@@ -12,11 +12,13 @@ import wxConfig from './wxConfig'
...
@@ -12,11 +12,13 @@ import wxConfig from './wxConfig'
import
liveBroadcast
from
'./liveBroadcast'
import
liveBroadcast
from
'./liveBroadcast'
import
groupCustomer
from
'./groupCustomer'
import
groupCustomer
from
'./groupCustomer'
import
groupTag
from
'./groupTag'
import
groupTag
from
'./groupTag'
import
entmicroApi
from
'./entmicroApi'
export
{
export
{
ssoApi
,
ssoApi
,
groupChat
,
groupChat
,
wxConfig
,
wxConfig
,
liveBroadcast
,
liveBroadcast
,
groupCustomer
,
groupCustomer
,
groupTag
groupTag
,
entmicroApi
}
}
\ No newline at end of file
\ No newline at end of file
src/views/attractCustomer/index.vue
View file @
89f2e44
...
@@ -8,39 +8,50 @@
...
@@ -8,39 +8,50 @@
@
ReachBottom=
"onReachBottom"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
ref=
"scrollView"
>
>
<template
v-for=
"(i,index) in list"
>
<template
v-if=
"flag"
>
<div
<template
v-if=
"list.length"
>
class=
"box"
<template
v-for=
"(i,index) in list"
>
:key=
"index"
<div
>
class=
"box"
<div
:key=
"index"
>
<!--
<div
class=
"share text-center"
class=
"share text-center"
@
click=
"share(i)"
@
click=
"share(i)"
>
>
转发
转发
<div
class=
"sprite-icon icon-attract-customer-share"
></div>
<div
class=
"sprite-icon icon-attract-customer-share"
></div>
</div>
</div>
-->
<div
class=
"title text-hide"
>
{{
i
.
codeState
}}
</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
class=
"remark"
>
备注:
{{
i
.
codeRemark
||
'- -'
}}
</div>
<div
class=
"img-box"
>
<template
v-for=
"(item,ind) in i.imgList"
>
<div
:key=
"ind"
class=
"item"
v-if=
"ind
< 9
"
>
<img
:src=
"item.autoUrl"
>
</div>
</div>
</
template
>
<div
class=
"remark"
>
</div>
备注:
{{
i
.
codeRemark
||
'- -'
}}
</div>
</div>
<div
class=
"img-box"
>
<template
v-for=
"(item,ind) in i.imgList"
>
<div
:key=
"ind"
class=
"item"
v-if=
"ind
< 9
"
>
<img
:src=
"item.autoUrl"
@
click=
"previewImage(i.imgList,ind)"
>
</div>
</
template
>
</div>
</div>
</template>
</template>
<
template
v-else
>
<van-empty
description=
"暂无内容"
/>
</
template
>
</template>
</template>
</scroll-view>
</scroll-view>
<resource-popup
<resource-popup
v-model=
"showPopup"
v-model=
"showPopup"
...
@@ -51,14 +62,17 @@
...
@@ -51,14 +62,17 @@
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
{
ImagePreview
,
Notify
}
from
'vant'
import
{
entmicroApi
}
from
'@/api'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
showPopup
:
false
,
showPopup
:
false
,
code
Stat
eOrStaffName
:
''
,
code
Nam
eOrStaffName
:
''
,
list
:
[],
list
:
[],
currentItem
:
{}
currentItem
:
{},
flag
:
false
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -66,19 +80,14 @@ export default {
...
@@ -66,19 +80,14 @@ export default {
},
},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
let
{
codeStateOrStaffName
}
=
this
let
{
codeNameOrStaffName
}
=
this
let
data
=
{
let
obj
=
{}
method
:
'cn.com.glsx.entmicro.code.listEntmicroChannelCodeList'
if
(
codeNameOrStaffName
)
obj
.
codeNameOrStaffName
=
codeNameOrStaffName
}
this
.
showLoading
()
if
(
codeStateOrStaffName
)
data
.
codeStateOrStaffName
=
codeStateOrStaffName
entmicroApi
.
getEntmicroChannelCodeList
(
obj
).
then
(({
code
,
data
,
message
})
=>
{
window
this
.
hideLoading
()
.
$HTTP
({
if
(
code
==
'0'
)
{
url
:
'http://192.168.3.191:8064/rop-scrm-entmicro/router'
,
data
.
map
(
e
=>
{
data
})
.
then
(
res
=>
{
console
.
log
(
res
)
res
.
map
(
e
=>
{
let
imgList
=
[
let
imgList
=
[
{
{
id
:
e
.
id
,
id
:
e
.
id
,
...
@@ -92,9 +101,20 @@ export default {
...
@@ -92,9 +101,20 @@ export default {
}
}
e
.
imgList
=
imgList
e
.
imgList
=
imgList
})
})
this
.
list
=
data
this
.
list
=
res
}
else
{
})
Notify
(
message
)
}
this
.
flag
=
true
})
},
previewImage
(
list
,
startPosition
)
{
let
images
=
[]
list
.
map
(
e
=>
images
.
push
(
e
.
autoUrl
))
ImagePreview
({
images
,
startPosition
})
},
},
share
(
e
)
{
share
(
e
)
{
this
.
showPopup
=
true
this
.
showPopup
=
true
...
@@ -102,7 +122,8 @@ export default {
...
@@ -102,7 +122,8 @@ export default {
},
},
search
(
e
)
{
search
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
this
.
codeStateOrStaffName
=
e
this
.
codeNameOrStaffName
=
e
this
.
flag
=
false
this
.
getList
()
this
.
getList
()
},
},
onReachBottom
()
{
onReachBottom
()
{
...
@@ -157,7 +178,7 @@ export default {
...
@@ -157,7 +178,7 @@ export default {
margin-bottom
:
8px
;
margin-bottom
:
8px
;
.label
{
.label
{
color
:
#666666
;
color
:
#666666
;
width
:
6
0px
;
width
:
7
0px
;
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
}
}
...
...
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