|
|
@@ -194,7 +194,7 @@ export default {
|
|
|
let register = async body => {
|
|
|
let res = await this.$axios.$post("/api/passport/register", body);
|
|
|
if (res && res.data) {
|
|
|
- this.$message(res.data.info);
|
|
|
+ this.$message.success(res.info);
|
|
|
setTimeout(() => {
|
|
|
location.href = "/user/success";
|
|
|
}, 1000);
|
|
|
@@ -212,7 +212,6 @@ export default {
|
|
|
};
|
|
|
register(body);
|
|
|
} else {
|
|
|
- console.log("error submit!!");
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
@@ -227,7 +226,6 @@ export default {
|
|
|
};
|
|
|
register(body);
|
|
|
} else {
|
|
|
- console.log("error submit!!");
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
@@ -259,8 +257,6 @@ export default {
|
|
|
appId: "2db960e4ca0eaeee12ef63db7e5b3918", //appId,在控制台中“应用管理”或“应用配置”模块获取
|
|
|
style: "popup",
|
|
|
success: async function(token) {
|
|
|
- console.log("token:", token);
|
|
|
- //console.log(area + mobile)
|
|
|
let res = await that.$axios.$post("/api/user/sendMobileAuthCode", {
|
|
|
mobile: area + "-" + mobile,
|
|
|
token,
|
|
|
@@ -268,7 +264,6 @@ export default {
|
|
|
});
|
|
|
if (res) {
|
|
|
run();
|
|
|
- // this.$message(res.info);
|
|
|
myCaptcha.hide();
|
|
|
}
|
|
|
}
|