主题 : 内容列表点击分页显示页面找不到
级别: 解元
UID: 114969
积分:236 加为好友
威望: 2 精华: 0
主题:22 回复:70
注册时间:2017-07-12
在线时长:0
11#   发表于:2018-07-17 14:24:45  IP:106.202.*.*
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="sogou_site_verification" content="3jyqPQ4RAG"/>
    <title>海洋生物科普</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=0">
    <meta name="keywords" content="${site.keywords!}"/>
    <meta name="description" content="${site.description!}"/>
    <meta http-equiv="Pragma" content="no-cache">
    <!--<link rel="shortcut icon" href="${res}/imgs/hzjnet.ico" type="image/x-icon" />-->
    <link href="/${res}/css/public.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="/${res}/css/yms.css">
    <link rel="stylesheet" href="/${res}/css/head_footer.css">
    <script src="/${res}/js/jquery-3.2.1.min.js" type="text/javascript"></script>
    <script src="/${res}/js/banner.js" type="text/javascript"></script>
    <script src="/${res}/js/public.js"></script>
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

<script type="text/javascript">
$(function() {
Cms.siteFlow("${base}", location.href, document.referrer, "${site.config.flowSwitch?string}");
});
</script>
<style>
.page-large{
          float: left;
    width: 100%;
}.banner {
    background: url(/${res}/img/ybk_banner.jpg) center center no-repeat;
    text-align: center;
    height: 400px;
}
</style>
</head>

