Commit 4e2d7abd authored by 李明环(东信)'s avatar 李明环(东信)

2024.11.2缺陷修改

parent fd8470cb
......@@ -196,7 +196,10 @@ const onChangeAge = (pickerView, value, columnIndex, resolve) => {
const ageSelectConfirm = () => {
if (value.value[0]) {
const [min, max] = value.value;
ageText.value = `${value.value[0]}-${value.value[1]}岁`;
pinias.formData.minAgeRequirement = min;
pinias.formData.maxAgeRequirement = max;
} else {
ageText.value = "不限";
}
......@@ -260,7 +263,7 @@ const initViewData = async () => {
educationText.value = await getEnumText("EnumEducationRequirement", pinias.formData.educationRequirement);
// 年龄
if (pinias.formData.maxAgeRequirement) {
ageText.value = `${pinias.formData.minAgeRequirement}~${pinias.formData.maxAgeRequirement}`;
ageText.value = `${pinias.formData.minAgeRequirement}~${pinias.formData.maxAgeRequirement}`;
} else {
ageText.value = "不限";
}
......
......@@ -70,9 +70,11 @@ const submit = () => {
});
}, 2000);
setTimeout(() => {
uni.switchTab({
pinias.resetForm();
/* uni.n({
url: "/pages/user/positionManagement/index"
});
}); */
uni.navigateBack();
}, 3000);
} else {
uni.showToast({
......@@ -105,10 +107,10 @@ const submit = () => {
});
}, 2000);
setTimeout(() => {
pinias.resetForm();
uni.switchTab({
url: "/pages/user/index"
});
pinias.resetForm();
}, 3000);
} else {
uni.showToast({
......
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 = "http://192.168.11.48:8080/";
// 创建一个 axios 实例
......@@ -39,31 +39,31 @@ instance.interceptors.response.use(
response => {
// 在这里可以对响应数据进行预处理
function handleError(message) {
function handleError(message) {
removeToken();
xma.showToast({
title: message,
icon: "none",
duration: 1900,
duration: 1900
});
setTimeout(() => {
xma.reLaunch({
url: "/pages/login/index",
url: "/pages/login/index"
});
}, 2000);
}
let { code } = response.data;
}
let { code, message } = response.data;
if (code == 200) {
return response.data;
} else if (code == 9) {
handleError("登录已过期");
} else if (code == 2) {
handleError("登录超时");
}else if (code ==8) {
} else if (code == 8) {
xma.showToast({
title: '未查到该企业',
title: message || "未查到该企业",
icon: "none",
duration: 1900,
duration: 1900
});
}
},
......
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