|
@@ -102,15 +102,11 @@ export default {
|
|
|
},
|
|
|
async verify() {
|
|
|
try {
|
|
|
- const res = await this.$http.post(
|
|
|
+ await this.$http.post(
|
|
|
`/api/ecs_oe_student/sms/checkSmsCode?phoneNumber=${this.user.phoneNumber}&code=${this.code}`
|
|
|
);
|
|
|
- if (res.data.success) {
|
|
|
- this.phoneModal = false;
|
|
|
- localStorage.setItem("phoneVerified", "true");
|
|
|
- } else {
|
|
|
- this.$Message.error(res.data.returnMsg);
|
|
|
- }
|
|
|
+ this.phoneModal = false;
|
|
|
+ localStorage.setItem("phoneVerified", "true");
|
|
|
} catch (error) {
|
|
|
this.$Message.error({
|
|
|
content: "验证手机号接口失败,请重试!",
|