MCVef/static/js/index.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(document).ready(function(){
$.ajax({
type:'get',
dataType:'json',
url:'http://localhost:7266/api/department',
contentType:"application/json",
success: function () {
console.log("可以操作");
},
error:function(er) {
console.log(er);
console.log('连接请求失败');
}
});
$('#center_box').css("min-height",$('#whole').height()-160+"px");
$(window).resize(function (){
$('#center_box').css("min-height",$('#whole').height()-160+"px");
});
$('#register_button').click(function () {
if($('#register_name').val()=="")
alert("账号不能为空");
else if($('#register_password').val()=="")
alert("密码不能为空");
else
$.ajax({
type:'post',
dataType:'json',
crossDomain: true,
url:'http://localhost:7266/api/LoginUsers',
data:JSON.stringify({
"LoginAccount":$('#register_name').val(),
"LoginPassword":$('#register_password').val()
}),
contentType:"application/json",
success:function(result){
console.log(result);
console.log("成功");
var TYPE;
if(result.UserType=="register")
{
TYPE="挂号员";
setTimeout(function(){$(location).attr("href","registration.html");},1000);
}
else if(result.UserType=="doctor")
{
TYPE="医生";
setTimeout(function(){$(location).attr("href","workspace.html?id="+result.UserTypeId);},1000);
}
else if(result.UserType=="collector")
{
TYPE="收费员";
setTimeout(function(){$(location).attr("href","charge.html?id="+result.UserTypeId);},1000);
}
if(result.UserType==null)
alert("账号密码错误,请重试");
else
$('.alert').html(TYPE+'登录成功').addClass('alert-success').show().delay(700).fadeOut();
},
error:function(er) {
后面还有 6 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。