Ver código fonte

Merge branch 'v20' of http://192.168.31.240:3000/MTP2.0_New/MTP20_WEB_GLOBAL into v20

muchinfo 5 meses atrás
pai
commit
6ea52fa3ef

+ 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()
             }