2025-09-17
修改登录密码错误提示 修改注册查看协议样式
This commit is contained in:
@@ -50,8 +50,9 @@
|
|||||||
<image class="reflash-icon" src="/static/icon/Repeat.png" mode=""></image>
|
<image class="reflash-icon" src="/static/icon/Repeat.png" mode=""></image>
|
||||||
刷新验证码
|
刷新验证码
|
||||||
</view>
|
</view>
|
||||||
<u-checkbox v-model="is_read" size="26" class="must-read" :label-disabled="true">
|
<u-checkbox v-model="is_read" size="26" class="must-read">
|
||||||
我已阅读并同意<span @click="showFile1=true">《用户协议》</span>和<span @click="showFile2=true">《隐私政策》</span>
|
我已阅读并同意
|
||||||
|
<span @click.stop="showFile1=true">《用户协议》</span>和<span @click.stop="showFile2=true">《隐私政策》</span>
|
||||||
</u-checkbox>
|
</u-checkbox>
|
||||||
<u-button type="primary" class="register-btn" @click="handleRegister">立即注册</u-button>
|
<u-button type="primary" class="register-btn" @click="handleRegister">立即注册</u-button>
|
||||||
|
|
||||||
@@ -445,18 +446,19 @@
|
|||||||
font-family: Work Sans;
|
font-family: Work Sans;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
leading-trim: NONE;
|
leading-trim: NONE;
|
||||||
line-height: 100%;
|
// line-height: 30rpx;
|
||||||
letter-spacing: -2%;
|
letter-spacing: -2%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-family: Work Sans;
|
font-family: Work Sans;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 26rpxpx;
|
font-size: 26rpx;
|
||||||
leading-trim: NONE;
|
leading-trim: NONE;
|
||||||
line-height: 100%;
|
// line-height: 30rpx;
|
||||||
letter-spacing: -2%;
|
letter-spacing: -2%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #3781EF;
|
color: #3781EF;
|
||||||
|
|||||||
11
util/api.js
11
util/api.js
@@ -151,6 +151,8 @@ const handleError = (errorInfo) => {
|
|||||||
const currentPage = pages[pages.length - 1]
|
const currentPage = pages[pages.length - 1]
|
||||||
const currentRoute = currentPage ? currentPage.route : ''
|
const currentRoute = currentPage ? currentPage.route : ''
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
// 判断当前是否在代理相关页面
|
// 判断当前是否在代理相关页面
|
||||||
if (currentRoute && currentRoute.includes('agent')) {
|
if (currentRoute && currentRoute.includes('agent')) {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
@@ -162,14 +164,11 @@ const handleError = (errorInfo) => {
|
|||||||
icon: "error"
|
icon: "error"
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
|
||||||
url: '/pages/user/mylogin'
|
|
||||||
})
|
|
||||||
// uToast.error('登录已过期,请重新登录')
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '登录已过期,请重新登录',
|
title: data.message,
|
||||||
icon: "error"
|
icon: "error"
|
||||||
})
|
})
|
||||||
|
// uToast.error('登录已过期,请重新登录')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
||||||
@@ -278,7 +277,7 @@ const handleError = (errorInfo) => {
|
|||||||
|
|
||||||
// 封装常用的请求方法
|
// 封装常用的请求方法
|
||||||
export const http = {
|
export const http = {
|
||||||
get: (url,params={}, config = {}) => request({
|
get: (url, params = {}, config = {}) => request({
|
||||||
url,
|
url,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
...config
|
...config
|
||||||
|
|||||||
Reference in New Issue
Block a user