fix: 修复设置密码在真机上兼容问题

This commit is contained in:
Waiting 2025-02-13 21:54:31 +08:00
parent 1c8de323fe
commit 2d3147d65d
2 changed files with 8 additions and 5 deletions

View File

@ -23,12 +23,13 @@
<view class="input-wrapper">
<u-input
v-model="oldPassword"
:type="showOldPassword ? 'text' : 'password'"
type="text"
placeholder="请输入原密码"
:maxlength="6"
:border="false"
fontSize="28rpx"
:disabled="isClosePassword"
:password="!showOldPassword"
/>
<u-icon
:name="showOldPassword ? 'eye-fill' : 'eye-off'"
@ -48,11 +49,12 @@
<view class="input-wrapper">
<u-input
v-model="newPassword"
:type="showNewPassword ? 'text' : 'password'"
type="text"
placeholder="请输入6位数字密码"
maxlength="6"
:border="false"
fontSize="28rpx"
:password="!showNewPassword"
@input="validateInput"
/>
<u-icon
@ -70,11 +72,12 @@
<view class="input-wrapper">
<u-input
v-model="confirmPassword"
:type="showConfirmPassword ? 'text' : 'password'"
type="text"
placeholder="请再次输入密码"
maxlength="6"
:border="false"
fontSize="28rpx"
:password="!showConfirmPassword"
@input="validateInput"
/>
<u-icon

View File

@ -154,7 +154,7 @@ const switchCompany = () => {
userStore.setUserInfo(userList[index]);
userStore.setCompanyInfo(companyList[index]);
avatarModifyRemind();
// avatarModifyRemind();
});
});
};
@ -208,7 +208,7 @@ const fetchCompanyList = (fn: any = undefined) => {
userStore.setUserInfo(userList.value[index]);
userStore.setCompanyInfo(companyList.value[index]);
avatarModifyRemind();
// avatarModifyRemind();
//
if(getApp()?.globalData?.shareCompanyId && getApp()?.globalData?.shareStoreId) {