| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- {Template header}
- <style>
- .diysearch{
- padding: 5px;
- }
- .diysearch select{
- width: 110px;
- height: 28px;
- color: #333;
- border: 1px #ccc solid;
- font-size: 13px;
- margin-right: 20px;
- border-radius: 5px;
- }
- .diysearch input{
- width: 100px;
- height: 26px;
- color: #000;
- border: 1px #ccc solid;
- font-size: 13px;
- margin-right: 20px;
- text-align: center;
- color: #333;
- border-radius: 5px;
- }
- .diysearch .qd_show{
- width: 70px;
- height: 30px;
- line-height: 30px;
- background: #2ca8a1;
- text-align: center;
- color: #fff;
- border-radius: 5px;
- display: inline-block;
- margin-left: 20px;
- cursor: pointer;
- border: 0px solid #2ca8a1;
- }
- .px_do{
- width:100%;border:1px solid #ccc;text-align:center;border-radius:5px;height:100%
- }
- </style>
- <body>
- <div class="warp">
- <div class="fixed">
- <div style="width:100%;display: flex;flex-direction: row;flex-wrap: wrap;">
-
- <div class="diysearch">
- 店铺类型:
- <select name="shop" class="select" style="width:190px">
- <option value="">请选择</option>
- {loop usershop() as $val}
- {if ($val['type'] == 1514)}
- <option value="{$val['id']}">{$val['shopname']}</option>
- {/if}
- {/loop}</select>
- </div>
- <div class="diysearch">
- 记录时间:<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'})">
- 至 <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'})">
- <input type="hidden" name="shop_ids" value="{$usersp}">
- </div>
-
- <div class="diysearch">
- <button onclick="searchspan(1)" class="qd_show">确 定</button>
- </div>
- </div>
- <div class="control">
- <a href="javascript:void(0);" class="window" data-h="/shop/add/" data-t="店铺管理 - 添加">添 加</a>
- <a href="javascript:void(0);" class="check">删 除</a>
- </div>
- <table class="datatitle data" border="0" style="border-collapse:collapse;">
- <tr>
- <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
- <td>店铺名字</td>
- <td>订单号</td>
- <td>类型</td>
- <td>状态</td>
- <td>错误原因</td>
- <td>记录时间</td>
- <td>操作</td>
- </tr>
- </table>
- </div>
- <table class="datatext data" border="0" style="border-collapse:collapse;">
- </table>
- <div class="bomf"></div>
- </div>
- <script>
- var dataurl = "/sdzxlist/index";
- var editurl = "/sdzxlist/edit/";
- var editpx = "/sdzxlist/pxsort"
- var editdj = 2;
- var editt = "店铺管理 - 修改";
- var customon = 1;
- function custom(){
- $(".data tr").each(function() {
- $(this).find('td:eq(0)').css("width","1%");
- $(this).find('td:eq(1)').css("width","6%");
- $(this).find('td:eq(2)').css("width","6%");
- $(this).find('td:eq(3)').css("width","6%");
- $(this).find('td:eq(4)').css("width","6%");
- $(this).find('td:eq(5)').css("width","25%");
- $(this).find('td:eq(6)').css("width","6%");
- $(this).find('td:eq(7)').css("width","12%");
- $(this).find('td:eq(8)').css("width","6%");
-
-
- // $(this).find('td:eq(11)').css("width","5%");
- });
- }
- $(function () { $("#ktime").calendar();$("#jtime").calendar();});
- function edit_px(that){
-
- // 这里写你的代码,例如提交表单或执行其他操作
- var id = $(that).attr("data-id");
- var val = $(that).val();
- val = val*1
- $.post(editpx, {id: id, px: val}, function(data){
- $(".search span").click();
- });
-
-
-
- }
- $(document).ready(function(){
-
- searchspan(1);
- $("select[name='perpage']").on("change",function(){
- searchspan(1);
- });
-
- })
- function do_again(that){
- let do_id = $(that).data('id')
- layx.confirm('提示','确定要重发吗?',null,{
- buttons:[
- {
- label:'确定',
- callback:function(id, button, event){
- chongfa(do_id)
- layx.destroy(id);
- }
- },
- {
- label:'取消',
- callback:function(id, button, event){
- layx.destroy(id);
- }
- }
- ]
- });
- }
- function chongfa(do_id){
- $.post("/sdzxlist/zczxttznx",{id:do_id},function(res){
- console.log(res);
- if(res.code==1){
- searchspan(1);
- }else{
- layx.alert('重发失败');
- }
- },"json");
- }
- function del(that){
- let id = $(that).data('id')
- layx.load('loadId','请求中。。。',{shadable:0.6});
- $.post("/sdzxlist/delsc",{id:id},function(res){
- console.log(res);
- layx.destroy('loadId');
- if(res.code==1){
- searchspan(1);
- }else{
- layx.alert('删除失败');
- }
- },"json");
- }
- </script>
- <script type="text/javascript" src="{$theme}js/laydate.js"></script>
- {Template footer}
|