| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <!DOCTYPE html>
- <html lang="en"
- xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{home/common/common}">
- <head>
- <meta charset="UTF-8">
- <title th:text="${navigation_name}"></title>
- </head>
- <body layout:fragment="content">
- <!-- 头部导航 -->
- <div th:replace="~{home/common/header :: header}"></div>
- <!--nav-->
- <div class="center_nav">
- <div th:replace="~{home/common/header :: nav}"></div>
- </div>
- <div class="policy-bg">
- <div class="policy-content" style="padding-top:0;">
- <!--面包屑-->
- <div class="row">
- <div class="hidden-xs" style="padding-left: 0;position:relative;">
- <ol class="breadcrumbFixed clearfix" style="border-bottom: 0px solid #fff;margin-bottom: 20px;">
- <li>
- <a th:href="@{/home}">首页</a>
- </li>
- <li class="active"><a><cite>[[${navigation_name}]]</cite></a></li>
- <li>专项解读</li>
- </ol>
- <div class="col-sm-6 col-md-6 col-lg-4 col-xs-12" style="position: absolute;right: 0px;top: 5px;">
- <div style="display: inline-block;float: right;padding-top: 10px;width: 100%;">
- <span style="display: inline-block;width:100%">
- <input type="text" name="keyword" lay-verify="required" placeholder="请输入关键字搜索"
- autocomplete="off" class="layui-input" style="width: 100%;display: inline-block">
- </span>
- <button onclick="" id="keywordSearch"
- style="display: inline-block;float: right;background:none;border:none;">
- <i class=" iconfont icon-sousuo"></i>
- </button>
- </div>
- </div>
- </div>
- </div>
- <!--内容-->
- <div class="special-list">
- <ul id="interpretationList">
- <!--<li>
- <a th:href="@{/home/policySpecialDetail?bno=121}">
- <img th:src="@{/home/image/tzgg0428.jpg}" alt="">
- <div>
- <p class="special-name">企业研发费用加计扣除</p>
- <p><span class="ft-color-gray ft-12">申报难度</span> <span class="ft-color-red">★★★</span></p>
- </div>
- </a>
- </li>-->
- </ul>
- </div>
- <div class="box" style="float: right;">
- <div id="pagination" class="page fl"></div>
- <div class="info fl">
- </div>
- </div>
- </div>
- </div>
- <!--页底-->
- <div th:replace="~{home/common/footer :: footer}"></div>
- <script>
- $(function () {
- //头部导航栏
- $("li[role='presentation']").removeClass();
- var id = [[${navigation_id}]];
- $("#" + id).parent().attr("class", "active");
- var pagePath = $("meta[name='_ctx']").attr("content");
- pagePath = pagePath.substring(0, pagePath.length - 1);
- var type = "", criteria = "0", isinvalid = "0";
- layui.use('element', function () {
- var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
- });
- // 搜索
- $("#keywordSearch").on("click", function () {
- var keywordVal = encodeURI($("#keyWord").val());
- window.location.href = pagePath + "/home/policySearchList?lkey=" + keywordVal;
- });
- initData();
- })
- // 专项解读
- function specialData(page) {
- $.ajax({
- url: pagePath + '/policy/radar?apikey=snd_apis&at=3&page=' + page + '&pagesize=10',
- type: 'get',
- dataType: 'json',
- success: function (json) {
- json = json.obj;
- var _html = '';
- $.each(json.list, function (index, item) {
- _html += '<li>\
- <a href="' + pagePath + '/home/policySpecialDetail?bno=' + item.bno + '" target="_blank">\
- <img src="' + item.picurl + '" />\
- <div>\
- <p class="special-name">' + item.title + '</p>\
- </div>\
- </a>\
- </li>';
- });
- $("#interpretationList").html(_html);
- }
- });
- }
- function initData() {
- $.ajax({
- url: pagePath + '/policy/radar?apikey=snd_apis&at=3&page=1&pagesize=10',
- type: 'get',
- dataType: 'json',
- success: function (json) {
- json = json.obj;
- var _html = '';
- var total = json.total;
- var totalPage = Math.ceil(total / 10)
- $.each(json.list, function (index, item) {
- _html += '<li>\
- <a href="' + pagePath + '/home/policySpecialDetail?bno=' + item.bno + '" target="_blank">\
- <img src="' + item.picurl + '" />\
- <div>\
- <p class="special-name">' + item.title + '</p>\
- </div>\
- </a>\
- </li>';
- });
- $("#interpretationList").html(_html);
- $("#pagination").pagination({
- currentPage: 1,
- totalPage: totalPage,
- isShow: true,
- count: 10,
- homePageText: "首页",
- endPageText: "尾页",
- prevPageText: "上一页",
- nextPageText: "下一页",
- callback: function (current) {
- specialData(current);
- }
- });
- }
- });
- }
- </script>
- </body>
- </html>
|