Browse Source

1. HL-6189

hella_online_20241011
bjang03 2 months ago
parent
commit
d4d187045c
  1. 11
      src/views/login/updatePasswordNewTips.vue

11
src/views/login/updatePasswordNewTips.vue

@ -5,10 +5,10 @@
<el-row type="flex" justify="center" align="middle">
<el-col>
<el-form-item label="旧密码" prop="oldPassword" align="center">
<el-input v-model="loginData.oldPassword" placeholder="请输入旧密码" :type="isShowPassword?'text':'password'"/>
<el-icon style="position: absolute; right: 10px;cursor: pointer;" color="#a5a5a5" size="20" @click="isShowPassword = !isShowPassword">
<View v-if="!isShowPassword"/>
<Hide v-if="isShowPassword"/>
<el-input v-model="loginData.oldPassword" placeholder="请输入旧密码" :type="isShowOldPassword?'text':'password'"/>
<el-icon style="position: absolute; right: 10px;cursor: pointer;" color="#a5a5a5" size="20" @click="isShowOldPassword = !isShowOldPassword">
<View v-if="!isShowOldPassword"/>
<Hide v-if="isShowOldPassword"/>
</el-icon>
</el-form-item>
</el-col>
@ -57,6 +57,7 @@
const iconCircleCheck = useIcon({ icon: 'ep:circle-check' })
const route = useRoute() //
const rules = {
oldPassword: [required],
password: [required],
againPassword: [required]
}
@ -69,7 +70,7 @@
})
const isShowPassword = ref(false)
const isShowAgainPassword = ref(false)
const isShowOldPassword = ref(false)
const loading = ref(false);
const submitForm = async () => {
try {

Loading…
Cancel
Save