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

@@ -50,8 +50,9 @@
<image class="reflash-icon" src="/static/icon/Repeat.png" mode=""></image>
刷新验证码
</view>
<u-checkbox v-model="is_read" size="26" class="must-read" :label-disabled="true">
我已阅读并同意<span @click="showFile1=true">用户协议</span><span @click="showFile2=true">隐私政策</span>
<u-checkbox v-model="is_read" size="26" class="must-read">
我已阅读并同意
<span @click.stop="showFile1=true">用户协议</span><span @click.stop="showFile2=true">隐私政策</span>
</u-checkbox>
<u-button type="primary" class="register-btn" @click="handleRegister">立即注册</u-button>
@@ -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;

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