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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
38 deletions
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
View file @
cf27207
...
@@ -108,46 +108,54 @@ export default {
...
@@ -108,46 +108,54 @@ export default {
},
},
send
()
{
send
()
{
const
userId
=
this
.
$store
.
state
.
userId
try
{
const
taskId
=
this
.
task
.
ruleId
const
userId
=
this
.
$store
.
state
&&
this
.
$store
.
state
.
userId
let
_this
=
this
const
taskId
=
this
.
task
.
ruleId
this
.
$toast
.
loading
({
let
_this
=
this
message
:
'正在发送...'
,
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'正在发送...'
,
forbidClick
:
true
duration
:
0
,
})
forbidClick
:
true
let
mes
=
{
})
title
:
this
.
task
.
title
,
desc
:
this
.
task
.
content
,
// mes.link || delete mes.link
link
:
(
this
.
task
.
materialList
&&
this
.
task
.
materialList
[
0
]
&&
this
.
task
.
materialList
[
0
].
materialUrl
)
||
' '
// 消息链接
// mes.imgUrl || delete mes.imgUrl
// imgUrl: this.task.materialList && this.task.materialList[0] && this.task.materialList[0].materialUrl
wx
.
invoke
(
}
'shareToExternalChat'
,
// mes.link || delete mes.link
{
// mes.imgUrl || delete mes.imgUrl
title
:
this
.
task
.
title
,
wx
.
invoke
(
'shareToExternalChat'
,
mes
,
async
function
(
res
)
{
desc
:
this
.
task
.
content
,
if
(
res
.
err_msg
==
'shareToExternalChat:ok'
)
{
link
:
(
this
.
task
.
materialList
&&
this
.
task
.
materialList
[
0
]
&&
this
.
task
.
materialList
[
0
].
materialUrl
)
||
' '
// 消息链接
try
{
// imgUrl: this.task.materialList && this.task.materialList[0] && this.task.materialList[0].materialUrl
await
changeStatus
(
userId
,
taskId
,
1
)
},
}
catch
(
error
)
{
async
function
(
res
)
{
if
(
res
.
err_msg
==
'shareToExternalChat:ok'
)
{
try
{
await
changeStatus
(
userId
,
taskId
,
1
)
}
catch
(
error
)
{
_this
.
$toast
.
clear
()
_this
.
$dialog
({
message
:
'接口失败:'
+
JSON
.
stringify
(
error
)
})
return
}
// .then((res) => {
// }).catch(() => {
// this.$emit('refresh')
// })
_this
.
$toast
.
clear
()
this
.
$emit
(
'refresh'
)
}
else
{
if
(
res
.
err_code
==
1
)
{
// 用户取消发送
}
else
{
_this
.
$dialog
({
message
:
'shareToExternalChat失败:'
+
JSON
.
stringify
(
res
)
})
}
}
_this
.
$toast
.
clear
()
_this
.
$toast
.
clear
()
_this
.
$dialog
({
message
:
'接口失败:'
+
JSON
.
stringify
(
error
)
})
return
}
// .then((res) => {
// }).catch(() => {
// this.$emit('refresh')
// })
_this
.
$toast
.
clear
()
this
.
$emit
(
'refresh'
)
}
else
{
if
(
res
.
err_code
==
1
)
{
// 用户取消发送
}
else
{
_this
.
$dialog
({
message
:
'shareToExternalChat失败:'
+
JSON
.
stringify
(
res
)
})
}
}
}
)
_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