Welcome to KXG App Web API!
$("#getlast").click(function () {
$.ajax({
url: "api/exam/getlast?key=" + $("#key").val() + "&mobile=" + $("#send_mobile").val() + "&token=" + $("#send_token").val(),
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
mobile: token: key:
$("#GetModelList.getlist").click(function () {
$.ajax({
url: "../api/exam/list?key=" + $("#GetModelList.key").val() + "&mobile=" + $("#GetModelList.send_mobile").val() + "&token=" + $("#GetModelList.send_token").val(),
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
mobile: token: key:
$("#queue .do").click(function () {
var examid = $("#queue .examid").val();
var token = $("#queue .token").val();
var key = $("#queue .key").val();
$.ajax({
url: "../api/exam/queue?examid=" + examid + "&token=" + token + "&key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: token: key:
$("#items .do").click(function () {
var examid = $("#items .examid").val();
var token = $("#items .token").val();
var key = $("#items .key").val();
$.ajax({
url: "../api/exam/items?examid=" + examid + "&token=" + token + "&key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: token: key:
$("#recommend .do").click(function () {
var examid = $("#recommend .examid").val();
var token = $("#recommend .token").val();
var key = $("#recommend .key").val();
$.ajax({
url: "../api/exam/recommend?examid=" + examid + "&token=" + token + "&key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: token: key:
$("#additem .do").click(function () {
var key = $("#additem .key").val();
$.ajax({
url: "../api/exam/additem?key=" + key,
type: "post",
data: {
examid: $("#additem .examid").val(),
itemid: $("#additem .itemid").val(),
token: $("#additem .token").val()
},
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: itemid: token: key:
$("#batchadditem .do").click(function () {
var key = $("#batchadditem .key").val();
$.ajax({
url: "../api/exam/batchadditem?key=" + key,
type: "post",
data: JSON.stringify({
"examid": $("#batchadditem .examid").val(),
"itemids": [ $("#batchadditem .item1").val(), $("#batchadditem .item2").val() ],
"token": $("#batchadditem .token").val()
}),
contentType: "application/json",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: item1: item2: token: key:
$("#checkin .do").click(function () {
var key = $("#checkin .key").val();
$.ajax({
url: "../api/exam/checkin?key=" + key,
type: "post",
data: {
examid: $("#checkin .examid").val(),
qrcode: $("#checkin .qrcode").val(),
token: $("#checkin .token").val()
},
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: qrcode: token: key:
$("#guideprint .do").click(function () {
var key = $("#guideprint .key").val();
$.ajax({
url: "../api/exam/guideprint?key=" + key,
type: "post",
data: {
examid: $("#guideprint .examid").val(),
qrcode: $("#guideprint .qrcode").val(),
token: $("#guideprint .token").val()
},
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: qrcode: token: key:
$("#codeprint .do").click(function () {
var key = $("#codeprint .key").val();
$.ajax({
url: "../api/exam/codeprint?key=" + key,
type: "post",
data: {
examid: $("#codeprint .examid").val(),
qrcode: $("#codeprint .qrcode").val(),
token: $("#codeprint .token").val()
},
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: qrcode: token: key:
$("#initcomment .do").click(function () {
var examid = $("#initcomment .examid").val();
var token = $("#initcomment .token").val();
var key = $("#initcomment .key").val();
$.ajax({
url: "../api/exam/initcomment?examid=" + examid + "&token=" + token + "&key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: token: key:
$("#comment .do").click(function () {
var key = $("#comment .key").val();
$.ajax({
url: "../api/exam/comment?key=" + key,
type: "post",
data: JSON.stringify({
"examid": $("#comment .examid").val(),
"summary": $("#comment .summary").val(),
"content": $("#comment .content").val(),
"token": $("#comment .token").val(),
"items": [{
"itemid": "BC290ED9-28E0-44A6-8934-C56F96532BDE",
"name": "体检环境感受",
"point": $("#comment .environment").val()
}, {
"itemid": "E606CF0A-E344-4E73-9781-7BFA2384377D",
"name": "体检服务态度",
"point": $("#comment .service").val()
}, {
"itemid": "FBFFE940-00EB-4617-B859-0F167CF91395",
"name": "体检结果满意度",
"point": $("#comment .result").val()
}]
}),
contentType: "application/json",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid:
summary:
content:
environment:
service:
result:
token:
key: