1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- {!! $grid->render() !!}
- <style>
- 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 }
- p#vtip #vtipArrow { position: absolute; top: -10px; left: 5px }
- </style>
- <div class="modal fade" id="dialog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
- <div class="modal-dialog" role="document" style="width:1200px;">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title" id="myModalLabel1">详情</h4>
- </div>
- <div class="modal-body">
- <div class="contentfade" style="height: 700px;overflow: auto;">
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- this.vtip = function() {
- this.xOffset = -10; // x distance from mouse
- this.yOffset = 15; // y distance from mouse
- $(".vtip").unbind().hover(
- function(e) {
- this.t = $(this).attr("title");
- this.title = '';
- this.top = (e.pageY + yOffset);
- this.left = (e.pageX + xOffset);
- $('body').css("cursor","help");
- $('p#vtip').width()>450?$('p#vtip').width(450):'';
- $('body').append( '<p id="vtip">' + this.t + '</p>' );
- $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
- },
- function() {
- this.title = this.t;
- $('body').css("cursor","");
- $("p#vtip").fadeOut("slow").remove();
- }
- ).mousemove(
- function(e) {
- this.top = (e.pageY + yOffset);
- this.left = (e.pageX + xOffset);
- $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
- }
- );
- };
- $(document).ready(function() {
- vtip();
- });
- $(".close").off().on('click', function () {
- $(this).closest(".modal").removeClass('in');
- $(this).closest(".modal").hide();
- });
- $('.detail').on('click', function () {
- $("#myModalLabel1").html('详情');
- var id = $(this).data('id');
- $('#dialog').addClass('in');
- $('#dialog').css('display', 'block');
- $('.contentfade').html('');
- $.ajax({
- url: "{{admin_base_path('/content/buy_house_check_log/detail')}}",
- data:{'id':id,'_token':'{{csrf_token()}}'},
- // dataType:'json',
- success:function (res) {
- $('.contentfade').html(res.data);
- },
- })
- });
- </script>
|