Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-psd
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 8c5e1d2d
authored
Apr 01, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'liwk_dev_1.0.0' into 'master'
打开会话增加loading See merge request
!8
2 parents
3c01af63
6d3c5ac4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
src/api/wxConfig.js
src/views/openEnterpriseChat/index.vue
src/api/wxConfig.js
View file @
8c5e1d2
...
@@ -8,7 +8,7 @@ const WxConfig = {
...
@@ -8,7 +8,7 @@ const WxConfig = {
if
(
e
==
'chooseImage'
)
jsApiList
.
push
(
'getLocalImgData'
)
if
(
e
==
'chooseImage'
)
jsApiList
.
push
(
'getLocalImgData'
)
})
})
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'#'
)
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'#'
)
const
{
corpId
}
=
util
.
get
LocalStorage
(
'dj_scrm_corpId'
)
||
util
.
getQuery
(
)
const
{
corpId
}
=
util
.
get
Query
()
||
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
/** 获取企微应用AgentConfig */
/** 获取企微应用AgentConfig */
let
data
=
{
let
data
=
{
corpId
,
corpId
,
...
@@ -186,7 +186,11 @@ const WxConfig = {
...
@@ -186,7 +186,11 @@ const WxConfig = {
},
},
/**打开会话 */
/**打开会话 */
openEnterpriseChat
({
externalUserIds
=
[],
groupName
=
''
,
userIds
=
[],
chatId
=
''
})
{
openEnterpriseChat
({
externalUserIds
=
[],
groupName
=
''
,
userIds
=
[],
chatId
=
''
})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
userIds
=
userIds
.
join
(
';'
)
userIds
=
userIds
.
join
(
';'
)
externalUserIds
=
externalUserIds
.
join
(
';'
)
externalUserIds
=
externalUserIds
.
join
(
';'
)
...
...
src/views/openEnterpriseChat/index.vue
View file @
8c5e1d2
<
template
>
<
template
>
</
template
>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
...
@@ -8,15 +7,20 @@ export default {
...
@@ -8,15 +7,20 @@ export default {
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
text
:
''
flag
:
false
}
}
},
},
activated
()
{
},
mounted
()
{
mounted
()
{
this
.
showLoading
()
let
{
userId
}
=
this
.
getQuery
()
let
{
userId
}
=
this
.
getQuery
()
this
.
text
=
userId
wxConfig
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
wxConfig
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
this
.
hideLoading
()
wxConfig
.
openEnterpriseChat
({
wxConfig
.
openEnterpriseChat
({
externalUserIds
:
[
userId
]
externalUserIds
:
[
userId
]
}).
then
(
res
=>
{
console
.
log
(
res
)
})
})
})
})
},
},
...
...
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