diff --git a/pages/register/register.vue b/pages/register/register.vue
index 8c90e48..2791762 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -50,8 +50,9 @@
刷新验证码
-
- 我已阅读并同意《用户协议》和《隐私政策》
+
+ 我已阅读并同意
+ 《用户协议》和《隐私政策》
立即注册
@@ -445,18 +446,19 @@
font-family: Work Sans;
font-weight: 400;
leading-trim: NONE;
- line-height: 100%;
+ // line-height: 30rpx;
letter-spacing: -2%;
text-align: center;
color: #000000;
text-align: left;
+ white-space: nowrap;
span {
font-family: Work Sans;
font-weight: 400;
- font-size: 26rpxpx;
+ font-size: 26rpx;
leading-trim: NONE;
- line-height: 100%;
+ // line-height: 30rpx;
letter-spacing: -2%;
text-align: center;
color: #3781EF;
diff --git a/util/api.js b/util/api.js
index 6ba6e23..4b3db0b 100644
--- a/util/api.js
+++ b/util/api.js
@@ -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