Commit 422712af authored by 郭志伟's avatar 郭志伟

feat(rysdk): 添加热云事件

parent d49aa8e3
......@@ -133,6 +133,16 @@ function filterAllPayList(type, data) {
}
return data;
}
const payTypeMap = {
'1': '信用支付',
'2': '微信支付',
'3': '支付宝支付',
'4': '信用支付_微信支付',
'5': '信用支付_支付宝支付',
'6': '虚拟支付0元付'
};
export {
status,
codeArr,
......@@ -161,5 +171,6 @@ export {
ACCOUNT_APPLY_AUDITING,
ACCOUNT_APPLY_AUDIT_FAIL,
SMS_VERIFICATION_CODE_PAY,
FACE_VERIFICATION_CODE_PAY
FACE_VERIFICATION_CODE_PAY,
payTypeMap
};
......@@ -512,7 +512,8 @@ export default {
name: `pay${type}`,
query: {
reason: error,
orderNo: this.orderNo
orderNo: this.orderNo,
payType: this.payType
}
});
},
......
......@@ -54,7 +54,9 @@
<script>
import RecoGoods from '@/components/RecoGoods.vue';
import cookies from '@/service/cookieStorage.service';
import { isApp } from '@/service/validation.service';
import { goUrlExtends } from './extends';
import { payTypeMap } from './STATIC_DATA';
export default {
components: { RecoGoods },
extends: goUrlExtends,
......@@ -68,7 +70,7 @@ export default {
};
},
created() {
const { orderNo, reason } = this.$route.query;
const { orderNo, reason, payType } = this.$route.query;
const { success } = this.$route.meta;
const amount = cookies.get('amount') || {};
this.money = amount.finalAmt;
......@@ -80,6 +82,17 @@ export default {
this.$track.registeredEvents('h5_RechargeResultPageExposure', {
pay_status: this.payStatus
});
this.isSuccess &&
isApp &&
this.util.run({
event: 'reyunAnalytics',
data: {
method: 'PaySuccess', //string submitOrder OR PaySuccess
orderId: orderNo, //string 订单号
amount: amount.finalAmt, //float 金额
payType: payTypeMap[payType] //string 支付类型
}
});
},
methods: {
goPay() {
......
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