li.shaoyi il y a 5 mois
Parent
commit
449a694fce

+ 7 - 6
src/packages/tss/views/bank/wallet/components/deposit/Index.vue

@@ -282,6 +282,13 @@ const formSubmit = () => {
         let isComplete = false
         const complete = () => {
             isComplete = true
+            
+            // 追踪入金结果
+            trackEvent('Purchase', {
+                currency: formData.Currency,
+                value: formData.Amount,
+            })
+
             dialog({
                 message: i18n.global.t('banksign.wallet.deposit.submitsuccess')
             }).then(() => {
@@ -294,12 +301,6 @@ const formSubmit = () => {
         formData.extendInfo = JSON.stringify(obj)
 
         onSubmit().then(() => {
-            // 追踪入金结果
-            trackEvent('Purchase', {
-                currency: formData.Currency,
-                value: formData.Amount,
-            })
-
             if (!isComplete) {
                 complete()
             }