Commit 21e4c1b8 by 李嘉林

feat: 支付成功加埋点

parent 7180b2cd
...@@ -195,6 +195,9 @@ export default { ...@@ -195,6 +195,9 @@ export default {
let payData = JSON.parse(res.data.data); let payData = JSON.parse(res.data.data);
log.info("wxPay", res.data); log.info("wxPay", res.data);
payData.success = (res) => { payData.success = (res) => {
this.$mpBehavior.trackEvent('complete_checkout', {
pay_method: `微信支付`,
})
log.info("支付成功", res, this.options); log.info("支付成功", res, this.options);
this.message = "支付成功"; this.message = "支付成功";
const orderSn = this.options.orderSn; const orderSn = this.options.orderSn;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment