|
|
@@ -27,7 +27,7 @@
|
|
|
</template>
|
|
|
</CellGroup>
|
|
|
<CellGroup>
|
|
|
- <Field v-if="sign.ismix === 1" :label="$t('banksign.bankchannel')" name="channel_code" is-link >
|
|
|
+ <Field v-if="sign.ismix === 1" :label="$t('banksign.bankchannel')" name="channel_code" is-link>
|
|
|
<template #input>
|
|
|
<app-select v-model="channel_code" :options="hybrids"
|
|
|
:optionProps="{ label: 'channel_name', value: 'channel_code' }" @confirm="onHibirdChange" />
|
|
|
@@ -41,14 +41,15 @@
|
|
|
:value="handleNoneValue(sign.bankname)" />
|
|
|
<Cell v-if="sign.ismix === 0" :title="$t('banksign.wallet.withdraw.bankaccountno')"
|
|
|
:value="handleNoneValue(sign.bankaccountno)" />
|
|
|
- <Field v-if="sign.ismix === 1 && isShow" type="number" name="phone_number" :label="$t('banksign.mobilephone')" maxlength="30" v-model.trim="phone_number" :placeholder="$t('banksign.Pleaseenteryourmobilephonenumber')"
|
|
|
- :rules="formRules.phone_number" />
|
|
|
- <Field v-if="sign.ismix === 1 && isShow" :label="$t('banksign.banktype')" name="method_type" is-link >
|
|
|
+ <Field v-if="sign.ismix === 1 && isShow" type="number" name="phone_number"
|
|
|
+ :label="$t('banksign.mobilephone')" maxlength="30" v-model.trim="phone_number"
|
|
|
+ :placeholder="$t('banksign.Pleaseenteryourmobilephonenumber')" :rules="formRules.phone_number" />
|
|
|
+ <Field v-if="sign.ismix === 1 && isShow" :label="$t('banksign.banktype')" name="method_type" is-link>
|
|
|
<template #input>
|
|
|
<app-select v-model="method_type" :options="methodTypes" @confirm="onMethodTypeChange" />
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field v-if="sign.ismix === 1 && isShow && channel_banks.length != 0" :label="$t('banksign.bankname1')"
|
|
|
+ <Field v-if="sign.ismix === 1 && isShow && channel_banks.length != 0" :label="$t('banksign.bankname1')"
|
|
|
:placeholder="$t('banksign.Pleaseselectyourbank')" name="bank_code" v-model="hyBankName"
|
|
|
@click-input="showSelect = true" :rules="formRules.hyBankName" is-link />
|
|
|
</CellGroup>
|
|
|
@@ -100,16 +101,18 @@
|
|
|
import { shallowRef, ref, defineAsyncComponent, onMounted, computed } from 'vue'
|
|
|
import { Form, Field, Cell, CellGroup, Button, FieldRule, FormInstance, RadioGroup, Radio, showToast, showFailToast } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
-import { currencyFormat } from '@/filters'
|
|
|
+import { currencyFormat, handleNoneValue } from '@/filters'
|
|
|
import { useDoDeposit, useDoCusBankExtendConfigs, getMethodTypeKeys, useHybridConfigs } from '@/business/bank'
|
|
|
import { getServerTime } from '@/services/api/common'
|
|
|
import { useUserStore, useAccountStore, i18n } from '@/stores'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
-import { handleNoneValue } from '@/filters'
|
|
|
+import { useMetaPixel } from '@/hooks/meta-pixel'
|
|
|
import Stepper from '@mobile/components/base/stepper/index.vue'
|
|
|
import AppSelect from '@mobile/components/base/select/index.vue'
|
|
|
import moment from 'moment'
|
|
|
|
|
|
+const { trackEvent } = useMetaPixel()
|
|
|
+
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const { formData, onSubmit, sign } = useDoDeposit()
|
|
|
const { hybrids, channel_code, bank_code, method_type, method_types, channel_banks } = useHybridConfigs(0)
|
|
|
@@ -291,6 +294,12 @@ const formSubmit = () => {
|
|
|
formData.extendInfo = JSON.stringify(obj)
|
|
|
|
|
|
onSubmit().then(() => {
|
|
|
+ // 追踪入金结果
|
|
|
+ trackEvent('Purchase', {
|
|
|
+ currency: formData.Currency,
|
|
|
+ value: formData.Amount,
|
|
|
+ })
|
|
|
+
|
|
|
if (!isComplete) {
|
|
|
complete()
|
|
|
}
|