改变故障上报路径 修改样式

This commit is contained in:
zhouyanli
2026-04-29 11:02:36 +08:00
parent e0ff09374c
commit 1464fe9d7d
11 changed files with 1146 additions and 738 deletions

View File

@@ -9,26 +9,26 @@
<!-- 旧密码输入框 -->
<view class="input-item">
<uni-easyinput
class="input-content"
type="password"
<uni-easyinput
class="input-content"
type="password"
v-model="oldPassword"
placeholder="请输入旧密码"
:inputBorder="false"
placeholder="请输入旧密码"
:inputBorder="false"
:placeholderStyle="placeholderStyle"
@input="checkForm"
>
</uni-easyinput>
</view>
<!-- 新密码输入框 -->
<view class="input-item">
<uni-easyinput
class="input-content"
type="password"
<uni-easyinput
class="input-content"
type="password"
v-model="newPassword"
placeholder="请输入新密码(6-16位,含字母+数字)"
:inputBorder="false"
placeholder="请输入新密码(6-16位,含字母+数字)"
:inputBorder="false"
:placeholderStyle="placeholderStyle"
@input="checkForm"
>
@@ -37,12 +37,12 @@
<!-- 确认密码输入框 -->
<view class="input-item">
<uni-easyinput
class="input-content"
type="password"
<uni-easyinput
class="input-content"
type="password"
v-model="confirmPassword"
placeholder="请再次输入新密码"
:inputBorder="false"
placeholder="请再次输入新密码"
:inputBorder="false"
:placeholderStyle="placeholderStyle"
@input="checkForm"
>
@@ -55,8 +55,8 @@
</view>
<!-- 确定按钮 -->
<button
class="confirm-btn"
<button
class="confirm-btn"
:disabled="!canConfirm"
@click="handleConfirm"
>
@@ -88,15 +88,15 @@ const smsCode = ref('');
const canConfirm = computed(() => {
// 密码格式规则:6-16位,必须包含字母+数字
const pwdReg = /^(?=.*[a-zA-Z])(?=.*\d).{6,16}$/;
// 校验条件:
// 1. 旧密码不为空
// 2. 新密码符合格式
// 3. 确认密码和新密码一致
// 1. 旧密码不为空
// 2. 新密码符合格式
// 3. 确认密码和新密码一致
// 4. 所有密码输入框不为空
return oldPassword.value.trim()
&& pwdReg.test(newPassword.value)
&& newPassword.value === confirmPassword.value
return oldPassword.value.trim()
&& pwdReg.test(newPassword.value)
&& newPassword.value === confirmPassword.value
&& newPassword.value && confirmPassword.value;
});
@@ -109,11 +109,11 @@ const goBack = () => {
// 页面显示时读取缓存参数
onShow(() => {
// 从缓存读取参数
const params = uni.getStorageSync('tempChangePwdParams') || {};
const params = uni.getStorageSync('tempChangePwdParams') || {};
// 赋值
phone.value = params.phoneNumber || ''
smsCode.value = params.verifyCode || ''
// 校验参数是否完整
// if (!phone.value || !smsCode.value) {
// uni.showToast({
@@ -124,7 +124,7 @@ onShow(() => {
// goBack()
// }, 1500)
// }
// 用完删除缓存(避免下次跳转读取旧值)
uni.removeStorageSync('tempChangePwdParams');
});
@@ -266,7 +266,7 @@ const handleConfirm = () => {
background-color: #4D5DFA;
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
font-size: 28rpx;
margin-top: 20rpx;
border: none;
}
@@ -282,4 +282,4 @@ button:after {
border: none;
border-radius: 44rpx;
}
</style>
</style>