|
@@ -67,6 +67,7 @@ import { useAppStore } from "@/stores/app";
|
|
|
import { useUserStore } from "@/stores/user";
|
|
import { useUserStore } from "@/stores/user";
|
|
|
import { getCaptchaImage } from "@/api/login";
|
|
import { getCaptchaImage } from "@/api/login";
|
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
|
|
|
+import { sendMessage } from "@/api/login";
|
|
|
|
|
|
|
|
const appStore = useAppStore();
|
|
const appStore = useAppStore();
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
@@ -75,7 +76,7 @@ const router = useRouter();
|
|
|
// 表单数据
|
|
// 表单数据
|
|
|
const form = ref({
|
|
const form = ref({
|
|
|
// phone: "13960760931",
|
|
// phone: "13960760931",
|
|
|
- // captcha: "336699",
|
|
|
|
|
|
|
+ // imgCode: "336699",
|
|
|
// smsCode: "336699",
|
|
// smsCode: "336699",
|
|
|
phone: "13401079738",
|
|
phone: "13401079738",
|
|
|
imgCode: "170101",
|
|
imgCode: "170101",
|
|
@@ -126,7 +127,7 @@ function sendSmsCode() {
|
|
|
showToast("请输入手机号码");
|
|
showToast("请输入手机号码");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (!form.value.captcha) {
|
|
|
|
|
|
|
+ if (!form.value.imgCode) {
|
|
|
showToast("请输入图片验证码");
|
|
showToast("请输入图片验证码");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -138,7 +139,7 @@ function sendSmsCode() {
|
|
|
clearInterval(countTimer);
|
|
clearInterval(countTimer);
|
|
|
}
|
|
}
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
- sendMessage(form.value.phone, imgcodeid.value, form.value.captcha).then(
|
|
|
|
|
|
|
+ sendMessage(form.value.phone, imgcodeid.value, form.value.imgCode).then(
|
|
|
(res) => {
|
|
(res) => {
|
|
|
if (!res.success) {
|
|
if (!res.success) {
|
|
|
showToast(res.message);
|
|
showToast(res.message);
|