1

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