Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
6514a4b9
Commit
6514a4b9
authored
Feb 14, 2020
by
chenhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序订阅消息埋点
parent
c849cf29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
src/api/wxPay.js
+0
-6
src/pages/wxPay/index.vue
+3
-3
No files found.
src/api/wxPay.js
View file @
6514a4b9
...
@@ -8,10 +8,5 @@ export default {
...
@@ -8,10 +8,5 @@ export default {
return
requestPOST1
(
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/pay/payment_cancel?orderSn=
${
options
}
`
`
${
process
.
env
.
OLSHOP_URL
}
/pay/payment_cancel?orderSn=
${
options
}
`
);
);
},
sendMiniSubscribeMessage
(
orderSn
)
{
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/pay/sendMiniSubscribeMessage?orderSn=
${
orderSn
}
`
);
}
}
};
};
\ No newline at end of file
src/pages/wxPay/index.vue
View file @
6514a4b9
...
@@ -53,16 +53,16 @@ export default {
...
@@ -53,16 +53,16 @@ export default {
payData
.
success
=
res
=>
{
payData
.
success
=
res
=>
{
console
.
log
(
"支付成功"
,
res
,
this
.
options
);
console
.
log
(
"支付成功"
,
res
,
this
.
options
);
// TODO 小程序订阅消息埋点
-支付成功 nnEVpqCfNzkj07oIlF3X2Ms8sdzCjkCpqYWGKNiZK2g
// TODO 小程序订阅消息埋点
const
orderSn
=
this
.
options
.
orderSn
;
const
orderSn
=
this
.
options
.
orderSn
;
try
{
try
{
wx
.
requestSubscribeMessage
({
wx
.
requestSubscribeMessage
({
tmplIds
:
[
tmplIds
:
[
'CdnNUqNZRyQLfdH376ptwSBPwt7pJA5QWjcQ426_XyE'
'10xLnJqIXoMx4Cqb8Q_oC6cD4aKqU4pAu3_lSDNRILA'
,
'X4W6WgC-Mq58SUwUwsCOIORDFFYfZFR0uFcafxgXBls'
],
],
success
(
res
)
{
success
(
res
)
{
console
.
log
(
"message success response: "
,
res
);
console
.
log
(
"message success response: "
,
res
);
wxPay
.
sendMiniSubscribeMessage
(
orderSn
);
},
},
fail
(
res
)
{
fail
(
res
)
{
console
.
log
(
"message fail response: "
,
res
)
console
.
log
(
"message fail response: "
,
res
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment