|
@@ -19,6 +19,7 @@ import { defineComponent, PropType } from 'vue'
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
import { state } from '@/state'
|
|
import { state } from '@/state'
|
|
import { orderStatus } from '../orderStatus'
|
|
import { orderStatus } from '../orderStatus'
|
|
|
|
+import { useEventTracking } from '@/helpers/hooks'
|
|
|
|
|
|
interface IOrderInfo {
|
|
interface IOrderInfo {
|
|
orderNo: string | number
|
|
orderNo: string | number
|
|
@@ -80,6 +81,7 @@ export default defineComponent({
|
|
.then(() => {})
|
|
.then(() => {})
|
|
.catch(async () => {
|
|
.catch(async () => {
|
|
this.onCancel()
|
|
this.onCancel()
|
|
|
|
+ useEventTracking('取消支付')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
async onCancel(noBack?: boolean) {
|
|
async onCancel(noBack?: boolean) {
|
|
@@ -142,6 +144,7 @@ export default defineComponent({
|
|
} catch (e: any) {
|
|
} catch (e: any) {
|
|
console.log(e)
|
|
console.log(e)
|
|
}
|
|
}
|
|
|
|
+ useEventTracking('购买支付')
|
|
},
|
|
},
|
|
paymentOperation(res: any) {
|
|
paymentOperation(res: any) {
|
|
console.log(res, 'paymentOperation', this.paymentType, this.orderInfo)
|
|
console.log(res, 'paymentOperation', this.paymentType, this.orderInfo)
|