|
@@ -16,9 +16,24 @@
|
|
|
<link rel="stylesheet" href="/static/wechat/wechat-btn.css"/>
|
|
|
</head>
|
|
|
<style>
|
|
|
-
|
|
|
+ .bottem_div{
|
|
|
+ position: fixed;
|
|
|
+ bottom: 10px;
|
|
|
+ width: 100%;
|
|
|
+ margin: auto;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+ .btn_span_list{
|
|
|
+ height: 20px;
|
|
|
+ line-height: 20px;
|
|
|
+ }
|
|
|
</style>
|
|
|
<body>
|
|
|
+ <div style="text-align: center;padding: 10px;">
|
|
|
+ 江苏兴光临时订餐系统
|
|
|
+ </div>
|
|
|
<%--<div class="weui-cells weui-cells_form">--%>
|
|
|
<form id="subForm" method="post">
|
|
|
<div class="weui-cell">
|
|
@@ -78,18 +93,27 @@
|
|
|
</form>
|
|
|
<div class="weui-cell">
|
|
|
</div>
|
|
|
- <div style="height: 10px"></div>
|
|
|
<%--</div>--%>
|
|
|
- <div class="" style="text-align: center">
|
|
|
- <div class="weui-cells__title"><h4>预订餐</h4></div>
|
|
|
- <div class="weui-cells__tips">请预定工作日的用餐,0-16点可以预订</div>
|
|
|
- <c:if test="${theOrder.exits == '1'}">
|
|
|
- <button class="button blue" id="buttonPlan" onclick="plan()"><span id="plan">预订餐</span><br><span id="spantime"></span></button>
|
|
|
- </c:if>
|
|
|
- <c:if test="${theOrder.exits == '0'}">
|
|
|
- <button class="button blue" id="buttonPlan" style="background:#999999;height: 7em;width: 7em" disabled><span>已预定</span></button>
|
|
|
- </c:if>
|
|
|
+ <div class="" style="text-align: center;">
|
|
|
+ <div class="weui-cells__title"><h4>预定<span id="currentDate"></span>订工作餐</h4></div>
|
|
|
+ <c:if test="${theOrder.exits == '1'}">
|
|
|
+ <div class="button-2 blue" id="buttonPlan" onclick="plan()">
|
|
|
+ <div style="line-height: 150px;height:150px;padding-top: 55px">
|
|
|
+ <span class="btn_span_list" id="plan">预订餐</span><br><span class="btn_span_list" id="spantime"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${theOrder.exits == '0'}">
|
|
|
+ <div class="button-2 blue" id="buttonPlan" style="background:#999999;" disabled>
|
|
|
+ <div style="line-height: 150px;height:150px;padding-top: 55px">
|
|
|
+ <span class="btn_span_list">已订餐</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ <div class="weui-cells__tips"style="width: 100%;text-align: center">请在0:00-16:00前预订第二天的用餐</div>
|
|
|
</div>
|
|
|
+ <div class="bottem_div">兴光信息技术支持</div>
|
|
|
</body>
|
|
|
<script type="text/javascript">
|
|
|
var d=new Date();
|
|
@@ -123,6 +147,8 @@
|
|
|
timer = setInterval("CountDown()", 1000);
|
|
|
</script>
|
|
|
<script>
|
|
|
+ var currDate = GetDate();
|
|
|
+ $("#currentDate").html(currDate);
|
|
|
//订餐方法
|
|
|
function plan() {
|
|
|
changeStatus();
|
|
@@ -219,5 +245,15 @@
|
|
|
$("#specific").val("");
|
|
|
}
|
|
|
}
|
|
|
+ //获取年月日
|
|
|
+ function GetDate(){
|
|
|
+ var currDate = new Date();
|
|
|
+ var now = new Date();
|
|
|
+ now.setTime(currDate.getTime()+24*60*60*1000)
|
|
|
+ var year = now.getFullYear(); //年
|
|
|
+ var month = now.getMonth() + 1; //月
|
|
|
+ var day = now.getDate(); //日
|
|
|
+ return year+"年"+month+"月"+day+"日";
|
|
|
+ }
|
|
|
</script>
|
|
|
</html>
|