<body  class="seek_lis">
[#include "../include/header.html"/]
<!--banner图-->
<div class="banner"></div>
<!--body-->
<div class="body banxin clearfix">
    <div class="dw">
        <p>当前位置 : 海洋生物百科</p>
    </div>
    <!--body-left-->
    <div class="body_l fl">
        <div class="body_l_h">
            <i></i>网站导航
        </div>
        [#include "../include/ce_nav.html"]
    </div>


    <div class="body_r fr">
  [@cms_content_page channelId='92'  titlen='35' append='...'  count='6' orderBy='2' channelOption='1' dateFormat='yyyy']
        <div class="body_r_title">
            <i></i>生物百科
        </div>
        <div class="body_r_content clearfix">
  [#list tag_pagination.list as s]
  <div class="body_r_lis clearfix">
                    <a href="${s.url}" class="clearfix wz_lis">
                    <div class="img">
                       [#if s.typeImg??]<img src="${s.typeImg}" alt="">[#else]<img src="${res}/img/wjz.jpg" alt="">[/#if]  
                    </div>
                    <div class="content">
                        <p><span>中文学名</span> [#if s.title??]${s.title}[#else]暂无[/#if]</p>
                        <p><span>拉丁学名</span>[#if s.attr.lading??]${s.attr.lading}[#else]暂无[/#if]</p>
                        <p><span>英文学名</span>[#if s.attr.english??]${s.attr.english}[#else]暂无[/#if]</p>
                    </div>
                </a>
</div>
  [/#list]
            </div>
        </div>

<!--分页-->
       [#include "../include/page.html"/]
    </div>
</div>
    [/@cms_content_page]
[#include "../include/foot.html"/]
<script>
   
    nav(1);
ce_nav(0)
</script>
</body>
</html>
级别: 解元
UID: 114969
积分:236 加为好友
威望: 2 精华: 0
主题:22 回复:70
注册时间:2017-07-12
在线时长:0
12#   发表于:2018-07-17 14:25:27  IP:106.202.*.*
回复第10楼 你看一下 我的代码
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
13#   发表于:2018-07-17 14:29:23  IP:115.234.*.*
如果这是是您加上去的  我认为是您那边的分页模板有问题   您可以去看下我们的演示站  我们演示站就有很多的页面分页   是没有问题的  您可以参照我们的分页来重新写一个
每天告诉自己一次,“我真的很不错”。
级别: 解元
UID: 114969
积分:236 加为好友
威望: 2 精华: 0
主题:22 回复:70
注册时间:2017-07-12
在线时长:0
14#   发表于:2018-07-17 14:32:47  IP:106.202.*.*
[#--
栏目翻页样式
1 2 3 4 5 ... 10    [1-3]
1 ..2 3 4 5 6 ... 10    [4]
1 ..3 4 5 6 7... 10    [5]

pageClass: 翻页DIV class
pageStyle: 翻页DIV style
currPageClass:当前页码class
norPageClass:其他页码class
--]

<style>
.next-page,.prev-page{
  font-size:16px;

}
.page-large {
    margin: 40px 0 20px;
    text-align: center;
}
.page-large a.on {
    border: 1px solid #1a75d1;
    background: #1a75d1;
    color: #fff;
}
.page-large a {
    min-width: 34px;
    height: 34px;
    display: inline-block;
    border: 1px solid #d5d5d5;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    line-height: 34px;
    text-align: center;
    float: left;
    text-indent: 0;
    color: #666666;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 3px;
}
.page-large a.on {
    border: 1px solid #1a75d1;
    background: #1a75d1;
    color: #fff;
}
</style>
<div class="page-large">
    [#assign p=tag_pagination/]  
      <div style="display:inline-block;">
     [#if p.firstPage]
     [#else]<a href="#" class="prev-page" onclick="location.href=encodeURI('${hrefFormer}[#if p.prePage gt 1]_${p.prePage}[/#if]${hrefLatter}');"><</a>
     [/#if]
     [#if p.pageNo lte 3]
      [#if p.totalPage gt 3]
      [#list 1..3 as i]
      [#if i==1]
       <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}${hrefLatter}');">${i}</a>
      [#else]
         <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a>
      [/#if]
      [/#list]
      [#else]
[#list 1..p.totalPage as i]
[#if i==1]
<a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}${hrefLatter}');">${i}</a>
[#else]
<a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a>
[/#if]
[/#list]
      [/#if]
      [#else]
[#assign first=p.pageNo-2/]
[#assign last=p.pageNo/]
      <a class="Num" href="#" onclick="location.href=encodeURI('${hrefFormer}${hrefLatter}');">1</a>
      [#if first gt 2]<a class="Num none">...</a>[/#if]
      [#list first..last as i]
  <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a>
      [/#list]
      [#if p.totalPage!=p.pageNo]
       [#if last lt p.totalPage-1]<a class="none">...</a>[/#if]
     <a class="Num " href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.totalPage}${hrefLatter}');">${p.totalPage}</a>
       [/#if]
      [/#if]  
      [#if p.lastPage]
      [#else]
      <a class="next-page" href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.nextPage}${hrefLatter}');">></a>
      [/#if]
      </div>
</div>
级别: 解元
UID: 114969
积分:236 加为好友
威望: 2 精华: 0
主题:22 回复:70
注册时间:2017-07-12
在线时长:0
15#   发表于:2018-07-17 14:33:20  IP:106.202.*.*
这是用你们原封不动的代码
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
16#   发表于:2018-07-17 14:38:34  IP:115.234.*.*
您这块代码是在哪里看到的?
每天告诉自己一次,“我真的很不错”。
级别: 解元
UID: 114969
积分:236 加为好友
威望: 2 精华: 0
主题:22 回复:70
注册时间:2017-07-12
在线时长:0
17#   发表于:2018-07-17 14:39:36  IP:106.202.*.*
你们官网模板里面有啊!
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
18#   发表于:2018-07-17 14:43:53  IP:115.234.*.*
明白  我的意思是您是在那个模板看到的   能说下吗?   有些的模板内的分页是不同的
每天告诉自己一次,“我真的很不错”。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
19#   发表于:2018-07-17 14:44:48  IP:115.234.*.*
回复第17楼
您看分页也有很多种分页的  我想知道您是在那个模板调用了什么样的分页
每天告诉自己一次,“我真的很不错”。
级别: 解元
UID: 114969
积分:236 加为好友
威望: 2 精华: 0
主题:22 回复:70
注册时间:2017-07-12
在线时长:0
20#   发表于:2018-07-17 14:50:34  IP:106.202.*.*
内容分页,内容分页,内容分页
|< < 1 2 3 4 > >| 共4页