|
@@ -213,7 +213,9 @@ export default {
|
|
|
this.$queue.showToast("请输入手机号");
|
|
this.$queue.showToast("请输入手机号");
|
|
|
} else if (phone.length !== 11) {
|
|
} else if (phone.length !== 11) {
|
|
|
this.$queue.showToast("请输入正确的手机号");
|
|
this.$queue.showToast("请输入正确的手机号");
|
|
|
- } else {
|
|
|
|
|
|
|
+ } else if(this.sendTime != '获取验证码'){
|
|
|
|
|
+ return;
|
|
|
|
|
+ }else {
|
|
|
this.$queue.showLoading("正在发送验证码...");
|
|
this.$queue.showLoading("正在发送验证码...");
|
|
|
this.$Request.getT("/app/Login/sendMsg/" + phone + "/1").then((res) => {
|
|
this.$Request.getT("/app/Login/sendMsg/" + phone + "/1").then((res) => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
@@ -332,20 +334,20 @@ export default {
|
|
|
res.user.avatar ? res.user.avatar : "../../static/logo.png"
|
|
res.user.avatar ? res.user.avatar : "../../static/logo.png"
|
|
|
);
|
|
);
|
|
|
this.getUserInfo();
|
|
this.getUserInfo();
|
|
|
- setTimeout(function () {
|
|
|
|
|
- // 这里判断一下看是否是第一次登录如果是就跳到引导页,如果不是就正常跳
|
|
|
|
|
- // let firstLogin = uni.getStorageSync("firstLogin") || false;
|
|
|
|
|
- console.log("userType:",res.user.userType)
|
|
|
|
|
- if (!res.user.userType) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/my/jobApplicant/guidePage",
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- uni.switchTab({
|
|
|
|
|
- url: "/pages/index/index",
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- }, 1000);
|
|
|
|
|
|
|
+ // setTimeout(function () {
|
|
|
|
|
+ // // 这里判断一下看是否是第一次登录如果是就跳到引导页,如果不是就正常跳
|
|
|
|
|
+ // // let firstLogin = uni.getStorageSync("firstLogin") || false;
|
|
|
|
|
+ // console.log("userType:",res.user.userType)
|
|
|
|
|
+ // if (!res.user.userType) {
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
|
+ // url: "/pages/my/jobApplicant/guidePage",
|
|
|
|
|
+ // });
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // uni.switchTab({
|
|
|
|
|
+ // url: "/pages/index/index",
|
|
|
|
|
+ // });
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }, 1000);
|
|
|
} else {
|
|
} else {
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
@@ -416,8 +418,8 @@ export default {
|
|
|
this.invitationCode = res.data.invitationCode;
|
|
this.invitationCode = res.data.invitationCode;
|
|
|
uni.setStorageSync("invitationCode", res.data.invitationCode);
|
|
uni.setStorageSync("invitationCode", res.data.invitationCode);
|
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
|
- uni.switchTab({
|
|
|
|
|
- url: "pages/my/jobApplicant/registerSuccess",//pages/my/jobApplicant/registerSuccess
|
|
|
|
|
|
|
+ uni.reLaunch({
|
|
|
|
|
+ url: "/pages/my/jobApplicant/registerSuccess",//pages/my/jobApplicant/registerSuccess
|
|
|
});
|
|
});
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
return
|
|
return
|