buy_house_check_log.blade.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {!! $grid->render() !!}
  2. <style>
  3. p#vtip { display: none; position: absolute; padding: 10px; left: 5px; font-size: 0.8em; background-color: white; border: 1px solid #a6c9e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; z-index: 9999 }
  4. p#vtip #vtipArrow { position: absolute; top: -10px; left: 5px }
  5. </style>
  6. <div class="modal fade" id="dialog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
  7. <div class="modal-dialog" role="document" style="width:1200px;">
  8. <div class="modal-content">
  9. <div class="modal-header">
  10. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
  11. </button>
  12. <h4 class="modal-title" id="myModalLabel1">详情</h4>
  13. </div>
  14. <div class="modal-body">
  15. <div class="contentfade" style="height: 700px;overflow: auto;">
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <script>
  22. this.vtip = function() {
  23. this.xOffset = -10; // x distance from mouse
  24. this.yOffset = 15; // y distance from mouse
  25. $(".vtip").unbind().hover(
  26. function(e) {
  27. this.t = $(this).attr("title");
  28. this.title = '';
  29. this.top = (e.pageY + yOffset);
  30. this.left = (e.pageX + xOffset);
  31. $('body').css("cursor","help");
  32. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  33. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  34. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  35. },
  36. function() {
  37. this.title = this.t;
  38. $('body').css("cursor","");
  39. $("p#vtip").fadeOut("slow").remove();
  40. }
  41. ).mousemove(
  42. function(e) {
  43. this.top = (e.pageY + yOffset);
  44. this.left = (e.pageX + xOffset);
  45. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  46. }
  47. );
  48. };
  49. $(document).ready(function() {
  50. vtip();
  51. });
  52. $(".close").off().on('click', function () {
  53. $(this).closest(".modal").removeClass('in');
  54. $(this).closest(".modal").hide();
  55. });
  56. $('.detail').on('click', function () {
  57. $("#myModalLabel1").html('详情');
  58. var id = $(this).data('id');
  59. $('#dialog').addClass('in');
  60. $('#dialog').css('display', 'block');
  61. $('.contentfade').html('');
  62. $.ajax({
  63. url: "{{admin_base_path('/content/buy_house_check_log/detail')}}",
  64. data:{'id':id,'_token':'{{csrf_token()}}'},
  65. // dataType:'json',
  66. success:function (res) {
  67. $('.contentfade').html(res.data);
  68. },
  69. })
  70. });
  71. </script>