Commit fdce5a4b by 冷斌

设置

parent 3d804913
111
<include file="__THEME__/public_header_w3g"/>
<div id="app">
<div class="layout_v" style="margin-top: 0.625rem;">
<van-field v-model="old" label="旧密码" type="password" maxlength="16" placeholder="请输入旧密码"></van-field>
<van-field v-model="newPwd" label="新密码" type="password" maxlength="16" placeholder="请输入新密码"></van-field>
<van-field v-model="rePwd" label="确认密码" type="password" maxlength="16" placeholder="请再次输入新密码"></van-field>
<div @click="onConfirm" :class="isOk ? 'confirm_button' : 'confirm_button_disable'"
style="margin-top: 6.625rem;">
<span>确认修改</span>
</div>
</div>
</div>
<script>
new Vue({
el: "#app",
data: function() {
return {
old: "",
newPwd: "",
rePwd: ""
}
},
computed: {
isOk: function () {
return this.old.length > 0 && (this.newPwd == this.rePwd)
}
},
methods: {
onConfirm: function () {
}
}
})
</script>
<include file="__THEME__/public_footer_w3g"/>
......@@ -24,7 +24,7 @@
},
computed: {
isOk: function () {
return this.old.length > 0 && (this.newPwd == this.rePwd)
return this.old.length > 0 && this.newPwd.length > 0 && (this.newPwd == this.rePwd)
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment