1

parent fffa27b3
......@@ -310,11 +310,11 @@ const filterConfirm = data => {
/* 获取用户信息 */
const getUserInfo = async () => {
const userRes = await getLoginUserApi();
// if (!userRes.companyName) {
// xma.navigateTo({
// url: `/pages/user/businessLicense/fillIn?steps=3`
// });
// }
if (userRes.data.status == 0) {
xma.navigateTo({
url: `/pages/user/businessLicense/fillIn?steps=3`
});
}
};
onLoad(() => {
xma.xh.getSystemInfo({
......
......@@ -201,16 +201,11 @@ const getUserInfo = async () => {
name.value = userRes.data.companyName;
id.value = userRes.data.companyId;
}
// if (!userRes.companyName) {
// xma.navigateTo({
// url: `/pages/user/businessLicense/fillIn?steps=3`
// });
// }
const { status } = userRes.data;
switch (status) {
case 0:
uni.navigateTo({
url: `/pages/user/businessLicense/fillIn`
url: `/pages/user/businessLicense/fillIn?steps=3`
});
uni.hideTabBar();
break;
......
import axios from "axios";
import { getToken,removeToken } from "@/utils/token";
const baseURL = "https://lygsh-api.wjzpgz.com/";
// const baseURL = "http://192.168.11.48:8080/";
// const baseURL = "https://lygsh-api.wjzpgz.com/";
const baseURL = "http://192.168.11.48:8080/";
// 创建一个 axios 实例
const instance = axios.create({
baseURL, // 设置基础 URL
......
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