登录逻辑

parent e488b694
......@@ -43,7 +43,7 @@ const login = () => {
});
} else {
uni.navigateTo({
url: "/pages/user/businessLicense/fillIn"
url: "/pages/user/businessLicense/fillIn?steps=1"
});
}
});
......
......@@ -25,12 +25,10 @@ const login = async () => {
// 已经判断是否注册过企业
if (userInfoRes.data) {
const { status } = userInfoRes.data;
console.log("status", typeof status);
switch (status) {
case 0:
uni.navigateTo({
url: `/pages/user/businessLicense/fillIn`
url: `/pages/user/businessLicense/fillIn?steps=1`
});
break;
default:
......@@ -41,7 +39,7 @@ const login = async () => {
}
} else {
uni.navigateTo({
url: `/pages/user/businessLicense/fillIn`
url: `/pages/user/businessLicense/fillIn?steps=1`
});
}
}
......
......@@ -178,13 +178,6 @@ const nextStep = () => {
default:
break;
}
if (flag) {
uni.showToast({
title: "请先完成操作",
icon: "none"
});
return;
}
};
/* 选择图片 */
const chooseImage = sourceType => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment