From 2adce788c1a411959b81f08d5569d92861c7f300 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期二, 17 十月 2023 16:54:52 +0800 Subject: [PATCH] 删除无用代码 修改部分逻辑 调整部分样式 --- pages/login/resetPassword/resetPassword.vue | 43 +++++++++++++++++++++++++++++++++++++------ 1 files changed, 37 insertions(+), 6 deletions(-) diff --git a/pages/login/resetPassword/resetPassword.vue b/pages/login/resetPassword/resetPassword.vue index a9f0586..8cd4b41 100644 --- a/pages/login/resetPassword/resetPassword.vue +++ b/pages/login/resetPassword/resetPassword.vue @@ -9,19 +9,31 @@ label="瀵嗙爜" required borderBottom> - <u--input v-model="modelForm.password" + <u-input v-if='inputType==="password"' + v-model="modelForm.password" border="surround" - placeholder="璇疯緭鍏ュ瘑鐮�" - type='password'></u--input> + placeholder="璇疯緭鍏ュ瘑鐮�(浠呮敮鎸佹暟瀛楀瓧姣嶄笅鍒掔嚎)" + :type='inputType' /> + <u-input v-else + v-model="modelForm.password" + border="surround" + placeholder="璇疯緭鍏ュ瘑鐮�(浠呮敮鎸佹暟瀛楀瓧姣嶄笅鍒掔嚎)" + :type='inputType' /> </u-form-item> <u-form-item prop="secondPassword" label="浜屾纭" required borderBottom> - <u--input v-model="modelForm.secondPassword" + <u-input v-if='inputType==="password"' + v-model="modelForm.secondPassword" border="surround" - placeholder="璇峰啀娆¤緭鍏ュ瘑鐮�" - type='password'></u--input> + placeholder="璇峰啀娆¤緭鍏ュ瘑鐮�(浠呮敮鎸佹暟瀛楀瓧姣嶄笅鍒掔嚎)" + type='password' /> + <u-input v-else + v-model="modelForm.secondPassword" + border="surround" + placeholder="璇峰啀娆¤緭鍏ュ瘑鐮�(浠呮敮鎸佹暟瀛楀瓧姣嶄笅鍒掔嚎)" + type='text' /> </u-form-item> <u-form-item> <view class="process-button"> @@ -30,6 +42,18 @@ :loading="processLoading" @click.stop="process"></u-button> </view> + </u-form-item> + <u-form-item prop="checkboxValue"> + <u-checkbox-group v-model="checkboxValue" + @change="checkChange"> + <u-checkbox label="鏄剧ず瀵嗙爜" + name="鏄剧ず" + iconSize="32" + label-size="32" + size="40" + shape="circle"> + </u-checkbox> + </u-checkbox-group> </u-form-item> </u-form> </view> @@ -40,6 +64,9 @@ data() { return { userInfo: {}, + checkboxValue: [], + inputType: 'password', + isFocus: false, modelForm: { password: '', secondPassword: '' @@ -68,6 +95,10 @@ this.$refs.uForm.setRules(this.rules) }, methods: { + checkChange(name) { + this.inputType = name.length === 0 ? 'password' : '' + this.isFocus = true + }, process() { if (this.modelForm.password !== this.modelForm.secondPassword) return uni.$u.toast('瀵嗙爜涓嶄竴鑷�,璇锋鏌�') this.userInfo.password = this.modelForm.secondPassword; -- Gitblit v1.9.1