Master.CanYinWu.Web/Views/Customer/OperateCustomerWeb.cshtml
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
Layout = null;
}
@using Master.CanYinWu.Entity;
@model Customer
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>OperateCustomerWeb</title>
<style type="text/css">
ul li {
margin-top: 20px;
list-style: none;
float: left;
padding: 15px;
}
ul li a {
color: #1E9FFF;
font-weight: bolder;
cursor: pointer;
}
</style>
<script src="~/Scripts/jquery-1.10.2.min.js"></script>
</head>
<body>
<div>
<ul>
<li><a onclick="admin()">以管理员身份进入</a></li>
<li><a onclick="admin()">模仿客户身份进入</a></li>
</ul>
</div>
<script type="text/javascript">
function admin() {
$.ajax({
url: "http://localhost:52170/Customer/CustomerLogin",
type: "post",
data: {
userName: '@Model.LoginName',
password: '@Model.LoginPassword',
isCopy: true
},
dataType: "json",
// 实现跨域请求cookie
xhrFields: {
withCredentials: false
},
crossDomain: true,
success: function (data) {
if (data.code == 500) {
alert(data.msg);
return;
} else {
window.location.href = "http://localhost:52170/Customer/Index";
}
}
});
后面还有 4 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
