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 14640e47
authored
Apr 01, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改发送素材
1 parent
e78343f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
src/mixins/shareMixin.js
src/mixins/shareMixin.js
View file @
14640e4
...
@@ -30,12 +30,7 @@ export default {
...
@@ -30,12 +30,7 @@ export default {
const
imgUrl
=
'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/test/test.jpg'
const
imgUrl
=
'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/test/test.jpg'
let
query
=
`merchantId=
${
merchantId
}
&id=
${
id
}
&staffUuid=
${
uuid
}
`
let
query
=
`merchantId=
${
merchantId
}
&id=
${
id
}
&staffUuid=
${
uuid
}
`
if
(
sapCode
)
query
=
`
${
query
}
&storeCode=
${
sapCode
}
`
if
(
sapCode
)
query
=
`
${
query
}
&storeCode=
${
sapCode
}
`
marketingApi
.
sendReadBuriedPoint
({
materialId
:
id
,
type
:
1
,
merchantId
,
staffUuid
:
uuid
}).
then
(()
=>
{
wxConfig
.
createMiniprogramUrlLink
({
wxConfig
.
createMiniprogramUrlLink
({
path
,
path
,
query
,
query
,
...
@@ -58,6 +53,7 @@ export default {
...
@@ -58,6 +53,7 @@ export default {
}
}
]
]
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
sendReadBuriedPoint
({
id
,
merchantId
,
uuid
})
this
.
hideLoading
()
this
.
hideLoading
()
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
@@ -71,31 +67,40 @@ export default {
...
@@ -71,31 +67,40 @@ export default {
imgUrl
:
titleUrl
||
imgUrl
imgUrl
:
titleUrl
||
imgUrl
}
}
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
(
params
,
'news'
)
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
(
params
,
{
id
,
merchantId
,
uuid
}
)
else
this
.
shareAppMessage
(
params
)
else
this
.
shareAppMessage
(
params
,
{
id
,
merchantId
,
uuid
}
)
}
}
})
})
},
sendReadBuriedPoint
({
id
,
merchantId
,
uuid
})
{
marketingApi
.
sendReadBuriedPoint
({
materialId
:
id
,
type
:
1
,
merchantId
,
staffUuid
:
uuid
})
})
},
},
sendChatMessage
(
params
,
msgtype
)
{
sendChatMessage
(
params
,
sendParams
)
{
wxConfig
wxConfig
.
sendChatMessage
({
.
sendChatMessage
({
msgtype
,
msgtype
,
[
msgtype
]
:
params
,
news
:
params
,
enterChat
:
false
enterChat
:
false
})
})
.
then
(
()
=>
{
.
then
(
res
=>
{
this
.
hideLoading
()
this
.
hideLoading
()
this
.
sendReadBuriedPoint
(
sendParams
)
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
this
.
hideLoading
()
this
.
hideLoading
()
})
})
},
},
shareAppMessage
(
params
)
{
shareAppMessage
(
params
,
sendParams
)
{
wxConfig
wxConfig
.
shareAppMessage
(
params
)
.
shareAppMessage
(
params
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
sendReadBuriedPoint
(
sendParams
)
this
.
hideLoading
()
this
.
hideLoading
()
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
...
...
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