-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactdetail.js
44 lines (37 loc) · 1.05 KB
/
actdetail.js
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
34
35
36
37
38
39
40
41
42
43
44
define(function(require){
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var Model = function(){
this.callParent();
};
Model.prototype.enrollBtnClick = function(event){
var aid = this.comp("activityData").getValue("aid");
var aname = this.comp("activityData").getValue("aname");
var acontent = this.comp("activityData").getValue("acontent");
var aimg = this.comp("activityData").getValue("aimg");
var adate = this.comp("activityData").getValue("adate");
var aorganizer = this.comp("activityData").getValue("aorganizer");
var userID = localStorage.getItem("userID");
justep.Baas.sendRequest({
"url" : "/jdy/jdy1_action",
"action" : "myAct",
"async" : false,
"params" : {
"aid":aid,
"userID":userID,
"aname":aname,
"acontent":acontent,
"aimg":aimg,
"adate":adate,
"aorganizer":aorganizer
},
"success" : function(data) {
alert(data.re);
}
});
};
Model.prototype.backBtnClick = function(event){
this.comp("windowDialog1").open({src:"index.w"});
};
return Model;
});