publication v-1

This commit is contained in:
HAM!DREZA
2024-07-03 14:34:21 +03:30
parent d2f71b6b14
commit 1518075cc6
21 changed files with 247 additions and 185 deletions
+5 -4
View File
@@ -42,7 +42,7 @@
</button>
<p v-if="timer > 0" class="text-[3vw] md:text-[0.7vw] px-[2vw] md:px-[1vw] text-primaryGreen">
0{{ timer }} : 00
00:{{ timer < 10 ? '0' + timer : timer }}
</p>
<p
v-else
@@ -129,7 +129,7 @@ const code = ref(null);
const errors = ref([]);
const loading = ref(false);
const phoneNumber = useState("phoneNumber");
const timer = ref(5);
const timer = ref(59);
async function checkOtp() {
if (code.value == null) {
@@ -151,6 +151,7 @@ const timer = ref(5);
if (data.status === "Active") {
toast.success("ورود با موفقیت انجام شد")
authUser.value = data;
location.reload()
navigateTo("/");
}
loading.value = false;
@@ -173,7 +174,7 @@ async function resendSMS() {
});
loading.value = false;
toast.success("کد مجدد برای شما ارسال شد")
timer.value = 5;
timer.value = 59;
options.value = false;
} catch (error) {
loading.value = false;
@@ -194,7 +195,7 @@ async function resendCall() {
},
});
toast.success("درحال تماس با شما هستیم...")
timer.value = 5;
timer.value = 59;
options.value = false;
loading.value = false;
} catch (error) {