From 9d5b4d650e5b01081d3537c750e7469db4d161e3 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Tue, 29 Apr 2025 08:53:20 +0800
Subject: [PATCH] 提交
---
pages/tabBar/count/count.vue | 32 +++++++++++---------------------
1 files changed, 11 insertions(+), 21 deletions(-)
diff --git a/pages/tabBar/count/count.vue b/pages/tabBar/count/count.vue
index 2ae4c74..a246841 100644
--- a/pages/tabBar/count/count.vue
+++ b/pages/tabBar/count/count.vue
@@ -30,7 +30,7 @@
</view>
<view class="info-id" @click="resetPwd()">
- <span>修改密码</span><u-icon name="edit-pen" color="#e6e6e6" size="16"></u-icon>
+ <u-icon name="edit-pen" color="#e6e6e6" size="16"></u-icon><span>修改密码</span>
</view>
</view>
</view>
@@ -65,14 +65,9 @@
ref="password"
label="新密码"
>
- <u-input v-show="isPwd1" v-model="pwdForm.password" placeholder="请输入新密码" :password="true">
+ <u-input v-model="pwdForm.password" placeholder="请输入新密码" :password="isPwd1">
<template slot="suffix">
- <u-icon name="eye" color="#999" size="20" @click="isPwd1 = false"></u-icon>
- </template>
- </u-input>
- <u-input v-show="!isPwd1" v-model="pwdForm.password" placeholder="请输入新密码" :password="false">
- <template slot="suffix">
- <u-icon name="eye-off" color="#999" size="20" @click="isPwd1 = true"></u-icon>
+ <u-icon :name="isPwd1?'eye':'eye-off'" color="#999" size="20" @click="isPwd1 = !isPwd1"></u-icon>
</template>
</u-input>
</u-form-item>
@@ -81,14 +76,9 @@
ref="rePassword"
label="确认密码"
>
- <u-input v-show="isPwd2" v-model="pwdForm.rePassword" placeholder="请输入新密码" :password="true">
+ <u-input v-model="pwdForm.rePassword" placeholder="请输入新密码" :password="isPwd2">
<template slot="suffix">
- <u-icon name="eye" color="#999" size="20" @click="isPwd2 = false"></u-icon>
- </template>
- </u-input>
- <u-input v-show="!isPwd2" v-model="pwdForm.rePassword" placeholder="请输入新密码" :password="false">
- <template slot="suffix">
- <u-icon name="eye-off" color="#999" size="20" @click="isPwd2 = true"></u-icon>
+ <u-icon :name="isPwd2?'eye':'eye-off'" color="#999" size="20" @click="isPwd2 = !isPwd2"></u-icon>
</template>
</u-input>
</u-form-item>
@@ -123,7 +113,7 @@
examList: [],
totalPage: 0,
user: {},
- avator: '',
+ avator: avatorPic,
showModal: false,
pwdForm:{
id: null,
@@ -176,11 +166,11 @@
// uni.hideTabBar();
// this.getUserInfo()
this.user = uni.getStorageSync('userSet')
- if(this.user.logoPath && this.user.logoPath !== ''){
- this.avator = VUE_APP_BASE_URL + '/api/' + this.user.logoPath
- }else{
- this.avator = avatorPic
- }
+ // if(this.user.logoPath && this.user.logoPath !== ''){
+ // this.avator = VUE_APP_BASE_URL + '/api/' + this.user.logoPath
+ // }else{
+ // this.avator = avatorPic
+ // }
},
methods: {
--
Gitblit v1.9.2