| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <!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>
- <style>
- .bFind-wrapper-top {
- background: #fff;
- border-color: #ccc #aaa #aaa #ccc;
- border-style: solid;
- border-width: 1px;
- height: 25px !important;
- padding: 4px;
- margin: 0;
- }
- .bsBox {
- width: auto !important;
- height: auto !important;
- }
- .text-overflow {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- </style>
- </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="main">
- <div class="container projects">
- <div class="row">
- <div class="col-sm-6 col-md-6 col-lg-9 hidden-xs" style="padding-left: 0;">
- <ol class="breadcrumb clearfix"
- style="padding-top: 15px;border-bottom: 0px solid #fff;margin-bottom: 0;">
- <li>
- <a th:href="@{/home}">首页</a>
- </li>
- <li th:if="${navigation_id!=2}" class="active"><a th:href="@{'/home/informList/'+${navigation_id}}">[[${navigation_name}]]</a>
- </li>
- <li th:if="${navigation_id==2}" class="active"><a th:href="@{/home/unionCompany}">[[${navigation_name}]]</a>
- </li>
- <li class="active"><a><cite>问题列表</cite></a></li>
- </ol>
- </div>
- </div>
- </div>
- <div class="container projects" style="margin-top: 20px;">
- <div class="row">
- <div class="col-sm-12 col-md-12 col-lg-12">
- <div class="centerContent" >
- <div>
- <ul class="question"></ul>
- </div>
- <div class="pagingBox" style="margin-top: 35px" >
- <div id="paging"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <input type="hidden" id="navigation_id" th:value="${navigation_id}"/>
- </div>
- <!--页底-->
- <div th:replace="~{home/common/footer :: footer}"></div>
- <script type="text/javascript" charset="utf-8"
- src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=2&lang=zh"></script>
- <script type="text/javascript" charset="utf-8"
- src="http://static.bshare.cn/b/bshareC0.js"></script>
- <script th:inline="javascript">
- var fileUrl = [[${fileUrl}]];
- $("li[role='presentation']").removeClass();
- var id = $("#navigation_id").val();
- var activityId = $("#activityId").val();
- var pagePath = $("meta[name='_ctx']").attr("content");
- pagePath = pagePath.substring(0, pagePath.length - 1);
- var infoList = new Array(), index = 0;
- var time = 0;//时间差
- var activity_quota = "", activity_remain = "";
- $("#" + id).parent().attr("class", "active");
- layui.use('element', function () {
- var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
- });
- var _total = ""
- var _data = {
- lb:2,
- bno:13,
- page:1,
- pagesize:10,
- };
- $(function () {
- getQuestion();
- clickPage();
- });
- //请求数据
- function getQuestion(){
- $.ajax({
- type:"GET",
- url:pagePath+"/policy/radar?apikey=snd_apis&at=8",
- data:_data,
- dataType:"json",
- success:function(data){
- data = data.obj;
- var _list = data.list;
- var _question = "";
- _total = data.total
- $.each(_list,function(i,n){
- _question += "<li><a class='a_blue' href='"+pagePath+"/home/policyDetail?bno="+n.bno+"'>"+n.title+"</a></li>"
- });
- $(".question").empty().append(_question)
- }
- })
- };
- // 分页执行
- function clickPage(){
- layui.use('laypage', function(){
- var laypage = layui.laypage;
- //执行一个laypage实例
- laypage.render({
- elem: 'paging',
- first: '首页',
- count: _total,
- last: '尾页',
- prev: '<em>上一页</em>',
- next: '<em>下一页</em>',
- curr: _data.page,
- //当前页
- jump: function (obj, first) { //触发分页后的回调
- //触发分页后的回调,并传递当前页obj.cuur
- if (!first) {
- var cuur = obj.curr;
- _data.page = cuur;//获取当前页
- getQuestion()
- }
- }
- });
- });
- }
- </script>
- </body>
- </html>
|