|
@@ -29,7 +29,7 @@ import { useRequestCaptchaVerify } from '@/business/user/account';
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
|
|
|
|
|
-import { shallowRef, ref, computed } from 'vue'
|
|
|
|
|
|
|
+import { shallowRef, ref, computed, onMounted } from 'vue'
|
|
|
import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
|
|
import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useCountDown } from '@vant/use'
|
|
import { useCountDown } from '@vant/use'
|
|
@@ -38,7 +38,6 @@ import { getUserInfoType } from '@/services/methods/user'
|
|
|
const { loading, CaptchaVerifyFormData, onCaptchaVerify } = useRequestCaptchaVerify()
|
|
const { loading, CaptchaVerifyFormData, onCaptchaVerify } = useRequestCaptchaVerify()
|
|
|
const { formData, onCaptcaResend } = useRequestCaptcaResend()
|
|
const { formData, onCaptcaResend } = useRequestCaptcaResend()
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
-import { onActivated } from 'vue';
|
|
|
|
|
|
|
|
|
|
const showModal = shallowRef(true)
|
|
const showModal = shallowRef(true)
|
|
|
const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
@@ -113,7 +112,8 @@ defineExpose({
|
|
|
closed,
|
|
closed,
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-onActivated(() => {
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ isCountdown.value = true
|
|
|
/// 默认倒计时
|
|
/// 默认倒计时
|
|
|
countdown.start()
|
|
countdown.start()
|
|
|
})
|
|
})
|