Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 6f688596
authored
Oct 09, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
聊天工具栏问题
1 parent
91fc2b93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
linkwe-mobile/src/App.vue
linkwe-mobile/src/views/chat/index.vue
linkwe-mobile/src/App.vue
View file @
6f68859
...
@@ -31,9 +31,7 @@ export default {
...
@@ -31,9 +31,7 @@ export default {
// this.$toast('agentId:' + this.agentId)
// this.$toast('agentId:' + this.agentId)
this
.
$router
.
onReady
(()
=>
{
this
.
$router
.
onReady
(()
=>
{
const
noAuth
=
this
.
$router
.
app
.
$route
.
meta
const
noAuth
=
this
.
$router
.
app
.
$route
.
meta
?
this
.
$router
.
app
.
$route
.
meta
.
noAuth
:
false
?
this
.
$router
.
app
.
$route
.
meta
.
noAuth
:
false
if
(
!
code
&&
!
noAuth
)
{
if
(
!
code
&&
!
noAuth
)
{
this
.
$toast
(
'未获得授权'
)
this
.
$toast
(
'未获得授权'
)
...
@@ -67,10 +65,7 @@ export default {
...
@@ -67,10 +65,7 @@ export default {
async
wxConfig
()
{
async
wxConfig
()
{
this
.
$store
.
state
.
agentConfigStatus
=
false
this
.
$store
.
state
.
agentConfigStatus
=
false
try
{
try
{
let
{
data
}
=
await
getAgentTicket
(
let
{
data
}
=
await
getAgentTicket
(
window
.
location
.
href
.
split
(
'#'
)[
0
],
this
.
agentId
)
window
.
location
.
href
.
split
(
'#'
)[
0
],
this
.
agentId
)
let
{
timestamp
,
nonceStr
,
signature
}
=
data
let
{
timestamp
,
nonceStr
,
signature
}
=
data
wx
.
agentConfig
({
wx
.
agentConfig
({
beta
:
true
,
// 必须这么写,否则wx.invoke调用形式的jsapi会有问题
beta
:
true
,
// 必须这么写,否则wx.invoke调用形式的jsapi会有问题
...
@@ -90,7 +85,7 @@ export default {
...
@@ -90,7 +85,7 @@ export default {
],
//必填
],
//必填
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
// 回调
// 回调
this
.
$toast
(
'agentId成功:'
)
//
this.$toast('agentId成功:')
this
.
$store
.
state
.
agentConfigStatus
=
true
this
.
$store
.
state
.
agentConfigStatus
=
true
},
},
fail
:
(
res
)
=>
{
fail
:
(
res
)
=>
{
...
...
linkwe-mobile/src/views/chat/index.vue
View file @
6f68859
...
@@ -15,7 +15,11 @@ export default {
...
@@ -15,7 +15,11 @@ export default {
// userId: this.$store.state.userId,
// userId: this.$store.state.userId,
}
}
},
},
watch
:
{},
watch
:
{
userId
()
{
this
.
getList
()
}
},
computed
:
{
computed
:
{
userId
()
{
userId
()
{
return
this
.
$store
.
state
.
userId
return
this
.
$store
.
state
.
userId
...
@@ -29,6 +33,7 @@ export default {
...
@@ -29,6 +33,7 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
this
.
list
=
[]
getTypeList
().
then
(({
rows
,
total
})
=>
{
getTypeList
().
then
(({
rows
,
total
})
=>
{
this
.
userId
&&
this
.
userId
&&
this
.
list
.
push
({
this
.
list
.
push
({
...
...
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