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 e5aa68c4
authored
Nov 15, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
4af93a82
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
14 deletions
src/api/groupChat.js
src/assets/css/sprite.scss
src/store/modules/app.js
src/views/customerGroup/index.vue
src/views/customerGroup/mass.vue
src/api/groupChat.js
View file @
e5aa68c
...
...
@@ -14,7 +14,7 @@ export default {
},
/** 根据userid获取客户详情 */
getDetail
(
data
)
{
data
.
method
=
'org.ore.api.
one.template.detail
'
data
.
method
=
'org.ore.api.
customer.detail.single
'
return
window
.
$HTTP
({
url
,
data
,
...
...
src/assets/css/sprite.scss
View file @
e5aa68c
.sprite-icon
{
background-image
:
url(../images/sprite.png)
;
background-size
:
40px
20px
;}
.icon-attract-customer-share
{
width
:
10px
;
height
:
10px
;
background-position
:
-30px
0px
;}
.icon-active
{
width
:
20px
;
height
:
20px
;
background-position
:
0px
0px
;}
\ No newline at end of file
.icon-active
{
width
:
20px
;
height
:
20px
;
background-position
:
0px
0px
;}
.icon-attract-customer-share
{
width
:
10px
;
height
:
10px
;
background-position
:
-30px
0px
;}
\ No newline at end of file
src/store/modules/app.js
View file @
e5aa68c
...
...
@@ -74,6 +74,7 @@ const actions = {
code
,
corpId
}).
then
(({
code
,
data
,
message
})
=>
{
console
.
log
(
data
)
// const { baseURL } = window.$fetchConfig.request
const
[
baseURL
]
=
redirectUrl
.
split
(
'/dj-scrm-wx-work-main/'
)
let
url
=
`
${
baseURL
}
/dj-scrm-wx-work-main/#/`
...
...
@@ -108,16 +109,16 @@ const actions = {
dispatch
(
'registerHttp'
,
userInfo
.
sessionId
)
// 只有一个账号 history.back()
console
.
log
(
`
${
redirectUrl
}${
route
}
`
)
window
.
location
.
replace
(
`
${
redirectUrl
}${
route
}
`
)
//
window.location.replace(`${redirectUrl}${route}`)
}
}
else
{
/**没有账号 */
window
.
location
.
href
=
`
${
url
}
common/nothing`
//
window.location.href = `${url}common/nothing`
}
}
else
{
/**账号过期 (暂时没有字段判断是否过期) */
Notify
(
message
)
window
.
location
.
href
=
`
${
url
}
common/overdue`
//
window.location.href = `${url}common/overdue`
}
})
}
else
{
...
...
@@ -142,7 +143,7 @@ const actions = {
let
{
sessionId
,
corpId
}
=
getParams
()
const
storage_sessionId
=
util
.
getSessionId
()
const
storage_corpId
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
if
(
!
corpId
)
corpId
=
storage_corpId
.
corpId
||
'ww7ee69c648ae1b7e6'
if
(
!
corpId
)
corpId
=
storage_corpId
&&
storage_corpId
.
corpId
||
'ww7ee69c648ae1b7e6'
util
.
setLocalStorage
(
'dj_scrm_corpId'
,
{
corpId
})
if
(
sessionId
||
storage_sessionId
)
{
state
.
showWindow
=
true
...
...
src/views/customerGroup/index.vue
View file @
e5aa68c
...
...
@@ -6,7 +6,7 @@
<div
class=
"business-card"
>
<div
class=
"business-card-top"
>
<div
class=
"imgBox"
>
<
img
:src=
"businessCard.url"
alt=
""
/
>
<
!--
<img
:src=
"businessCard.url"
alt=
""
/>
--
>
</div>
<div
class=
"textBox"
>
<div
class=
"title"
>
{{
businessCard
.
name
}}
</div>
...
...
@@ -92,13 +92,14 @@ export default {
dialogMessage
:
[],
insertParams
:
{
templateId
:
''
,
externalUserids
:
''
,
chatId
:
''
serialVersionUID
:
''
,
chatId
:
''
,
userId
:
''
},
addGroupParams
:
{
externalUserId
:
[],
groupName
:
''
,
userIds
:
[]
,
userIds
:
''
,
chatId
:
''
},
businessCard
:
{
...
...
@@ -226,14 +227,15 @@ export default {
window
.
$wx
.
init
([
'getCurExternalContact'
,
'openEnterpriseChat'
]).
then
(()
=>
{
//获取userId
window
.
$wx
.
getCurExternalContact
().
then
(
res
=>
{
console
.
log
(
res
,
'11111'
);
this
.
userId
=
res
let
externalUserId
s
=
this
.
userId
let
externalUserId
=
this
.
userId
//获取客户信息
groupChat
.
getDetail
({
externalUserId
s
}).
then
(
res
=>
{
groupChat
.
getDetail
({
externalUserId
}).
then
(
res
=>
{
console
.
log
(
res
,
'333'
)
})
//获取列表信息
groupChat
.
getList
({
externalUserId
s
}).
then
(
res
=>
{
groupChat
.
getList
({
externalUserId
}).
then
(
res
=>
{
console
.
log
(
res
,
'444'
)
// this.groupList = res
})
...
...
src/views/customerGroup/mass.vue
View file @
e5aa68c
...
...
@@ -87,4 +87,12 @@ export default {
height
:
20px
;
margin-left
:
auto
}
.mass-message
{
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
16px
;
word-wrap
:
break-word
;
margin-top
:
13px
;
}
</
style
>
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