mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
f2174a990d
commit
ad99187b75
@ -10,37 +10,29 @@
|
||||
reNewPwd: ''
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
},
|
||||
_initEvent: function () {
|
||||
},
|
||||
_initMethod: function() {},
|
||||
_initEvent: function() {},
|
||||
methods: {
|
||||
assetImportValidate: function() {
|
||||
return vc.validate.validate({
|
||||
changeStaffPwdInfo: vc.component.changeStaffPwdInfo
|
||||
}, {
|
||||
|
||||
'changeStaffPwdInfo.oldPwd': [
|
||||
{
|
||||
'changeStaffPwdInfo.oldPwd': [{
|
||||
limit: "required",
|
||||
param: "",
|
||||
errInfo: "原始密码不能为空"
|
||||
}
|
||||
],
|
||||
'changeStaffPwdInfo.newPwd': [
|
||||
{
|
||||
}],
|
||||
'changeStaffPwdInfo.newPwd': [{
|
||||
limit: "required",
|
||||
param: "",
|
||||
errInfo: "新密码不能为空"
|
||||
}
|
||||
],
|
||||
'changeStaffPwdInfo.reNewPwd': [
|
||||
{
|
||||
}],
|
||||
'changeStaffPwdInfo.reNewPwd': [{
|
||||
limit: "required",
|
||||
param: "",
|
||||
errInfo: "确认密码不能为空"
|
||||
}
|
||||
]
|
||||
}]
|
||||
});
|
||||
},
|
||||
_changePwd: function() {
|
||||
@ -52,9 +44,8 @@
|
||||
return;
|
||||
}
|
||||
vc.http.apiPost(
|
||||
'/user.changeStaffPwd"',
|
||||
JSON.stringify(vc.component.changeStaffPwdInfo),
|
||||
{
|
||||
'/user.changeStaffPwd',
|
||||
JSON.stringify(vc.component.changeStaffPwdInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function(json, res) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user