third_delivery_log_list.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8">
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5. <title>index</title>
  6. </head>
  7. <body style="width:100%;margin:0 auto;text-align: center;">
  8. <input type="hidden" id="order_id" name="order_id" value="{$orderdistribution_info['order_id']}"/>
  9. <input type="hidden" id="third_distribution_type" name="third_distribution_type" value="{$orderdistribution_info['third_distribution_type']}"/>
  10. <div class="layui-card-body" style="padding:15px 0 0 15px;">
  11. <?php if($orderdistribution_info['state'] == 0 || $orderdistribution_info['state'] == 1 || $orderdistribution_info['state'] == 2){ ?>
  12. <a href="javascript:;" class="layui-btn layui-btn-sm cancelBtn">取消配送订单</a>
  13. <?php } ?>
  14. </div>
  15. <table class="layui-table" style="width:98%;">
  16. <thead>
  17. <tr>
  18. <th>配送公司</th>
  19. <th>配送信息</th>
  20. <th>订单号</th>
  21. <th>时间</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <?php if(!empty($log_list)){?>
  26. <?php foreach($log_list as $k=>$v){ ?>
  27. <tr>
  28. <td>
  29. <?php echo $third_name;?>
  30. </td>
  31. <td><?php echo $v['remark'];?></td>
  32. <td><?php echo $orderdistribution_info['third_order_id'];?></td>
  33. <td><?php echo date('Y-m-d H:i:s',$v['addtime']); ?></td>
  34. </tr>
  35. <?php } ?>
  36. <?php } ?>
  37. </tbody>
  38. </table>
  39. </body>
  40. <script>
  41. $(function(){
  42. $('.cancelBtn').click(function(){
  43. var order_id = $('#order_id').val();
  44. var third_distribution_type = $('#third_distribution_type').val();
  45. $.post("{:U('order/third_cancel_reason')}", {third_distribution_type:third_distribution_type,order_id:order_id}, function(shtml){
  46. layer.open({
  47. type: 1,
  48. area: '600px',
  49. content: shtml //注意,如果str是object,那么需要字符拼接。
  50. });
  51. });
  52. })
  53. })
  54. </script>
  55. </html>