-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUserValidateViewModel.js
More file actions
33 lines (32 loc) · 1.15 KB
/
Copy pathUserValidateViewModel.js
File metadata and controls
33 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
define(["../utils/SysConfig",
"../utils/SysUrl", "../utils/CreateObject",
"../viewmodel/ModuleBase",
"../moduler/rs_UserValidate"],
function (SysConfig,CreateObject, SysUrl, ModuleBase, rs_UserValidate) {
function Control() {
ModuleBase.MBase.call(this);
CreateObject(Control, ModuleBase.MBase);
this.init();
}
Control.prototype = {
init: function () {
var self = this;
self.module = rs_UserValidate.Req;
self.module.SIGNATURE = window.SysInfo.baseGuid;//签名
self.Url = SysUrl.getApiUrl("ADAPTER", rs_UserValidate.Act);
},
//用户认证
setter: function (mobile, password) {
var self = this;
self.module.MOBILE = mobile;// 电话号码
self.module.PASSWD = password;// 密码
},
userValidate: function (callfunc) {
var self = this;
self.Data = this.module;
self.CallBack = callfunc;
self.Ajax();
}
};
return Control;
});