2025-09-17

修改登录密码错误提示
修改注册查看协议样式
This commit is contained in:
2025-09-17 15:58:29 +08:00
parent 0082b61da3
commit 7423e1ff56
2 changed files with 13 additions and 12 deletions

View File

@@ -151,6 +151,8 @@ const handleError = (errorInfo) => {
const currentPage = pages[pages.length - 1]
const currentRoute = currentPage ? currentPage.route : ''
console.log(data);
// 判断当前是否在代理相关页面
if (currentRoute && currentRoute.includes('agent')) {
uni.redirectTo({
@@ -162,14 +164,11 @@ const handleError = (errorInfo) => {
icon: "error"
})
} else {
uni.redirectTo({
url: '/pages/user/mylogin'
})
// uToast.error('登录已过期,请重新登录')
uni.showToast({
title: '登录已过期,请重新登录',
title: data.message,
icon: "error"
})
// uToast.error('登录已过期,请重新登录')
}
break
@@ -243,7 +242,7 @@ const handleError = (errorInfo) => {
})
break
// case 400:
// case 400:
// 处理业务逻辑错误(如坏账等)
// uToast.error(data.error?.message || data.message || '请求失败')
// uni.showToast({
@@ -278,7 +277,7 @@ const handleError = (errorInfo) => {
// 封装常用的请求方法
export const http = {
get: (url,params={}, config = {}) => request({
get: (url, params = {}, config = {}) => request({
url,
method: 'GET',
...config