37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
|
}
|
|
<div id="dlg4" class="easyui-dialog" closed="true" style="width: 400px; height: 400px; padding: 10px;">
|
|
<div>
|
|
<ul style="padding-left: 150px; padding-top: 30px;">
|
|
<li style="height: 40px; line-height: 40px;">密码:<input type="password" id="pwd" name="pwd"/></li>
|
|
<li style="height: 40px; line-height: 40px; padding-left: 35px;"><input type="button" id="login" value="确定"/></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#dlg4').dialog({
|
|
title: "二次登录",
|
|
width: 550,
|
|
height: 250,
|
|
closed: false,
|
|
cache: false,
|
|
modal: true
|
|
});
|
|
$("#login").click(function() {
|
|
var pwd = $("#pwd").val();
|
|
$.r_post("/Base/Error/AuthorizeSession?pwd=" + pwd, function (data) {
|
|
if (data.msg === "ok") {
|
|
window.location.href = "@ViewBag.returnUrl";
|
|
} else if (data.msg === "no") {
|
|
$.messageBox5s('提示', "密码错误!");
|
|
} else {
|
|
$.messageBox5s('提示', "操作失败,请稍后重试!");
|
|
}
|
|
}, "json");
|
|
});
|
|
});
|
|
</script> |