-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRmdBBSViewModel.js
More file actions
33 lines (32 loc) · 1.11 KB
/
Copy pathRmdBBSViewModel.js
File metadata and controls
33 lines (32 loc) · 1.11 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
//获取推荐设区(V2.0 新增)
define(["../utils/SysConfig",
"../utils/SysUrl",
"../utils/CreateObject",
"../viewmodel/ModuleBase",
"../moduler/rs_RecommandBBS"],
function (SysConfig,SysUrl, CreateObject, ModuleBase, rs_RecommandBBS) {
function Control() {
ModuleBase.MBase.call(this);
CreateObject(Control, ModuleBase.MBase);
this.init();
}
Control.prototype = {
init: function () {
var self = this;
self.module = rs_RecommandBBS.Req;
self.module.SIGNATURE = window.SysInfo.baseGuid;//签名
self.Url = SysUrl.getApiUrl("ADAPTER", rs_RecommandBBS.Act);
},
setter: function (userid, thumb) {
var self = this;
self.module.USERID = userid;// 用户ID
},
getRecommandBBS: function (callfunc) {
var self = this;
self.Data = this.module;
self.CallBack = callfunc;
self.Ajax();
}
};
return Control;
});