-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjm-service.js
39 lines (38 loc) · 1.33 KB
/
jm-service.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
$(function(){
var baseUrl = 'https://api.shumengedu.com/';
//加盟申请表
$("#submitApplication").click(function(){
// console.log($("#joinApplication").serialize(),);
$.ajax(baseUrl+"join/index", {
data: $("#joinApplication").serialize(),
type:"POST",
crossDomain: true,
success: function(response) {
$("#myModal").show();
$(".modal-body").html(response.msg)
$("#joinApplication input[type=reset]").trigger("click");
},
error: function (e) {
$("#myModal").show();
$(".modal-body").html(e.msg)
}
});
})
$("#submitApplicationTwo").click(function(){
// console.log($("#joinApplication").serialize(),);
$.ajax(baseUrl+"join/index", {
data: $("#joinApplicationTwoForm").serialize(),
type:"POST",
crossDomain: true,
success: function(response) {
$("#myModal").show();
$(".modal-body").html(response.msg)
$("#joinApplicationTwoForm input[type=reset]").trigger("click");
},
error: function (e) {
$("#myModal").show();
$(".modal-body").html(e.msg)
}
});
})
})