| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <html xmlns:th="http://www.thymeleaf.org">
- <head>
- <title>私塾家</title>
- <script th:include="sys/common/metaCSS" th:remove="tag"></script>
- <script th:include="sys/common/metaJS" th:remove="tag"></script>
- <script src="sys/js/My97DatePicker/WdatePicker.js" th:src="@{/static/sys/js/My97DatePicker/WdatePicker.js}"></script>
- </head>
- <style>
- .tablelink{margin-right:10px;}
- .stylecss{
- color: red;
- }
- .select_width{
- width: 220px;
- }
- .date_width{
- width: 150px;
- }
- </style>
- <body>
- <div class="place">
- <span>位置:</span>
- <ul class="placeul">
- <li><a href="#">新版抽奖管理</a></li>
- <li><a href="#">活动抽奖管理-[[${ search.get('awardMaterialId')!=''? '奖品编号:'+search.get('awardMaterialId') : '活动编号:'+search.get('awardActivityId') }]]</a></li>
- </ul>
- </div>
- <div class="rightinfo">
- <form id="seachform" th:action="@{/sys/award/sncode/list.html}" method="post">
-
- <input type="hidden" id="awardMaterialId" name="awardMaterialId" autocomplete="off" th:value="${search.get('awardMaterialId')}" class="scinput date_width">
- <input type="hidden" id="awardActivityId" name="awardActivityId" autocomplete="off" th:value="${search.get('awardActivityId')}" class="scinput date_width">
-
- <ul class="seachform">
- <li>
- <label>奖品码:</label>
- <input type="text" id="snCode" name="snCode" autocomplete="off" th:value="${search.get('snCode')}" class="scinput date_width" placeholder="奖品码">
- </li>
-
- <li>
- <label>奖品等奖</label>
- <select class="scinput select_width" id="level" name="level" style="width: 150px;" >
- <option value="">全部</option>
- <option value="1" th:selected="${search.get('level')+'' eq '1' ? true : false}">一等奖</option>
- <option value="2" th:selected="${search.get('level')+'' eq '2' ? true : false}">二等奖</option>
- <option value="3" th:selected="${search.get('level')+'' eq '3' ? true : false}">三等奖</option>
- </select>
- </li>
-
-
- <li>
- <label>中奖人:</label>
- <input type="text" id="name" name="name" autocomplete="off" th:value="${search.get('name')}" class="scinput date_width" placeholder="中奖人">
- </li>
- <li>
- <label>奖品状态:</label>
- <select class="scinput select_width" id="status" name="status" style="width: 150px;" >
- <option value="" >全部</option>
- <option value="0" th:selected="${search.get('status')+'' eq '0' ? true : false}" >未开奖</option>
- <option value="1" th:selected="${search.get('status')+'' eq '1' ? true : false}" >中奖未领取</option>
- <option value="2" th:selected="${search.get('status')+'' eq '2' ? true : false}" >中奖已领取</option>
- <option value="3" th:selected="${search.get('status')+'' eq '3' ? true : false}" >兑奖未核销</option>
- <option value="4" th:selected="${search.get('status')+'' eq '4' ? true : false}" >兑奖已核销</option>
- </select>
- </li>
-
- <li>
- <label>开始时间</label>
- <input type="text" id="startTime" name="startTime" autocomplete="off" onclick="WdatePicker()" th:value="${search.get('startTime')}" class="scinput date_width " placeholder="开始时间">
- </li>
- <li>
- <label>结束时间</label>
- <input type="text" id="endTime" name="endTime" autocomplete="off" onclick="WdatePicker()" th:value="${search.get('endTime')}" class="scinput date_width " placeholder="结束时间">
- </li>
-
- <li>
- <input type="button" class="scbtn" value="查询" />
- </li>
-
- <li>
- <ul class="toolbar">
-
- <a th:if="${search.get('awardMaterialId')!=''}" th:href="@{/sys/award/material/list.html}" >
- <li class="click"> << 返回 </li>
- </a>
-
- <a th:if="${search.get('awardActivityId')!=''}" th:href="@{/sys/award/activity/list.html}" >
- <li class="click"> << 返回 </li>
- </a>
-
- </ul>
- </li>
- </ul>
- </form>
- <table class="tablelist">
- <thead>
- <tr>
- <th style="width: 50px;">序号</th>
- <th>商户名称</th>
- <th>活动名称</th>
- <th>奖品码</th>
- <th>奖品名称</th>
- <th>奖品等奖</th>
- <th>奖品状态</th>
- <th>中奖者</th>
- <th>状态更新时间</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="item:${list}" >
- <td th:text="${itemStat.count}"></td>
- <td th:text="${item.get('unit_name')}"></td>
- <td th:text="${item.get('title')}"></td>
- <td th:text="${item.get('sn_code')}"></td>
- <td th:text="${item.get('name')}"></td>
- <td th:switch="${item.level}">
- <span th:case="1" style="color:red">一等奖</span>
- <span th:case="2" style="color:red">二等奖</span>
- <span th:case="3" style="color:red">三等奖</span>
- <span th:case="4" style="color:red">四等奖</span>
- </td>
- <td th:switch="${item.status}">
- <span th:case="0" style="color:red"></span>
- <span th:case="1" style="color:red">中奖未领取</span>
- <span th:case="2" style="color:red">中奖已领取</span>
- <span th:case="3" style="color:red">兑奖未核销</span>
- <span th:case="4" style="color:red">兑奖已核销</span>
- <span th:case="5" style="color:red">取消活动无效</span>
- </td>
- <td th:text="${item.get('child_name')}"></td>
- <td th:text="${item.get('update_time')}"></td>
- </tr>
- </tbody>
- </table>
- <!-- 分页 -->
- <div class="pagin">
- <div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录,当前显示第 <i class="blue">[[${page.pageNo }]] </i>页</div>
- <div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
- </div>
-
- </div>
- </body>
- <script type="text/javascript">
- $("#button").on('click',function(){
- document.getElementById("seachform").action = "[[${sysUrl}]]/sys/award/material/list";
- $("#seachform").submit();
- window.setTimeout(function(){
- document.getElementById("seachform").action = "[[${sysUrl}]]/sys/award/material/list.html";
- },3000);
- });
- </script>
- </html>
|