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 cf27207e
authored
Oct 18, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
175837c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
View file @
cf27207
...
@@ -108,7 +108,8 @@ export default {
...
@@ -108,7 +108,8 @@ export default {
},
},
send
()
{
send
()
{
const
userId
=
this
.
$store
.
state
.
userId
try
{
const
userId
=
this
.
$store
.
state
&&
this
.
$store
.
state
.
userId
const
taskId
=
this
.
task
.
ruleId
const
taskId
=
this
.
task
.
ruleId
let
_this
=
this
let
_this
=
this
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
...
@@ -116,15 +117,18 @@ export default {
...
@@ -116,15 +117,18 @@ export default {
duration
:
0
,
duration
:
0
,
forbidClick
:
true
forbidClick
:
true
})
})
let
mes
=
{
// mes.link || delete mes.link
// mes.imgUrl || delete mes.imgUrl
wx
.
invoke
(
'shareToExternalChat'
,
{
title
:
this
.
task
.
title
,
title
:
this
.
task
.
title
,
desc
:
this
.
task
.
content
,
desc
:
this
.
task
.
content
,
link
:
(
this
.
task
.
materialList
&&
this
.
task
.
materialList
[
0
]
&&
this
.
task
.
materialList
[
0
].
materialUrl
)
||
' '
// 消息链接
link
:
(
this
.
task
.
materialList
&&
this
.
task
.
materialList
[
0
]
&&
this
.
task
.
materialList
[
0
].
materialUrl
)
||
' '
// 消息链接
// imgUrl: this.task.materialList && this.task.materialList[0] && this.task.materialList[0].materialUrl
// imgUrl: this.task.materialList && this.task.materialList[0] && this.task.materialList[0].materialUrl
}
},
// mes.link || delete mes.link
async
function
(
res
)
{
// mes.imgUrl || delete mes.imgUrl
wx
.
invoke
(
'shareToExternalChat'
,
mes
,
async
function
(
res
)
{
if
(
res
.
err_msg
==
'shareToExternalChat:ok'
)
{
if
(
res
.
err_msg
==
'shareToExternalChat:ok'
)
{
try
{
try
{
await
changeStatus
(
userId
,
taskId
,
1
)
await
changeStatus
(
userId
,
taskId
,
1
)
...
@@ -147,7 +151,11 @@ export default {
...
@@ -147,7 +151,11 @@ export default {
}
}
}
}
_this
.
$toast
.
clear
()
_this
.
$toast
.
clear
()
})
}
)
}
catch
(
error
)
{
this
.
$dialog
({
message
:
'代码错误:'
+
JSON
.
stringify
(
error
.
message
)
})
}
},
},
touchStart
()
{
touchStart
()
{
...
...
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