sdzxlist_index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. {Template header}
  2. <style>
  3. .diysearch{
  4. padding: 5px;
  5. }
  6. .diysearch select{
  7. width: 110px;
  8. height: 28px;
  9. color: #333;
  10. border: 1px #ccc solid;
  11. font-size: 13px;
  12. margin-right: 20px;
  13. border-radius: 5px;
  14. }
  15. .diysearch input{
  16. width: 100px;
  17. height: 26px;
  18. color: #000;
  19. border: 1px #ccc solid;
  20. font-size: 13px;
  21. margin-right: 20px;
  22. text-align: center;
  23. color: #333;
  24. border-radius: 5px;
  25. }
  26. .diysearch .qd_show{
  27. width: 70px;
  28. height: 30px;
  29. line-height: 30px;
  30. background: #2ca8a1;
  31. text-align: center;
  32. color: #fff;
  33. border-radius: 5px;
  34. display: inline-block;
  35. margin-left: 20px;
  36. cursor: pointer;
  37. border: 0px solid #2ca8a1;
  38. }
  39. .px_do{
  40. width:100%;border:1px solid #ccc;text-align:center;border-radius:5px;height:100%
  41. }
  42. </style>
  43. <body>
  44. <div class="warp">
  45. <div class="fixed">
  46. <div style="width:100%;display: flex;flex-direction: row;flex-wrap: wrap;">
  47. <div class="diysearch">
  48. 店铺类型:
  49. <select name="shop" class="select" style="width:190px">
  50. <option value="">请选择</option>
  51. {loop usershop() as $val}
  52. {if ($val['type'] == 1514)}
  53. <option value="{$val['id']}">{$val['shopname']}</option>
  54. {/if}
  55. {/loop}</select>
  56. </div>
  57. <div class="diysearch">
  58. 记录时间:<input id="timetk" style="width:200px" value="{date('Y-m-d',time()-29*24*3600)} 0:00" name="ktime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
  59. 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" style="width:200px" value="{date('Y-m-d',time()+24*3600)} 0:00" name="jtime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
  60. <input type="hidden" name="shop_ids" value="{$usersp}">
  61. </div>
  62. <div class="diysearch">
  63. <button onclick="searchspan(1)" class="qd_show">确 定</button>
  64. </div>
  65. </div>
  66. <div class="control">
  67. <a href="javascript:void(0);" class="window" data-h="/shop/add/" data-t="店铺管理 - 添加">添 加</a>
  68. <a href="javascript:void(0);" class="check">删 除</a>
  69. </div>
  70. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  71. <tr>
  72. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  73. <td>店铺名字</td>
  74. <td>订单号</td>
  75. <td>类型</td>
  76. <td>状态</td>
  77. <td>错误原因</td>
  78. <td>记录时间</td>
  79. <td>操作</td>
  80. </tr>
  81. </table>
  82. </div>
  83. <table class="datatext data" border="0" style="border-collapse:collapse;">
  84. </table>
  85. <div class="bomf"></div>
  86. </div>
  87. <script>
  88. var dataurl = "/sdzxlist/index";
  89. var editurl = "/sdzxlist/edit/";
  90. var editpx = "/sdzxlist/pxsort"
  91. var editdj = 2;
  92. var editt = "店铺管理 - 修改";
  93. var customon = 1;
  94. function custom(){
  95. $(".data tr").each(function() {
  96. $(this).find('td:eq(0)').css("width","1%");
  97. $(this).find('td:eq(1)').css("width","6%");
  98. $(this).find('td:eq(2)').css("width","6%");
  99. $(this).find('td:eq(3)').css("width","6%");
  100. $(this).find('td:eq(4)').css("width","6%");
  101. $(this).find('td:eq(5)').css("width","25%");
  102. $(this).find('td:eq(6)').css("width","6%");
  103. $(this).find('td:eq(7)').css("width","12%");
  104. $(this).find('td:eq(8)').css("width","6%");
  105. // $(this).find('td:eq(11)').css("width","5%");
  106. });
  107. }
  108. $(function () { $("#ktime").calendar();$("#jtime").calendar();});
  109. function edit_px(that){
  110. // 这里写你的代码,例如提交表单或执行其他操作
  111. var id = $(that).attr("data-id");
  112. var val = $(that).val();
  113. val = val*1
  114. $.post(editpx, {id: id, px: val}, function(data){
  115. $(".search span").click();
  116. });
  117. }
  118. $(document).ready(function(){
  119. searchspan(1);
  120. $("select[name='perpage']").on("change",function(){
  121. searchspan(1);
  122. });
  123. })
  124. function do_again(that){
  125. let do_id = $(that).data('id')
  126. layx.confirm('提示','确定要重发吗?',null,{
  127. buttons:[
  128. {
  129. label:'确定',
  130. callback:function(id, button, event){
  131. chongfa(do_id)
  132. layx.destroy(id);
  133. }
  134. },
  135. {
  136. label:'取消',
  137. callback:function(id, button, event){
  138. layx.destroy(id);
  139. }
  140. }
  141. ]
  142. });
  143. }
  144. function chongfa(do_id){
  145. $.post("/sdzxlist/zczxttznx",{id:do_id},function(res){
  146. console.log(res);
  147. if(res.code==1){
  148. searchspan(1);
  149. }else{
  150. layx.alert('重发失败');
  151. }
  152. },"json");
  153. }
  154. function del(that){
  155. let id = $(that).data('id')
  156. layx.load('loadId','请求中。。。',{shadable:0.6});
  157. $.post("/sdzxlist/delsc",{id:id},function(res){
  158. console.log(res);
  159. layx.destroy('loadId');
  160. if(res.code==1){
  161. searchspan(1);
  162. }else{
  163. layx.alert('删除失败');
  164. }
  165. },"json");
  166. }
  167. </script>
  168. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  169. {Template footer}