|
|
@@ -78,11 +78,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { reactive, shallowRef, ref, computed, onMounted, useAttrs, toRaw } from 'vue'
|
|
|
+import { reactive, shallowRef, ref, computed, onMounted, useAttrs } from 'vue'
|
|
|
import { CellGroup, Cell, Button, Field, Form, FormInstance, Checkbox, showFailToast, showToast, FieldRule, Popup, Picker, PickerConfirmEventParams, showSuccessToast } from 'vant'
|
|
|
import { useCountDown } from '@vant/use'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
+import { tmMatchAccountID } from '@/filters'
|
|
|
import { validateRules } from '@/constants/regex'
|
|
|
+import { useMetaPixel } from '@/hooks/meta-pixel'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { userRegister, sendRegisterVerifyCode, queryMyRegisterMoney } from '@/services/api/common'
|
|
|
import { i18n, useGlobalStore, useUserStore, useErrorInfoStore } from '@/stores'
|
|
|
@@ -109,6 +111,7 @@ defineProps({
|
|
|
|
|
|
const emit = defineEmits<{ (event: string, ...args: unknown[]): void }>()
|
|
|
|
|
|
+const { trackEvent } = useMetaPixel()
|
|
|
const attrs = useAttrs()
|
|
|
|
|
|
// 是否弹出选择器
|
|
|
@@ -241,7 +244,10 @@ const formRules: { [key: string]: FieldRule[] } = {
|
|
|
|
|
|
// 路由跳转
|
|
|
const routerAction = () => {
|
|
|
- emit('trackLead', toRaw(formData))
|
|
|
+ // 追踪注册结果
|
|
|
+ trackEvent('Lead', {
|
|
|
+ content_name: tmMatchAccountID(formData.mobilephone)
|
|
|
+ })
|
|
|
|
|
|
if (attrs.onRouterAction) {
|
|
|
emit('routerAction')
|