publication v-1
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user