| | |
| | | <u-input v-if='inputType==="password"' |
| | | v-model="modelForm.originalPassword" |
| | | border="surround" |
| | | placeholder="请输入密码(仅支持数字字母下划线)" |
| | | placeholder="密码应由8-16位数字、字母、符号组成。" |
| | | :type='inputType' /> |
| | | <u-input v-else |
| | | v-model="modelForm.originalPassword" |
| | | border="surround" |
| | | placeholder="请输入密码(仅支持数字字母下划线)" |
| | | placeholder="密码应由8-16位数字、字母、符号组成。" |
| | | :type='inputType' /> |
| | | </u-form-item> |
| | | </template> |
| | |
| | | <u-input v-if='inputType==="password"' |
| | | v-model="modelForm.password" |
| | | border="surround" |
| | | placeholder="请输入密码(仅支持数字字母下划线)" |
| | | placeholder="密码应由8-16位数字、字母、符号组成。" |
| | | :type='inputType' /> |
| | | <u-input v-else |
| | | v-model="modelForm.password" |
| | | border="surround" |
| | | placeholder="请输入密码(仅支持数字字母下划线)" |
| | | placeholder="密码应由8-16位数字、字母、符号组成。" |
| | | :type='inputType' /> |
| | | </u-form-item> |
| | | <view class="intensity"> |
| | |
| | | <u-input v-if='inputType==="password"' |
| | | v-model="modelForm.secondPassword" |
| | | border="surround" |
| | | placeholder="请再次输入密码(仅支持数字字母下划线)" |
| | | placeholder="请再次输入密码" |
| | | type='password' /> |
| | | <u-input v-else |
| | | v-model="modelForm.secondPassword" |
| | | border="surround" |
| | | placeholder="请再次输入密码(仅支持数字字母下划线)" |
| | | placeholder="请再次输入密码" |
| | | type='text' /> |
| | | </u-form-item> |
| | | <u-form-item> |
| | |
| | | originalPassword:'', //原始密码 |
| | | password: '', //新密码 |
| | | secondPassword: '', //二次确认密码 |
| | | username:'' |
| | | username:'', |
| | | userId:'' |
| | | }, |
| | | processLoading: false, |
| | | rules: { |
| | |
| | | return uni.getStorageSync('roleType') |
| | | }, |
| | | userId() { |
| | | if(uni.getStorageSync('userId')) { |
| | | this.modelForm.userId = uni.getStorageSync('userId') |
| | | } |
| | | return uni.getStorageSync('userId') |
| | | } |
| | | }, |
| | |
| | | if(params.userInfo) { |
| | | console.log(JSON.parse(params.userInfo),'userInfo====') |
| | | this.modelForm.username = JSON.parse(params.userInfo).username |
| | | this.modelForm.userId = JSON.parse(params.userInfo).userId.toString() //userId |
| | | if(JSON.parse(params.userInfo).isShowPassword) { |
| | | this.isShowPassword = false |
| | | }else { |
| | |
| | | } |
| | | this.$refs.uForm.validate().then(res => { |
| | | this.processLoading = true; |
| | | let params = Object.assign({},this.modelForm, {userId:this.userId.toString()}) |
| | | console.log(params,'params=====') |
| | | this.$reqAllJson('appUpdateById', params, { method: 'PUT', 'Content-type': 'application/json' }).then(res => { |
| | | this.$reqAllJson('appUpdateById', this.modelForm, { method: 'PUT', 'Content-type': 'application/json' }).then(res => { |
| | | this.processLoading = false; |
| | | if (res.code === 0) { |
| | | this.$u.toast('修改成功,即将回到首页') |