ajaxindex.html 5.07 KB
<style type="text/css">
    .flexigrid .bDiv tr {
        display: block;
    }

    .bd-line {
        font-size: 0;
    }

    .flexigrid .bDiv td {
        border: 0;
    }

    .flexigrid div.bDiv tr:hover td {
        background-color: #F4FCFA;
    }

    .flexigrid div.bDiv tr.trSelected td {
        background: #ffffdf none repeat scroll 0 0;
    }

    .flexigrid .bDiv a {
        color: #999;
    }

    .flexigrid .bDiv .active a, .flexigrid .bDiv span a:hover {
        color: #FFF;
    }

    .flexigrid .bDiv .row a:hover {
        text-decoration: none;
        color: #C4182E;
        background-color: #EEEEEE;
        text-decoration: underline;
    }

    .flexigrid .bDiv .row .active a:hover {
        text-decoration: none;
        color: #fff;
        background-color: #999;
        text-decoration: underline;
    }

    .ncsc-default-table thead {
        font-size: 0;
    }

    .ncsc-default-table thead th {
        font-size: 12px;
        vertical-align: middle;
        display: inline-block;
        *display: inline;
        *zoom: 1;
    }

    .w50 {
        width: 5% !important;
    }

    .w60 {
        width: 6% !important;
    }

    .w80 {
        width: 8% !important;
    }

    .w100 {
        width: 10% !important;
    }

    .w110 {
        width: 11% !important;
    }

    .w150 {
        width: 15% !important;
    }
    .w250 {
        width: 25% !important;
    }

    .w350 {
        width: 35% !important;
    }
    .ellipsis1{
        white-space:nowrap;
        text-overflow:ellipsis;
        overflow:hidden;
    }
</style>
<table class="ncsc-default-table" style="border-top:1.5px solid rgb(221,221,221);">
    <thead class="head">
    <tr>
        <th class="w100">会员昵称</th>
        <th class="w100">会员手机号</th>
        <th class="w150">评价类型</th>
        <th class="w150">礼包名称</th>
        <th class="w100">礼包类型</th>
        <th class="w100">礼品名称</th>
        <th class="w100">数量</th>
        <th class="w200">领取时间</th>
    </tr>
    </thead>
    <tbody>
    <empty name="goodsList">
        <tr>
            <td colspan="20" class="norecord">
                <div class="warning-option"><i class="icon-warning-sign"></i><span>暂无符合条件的数据记录</span></div>
            </td>
        </tr>
        <else/>
        <volist name="goodsList" id="list">
            <tr class="bd-line">
                <!--         会员昵称       -->
                <td class="w100 ellipsis1">iceling</td>
                <!--         会员手机号       -->
                <td class="w100 ellipsis1">18854982522</td>
                <!--         评价类型  -->
                <td class="w150 ellipsis1">美容师评价</td>
                <!--           礼包名称     -->
                <td class="w150 ellipsis1">礼包1</td>
                <!--         礼包类型       -->
                <td class="w100 ellipsis1">积分</td>
                <!--           礼品名称     -->
                <td class="w100 ellipsis1">50积分</td>
                <!--          数量      -->
                <td class="w100 ellipsis1">2</td>
                <!--          领取时间      -->
                <td class="w200 ellipsis1">2019-10-15 00:00:00</td>
            </tr>
        </volist>
    </empty>
    </tbody>



</table>
<div class="layer_box dn">
    <input readonly="readonly" class="contentTxt" id="content" value="这里是需要复制的内容"/>
    <div id="cpbtn" class="js-copy" data-clipboard-target="#content"><span>复制</span></div>
</div>
<!--分页位置--> {$page}

<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function () {
        cur_page = $(this).data('p');
        ajax_get_table('search-form2', cur_page);
    });

    $(document).ready(function () {
        // 表格行点击选中切换
        $('#flexigrid >table>tbody>tr').click(function () {
            $(this).toggleClass('trSelected');
        });
        $('#good_count').empty().html("{$pager->totalRows}");
    });

    //链接点击事件
    function link(obj) {
        var art = $(obj).attr("art");

        var http = "";
        var ishttps = 'https:' == document.location.protocol ? true : false;
        if (ishttps) {
            http = "https://";
        } else {
            http = "http://";
        }
        var host = window.location.host;
        /*--生成全地址--*/
        var url = http + host + art;
        $("#content").val(url);
        var t = $(obj).offset().top - 160;
        $(".layer_box").css("top", t).removeClass("dn");
    }


    var btn = document.getElementById('cpbtn');
    var clipboard = new Clipboard(btn);//实例化
    //复制成功执行的回调,可选
    clipboard.on('success', function (e) {
        layer.alert('复制成功', {
            closeBtn: 0
        }, function () {
            layer.closeAll();
            $(".layer_box").addClass("dn");
        });
    });
    // 点击分页触发的事件
    $(".pagination  a").click(function () {
        cur_page = $(this).data('p');
        ajax_get_table('search-form2', cur_page);
    });


</script>