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

feat(rysdk): 添加热云事件

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