|
@@ -65,7 +65,7 @@
|
|
|
import { reactive } from 'vue'
|
|
import { reactive } from 'vue'
|
|
|
import AuthInputItem from '@/components/auth/AuthInputItem.vue'
|
|
import AuthInputItem from '@/components/auth/AuthInputItem.vue'
|
|
|
import { useFormValidator } from '@/composables/useFormValidator'
|
|
import { useFormValidator } from '@/composables/useFormValidator'
|
|
|
-import { resetPasswordRules } from '@/validators/resetPassword'
|
|
|
|
|
|
|
+import { logingRules } from '@/validators/authFormRules'
|
|
|
import { debounce } from '@/plugins/debounce'
|
|
import { debounce } from '@/plugins/debounce'
|
|
|
import { useCodeCountdown } from '@/composables/useCodeCountdown'
|
|
import { useCodeCountdown } from '@/composables/useCodeCountdown'
|
|
|
import { getPwdCodeForNoAuthApi, updUserPwdApi } from '@/services/modules/auth/index'
|
|
import { getPwdCodeForNoAuthApi, updUserPwdApi } from '@/services/modules/auth/index'
|
|
@@ -76,10 +76,7 @@ const form = reactive({
|
|
|
password: '',
|
|
password: '',
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-const { errors, validate, validateField, clearFieldError } = useFormValidator(
|
|
|
|
|
- resetPasswordRules,
|
|
|
|
|
- form
|
|
|
|
|
-)
|
|
|
|
|
|
|
+const { errors, validate, validateField, clearFieldError } = useFormValidator(logingRules, form)
|
|
|
|
|
|
|
|
const handleClickLeft = () => {
|
|
const handleClickLeft = () => {
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|