147 lines
4.9 KiB
Plaintext
147 lines
4.9 KiB
Plaintext
|
||
@{
|
||
Layout = null;
|
||
}
|
||
<html>
|
||
<head>
|
||
<meta name="viewport" content="width=device-width" />
|
||
<title>德城区疾控疫苗排队</title>
|
||
|
||
@Scripts.Render("~/bundles/jquery")
|
||
<script src="@Url.Content("~/Scripts/public.js")"></script>
|
||
<link href='@Url.Content("~/Scripts/dist/style/weui.min.css")' rel="stylesheet" />
|
||
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
||
<script src='@Url.Content("~/Scripts/jquery.date_input.pack.js")?v1.708'></script>
|
||
<link href='@Url.Content("~/Scripts/datePicker.css")' rel="stylesheet" />
|
||
<script type="text/javascript">
|
||
var loding;
|
||
$(function () {
|
||
@*
|
||
$("#btnsave").bind("click", function () {
|
||
if ("@ViewBag.btntext" == "取消排队") {
|
||
weui.confirm("每天只能取消1次,您确定要取消吗?", function () {
|
||
|
||
$.ajax("@Url.Action("qxpd")", {
|
||
type: "post", dataType: "json", data: { pdid: "@ViewBag.pdid" },
|
||
beforeSend: function () {
|
||
loding = weui.loading("正在取消请稍后……");
|
||
}, success: function (data) {
|
||
loding.hide();
|
||
if (data.State == 1)
|
||
window.location.href = "@Url.Action("quhao")";
|
||
else {
|
||
weui.alert(data.Message);
|
||
}
|
||
}
|
||
});
|
||
});
|
||
|
||
}
|
||
else {
|
||
window.location.href = "@Url.Action("quhao")";
|
||
}
|
||
});
|
||
*@
|
||
|
||
if(@ViewBag.dqhm>@ViewBag.wdhm)
|
||
{
|
||
weui.alert("您预约的号码已经过号,请重新取号!",function(){ window.location.href = "@Url.Action("quhao")";});
|
||
}
|
||
});
|
||
|
||
$(function(){
|
||
setTimeout(sx,2000);
|
||
});
|
||
function sx()
|
||
{
|
||
$.ajax("@Url.Action("getpdxx")",{type:"post",dataType:"json",
|
||
success:function(data){
|
||
if(data.State==1)
|
||
{
|
||
window.location.href="@Url.Action("paidui")";
|
||
return;
|
||
}
|
||
if(data.dqhm>data.wdhm)
|
||
{
|
||
weui.alert("您预约的号码已经过号,请重新取号!",function(){ window.location.href = "@Url.Action("quhao")";});
|
||
}
|
||
else
|
||
{
|
||
$("#dqhm").html(data.dqhm);
|
||
$("#ddrs").html(data.ddrs);
|
||
$("#wdhm").html(data.wdhm);
|
||
setTimeout(sx,2000);
|
||
}
|
||
}
|
||
});
|
||
}
|
||
</script>
|
||
<style>
|
||
.demos-header {
|
||
padding: 35px 0;
|
||
}
|
||
|
||
.demos-title {
|
||
text-align: center;
|
||
font-size: 34px;
|
||
color: #3cc51f;
|
||
font-weight: 400;
|
||
margin: 0 15%;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<script src='@Url.Content("~/Scripts/dist/weui.min.js")'></script>
|
||
|
||
<header class="demos-header">
|
||
<h1 class="demos-title">在线排队</h1>
|
||
</header>
|
||
|
||
<div class="weui-cells weui-cells_form">
|
||
<div class="weui-cell">
|
||
<div class="weui-cell__hd">
|
||
<label class="weui-label">当前号码</label>
|
||
</div>
|
||
<div class="weui-cell__hd">
|
||
<label id="dqhm">@ViewBag.dqhm</label>
|
||
</div>
|
||
<div class="weui-cell__ft">
|
||
<i class="weui-icon-warn"></i>
|
||
</div>
|
||
</div>
|
||
<div class="weui-cell">
|
||
<div class="weui-cell__hd">
|
||
<label class="weui-label">等待人数</label>
|
||
</div>
|
||
<div class="weui-cell__hd">
|
||
<label id="ddrs">@ViewBag.ddrs</label>
|
||
|
||
|
||
</div>
|
||
<div class="weui-cell__ft">
|
||
<i class="weui-icon-warn"></i>
|
||
</div>
|
||
</div>
|
||
<div class="weui-cell">
|
||
<div class="weui-cell__hd">
|
||
<label class="weui-label">我的号码</label>
|
||
</div>
|
||
<div class="weui-cell__hd">
|
||
<label id="wdhm">@ViewBag.wdhm</label>
|
||
</div>
|
||
<div class="weui-cell__ft">
|
||
<i class="weui-icon-warn"></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
@Html.Raw(dccdc.Common.Global.getParmValue("ymwxts"))
|
||
</div>
|
||
<div class="weui-footer">
|
||
<div class="weui-footer__text">
|
||
<p class="weui-footer__text">Copyright © 2016-@DateTime.Now.Year 德城区疾控中心</p>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|