-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
85 lines (66 loc) · 1.87 KB
/
Copy pathserver.js
File metadata and controls
85 lines (66 loc) · 1.87 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
define("services",["js/jquery.min.js"],function(){
var prefix = "http://120.24.215.190:112/";
function login(p,c){
$.get(prefix + "changeservice/login/"+p.username+"/"+p.pwd,c)
}
function getUser(id,c){
$.get(prefix + "changeservice/phoneuserinfo/"+id,c);
}
function getMessage(id,c){
$.get(prefix + "changeservice/msgs/"+id,c);
}
function getChangeTypes(c){
$.get(prefix + "changeservice/changetypes?parent=",c);
}
function getPicUrl(p,c){
return prefix +"UploadHandler.ashx?action=uploadimage&changeid="+p;
}
function upFileBusiness(p,c){
return prefix +"UploadHandler.ashx?action=uploadbusinessimage&changeid="+p;
}
function uploadlicenseimage(p,c){
return prefix +"UploadHandler.ashx?action=uploadlicenseimage&changeid="+p;
}
function postChange(p,c){
$.get(prefix +"changeservice/changeupload",p,c);
}
function getChanges(p,c){
$.get(prefix + "changeservice/changequery", p,c)
}
function getOtherChanges(p,c){
$.get(prefix + "changeservice/otherchanges?phone="+p,c)
}
function getChangeByStatus(s,c){
$.get(prefix + "changeservice/changes/"+s,c)
}
function getChangeDetail(s,c){
$.get(prefix + "changeservice/change/"+s,c)
}
function getQuery(s,c){
$.get(prefix + "changeservice/placequery",s,c)
}
function businessupload(p,c){
$.get(prefix +"changeservice/businessupload",p,c);
}
function businessquery(p,c){
$.get(prefix +"changeservice/businessquery",p,c);
}
return {
login:login,
getUser:getUser,
getMessage:getMessage,
getChangeTypes:getChangeTypes,
getPicUrl:getPicUrl,
postChange:postChange,
getChanges:getChanges,
getOtherChanges:getOtherChanges,
getChangeByStatus:getChangeByStatus,
getChangeDetail:getChangeDetail,
getQuery:getQuery,
prefix:prefix,
upFileBusiness:upFileBusiness,
uploadlicenseimage:uploadlicenseimage,
businessupload:businessupload,
businessquery:businessquery
}
});