maccmsv10 视频分类页分页url问题

发布于 2020-04-24 14:44:08

视频分类页面分页url的链接实际是筛选页面的url
正确的应该是:域名/lianxuju-1.html
现在显示的是:域名/show/lianxuju--------1---.html
vod/type.html视频分类页面模版代码
`<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>最新{$obj.type_name}-推荐{$obj.type_name} - {$maccms.site_name}</title>
<meta name="renderer" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
<meta name="keywords" content="{$obj.type_key}" />
<meta name="description" content="{$obj.type_des}" />
{include file="public/include"}
</head>
<body>
<!--导航开始-->
{include file="public/head"}
<!--导航结束-->

<script src="{$maccms.path_tpl}js/slade888.js"></script>
<div class="list">
<div class="li_index">

<div class="s_index">
  <dl>
    <dt>选择类型:</dt>
    <dd>
    <a condition="($vo.type_name=="")"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>'','order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部</a>
     
         {maccms:type ids="parent" order="asc" by="sort"}
        <a {if condition="($vo.type_name==$obj.type_name)"}class="current"{/if} href="{:mac_url_type($vo,[],'show')}">{$vo.type_name}</a>
        {maccms:type  parent="'.$vo['type_id'].'"  order="asc" mid="1" by="sort"}{assign name="var_" value="$vo.type_id" /}{/maccms:type}
          {/maccms:type}
 

      </dd>
  </dl>
     
    {notempty name="$var_"}
    <dl>
    <dt>选择分类:</dt>
    <dd>
    <a {if condition="$vo.type_name==''"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>'','order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部</a>
    {if condition="($obj.type_pid ==0)"}
        {maccms:type parent="current" order="asc" by="sort"}
        <a {if condition="($vo.type_name==$obj.type_name)"}class="current"{/if} href="{:mac_url_type($vo,[],'show')}">{$vo.type_name}</a>
          {/maccms:type}
    {else /}
        {maccms:type parent="'.$obj['type_pid'].'" order="asc" by="sort"}
         <a {if condition="($vo.type_name==$obj.type_name)"}class="current"{/if} href="{:mac_url_type($vo,[],'show')}">{$vo.type_name}</a>
        {/maccms:type}
    {/if}            
      </dd>
  </dl>
    {else /}
    
    {/notempty}
  
    
    <dl>
    <dt>选择剧情:</dt>
    <dd>
    <a condition="($vo.type_name=="")"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>'','order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部</a>
    {empty name="$obj.type_extend.area"}
            {maccms:foreach name=":explode(',',$obj.parent.type_extend.class)" id="vo2" key="key2"}
            <a {if condition="$param['class'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$vo2,'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
            {/maccms:foreach}
            {else /}
            {maccms:foreach name=":explode(',',$obj.type_extend.class)" id="vo2" key="key2"}
            <a {if condition="$param['class'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$vo2,'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
            {/maccms:foreach}
            {/empty}    
                     
      </dd>
  </dl>
    
    
    
    
    
  <dl>
    <dt>选择年代:</dt>
    <dd>

        <a {if condition="$param['year'] eq ''"} class="current"{/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>'','level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部</a>
            {empty name="$obj.type_extend.year"}
                {maccms:foreach name=":explode(',',$obj.parent.type_extend.year)" id="vo2" key="key2"}
                <a {if condition="$param['area'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
                {/maccms:foreach}
            {else /}
                {maccms:foreach name=":explode(',',$obj.type_extend.year)" id="vo2" key="key2"}
                <a {if condition="$param['year'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$vo2,'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
                {/maccms:foreach}
            {/empty}
      
      
      </dd>
  </dl>
  <dl>
    <dt>选择地区:</dt>
    <dd>
        
      <a {if condition="$param['area'] eq ''"} class="current" {/if} href="{:mac_url_type($obj,['area'=>'','lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部</a>
            {empty name="$obj.type_extend.area"}
                {maccms:foreach name=":explode(',',$obj.parent.type_extend.area)" id="vo2" key="key2"}
                <a {if condition="$param['area'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
                {/maccms:foreach}
            {else /}
                {maccms:foreach name=":explode(',',$obj.type_extend.area)" id="vo2" key="key2"}
                <a {if condition="$param['area'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
                {/maccms:foreach}
            {/empty}
      </dd>
  </dl>
    {if condition="$obj.type_extend.lang==''&&$obj.parent.type_extend.lang==''"}{else /}
    <dl>
    <dt>选择语言:</dt>
    <dd>
         
           <a {if condition="$param['lang'] eq ''"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>'','year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部</a>
            {empty name="$obj.type_extend.lang"}
                {maccms:foreach name=":explode(',',$obj.parent.type_extend.lang)" id="vo2" key="key2"}
                <a {if condition="$param['area'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
                {/maccms:foreach}
            {else /}
                {maccms:foreach name=":explode(',',$obj.type_extend.lang)" id="vo2" key="key2"}
                <a {if condition="$param['lang'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$vo2,'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
                {/maccms:foreach}
            {/empty}
      
      </dd>
  </dl>
    {/if}
    
    
  
  <dl>
    <dt>已选条件:</dt>
    <dd>条件为空</dd>
  </dl>
</div>

</div>
</div>
<div class="list_su">
<div class="down_top">排序:

  <a href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>'time' ],'show')}" class="{if condition="$param.by eq '' || $param.by eq 'time'"}current{/if}">最新</a>
    <a href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>'hits' ],'show')}" class="{if condition="$param.by eq 'hits'"}current{/if}">热门</a>
    <a href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>'score' ],'show')}" class="{if condition="$param.by eq 'score'"}current{/if}">评分</a>
   
<div class="dtop"></div>

</div>
<ul>

    {maccms:vod  num="36" paging="yes" pageurl="vod/show" type="current" order="desc" by="time"}
<li>
  <div class="liimg"><a class="pic_link" href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}" target="_blank"><img class="lazy" data-src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><span>{$vo.vod_remarks}</span></a></div>
  <div class="cts_ms">
    <p class="title"><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}" target="_blank">{$vo.vod_name}</a><span>{$vo.vod_score} </span></p>
    <p class="des">{$vo.vod_year}  {$vo.vod_area}  {$vo.type.type_name}</p>
  </div>
</li>
    {/maccms:vod}

  

</ul>
</div>
<div class="pages">

{include file="public/paging"}

</div>
<!-- asid start -->
{include file="public/asid_start"}
<!-- asid end -->
{include file="public/foot"}
</body>
</html>`
分页paging.html代码`
{if condition="$__PAGING__.record_total gt 0"}
<div class="mac_pages">

<div class="page_tip">共{$__PAGING__.record_total}条数据,当前{$__PAGING__.page_current}/{$__PAGING__.page_total}页</div>
<script>$(".dtop").html("筛选结果:共<span>{$__PAGING__.record_total}</span>条数据")</script>
<div class="page_info">
    <a class="page_link layui-btn layui-btn-primary" href="{$__PAGING__.page_url|mac_url_page=1}" title="首页">首页</a>
    <a class="page_link layui-btn layui-btn-primary" href="{$__PAGING__.page_url|mac_url_page=$__PAGING__.page_prev}" title="上一页">上一页</a>
    {maccms:foreach name="$__PAGING__.page_num" id="num"}
    {if condition="$__PAGING__['page_current'] eq $num"}
    <a class="page_link layui-btn" href="javascript:;" title="第{$num}页" style="background:#1278f6;color:#fff;">{$num}</a>
    {else}
    <a class="page_link layui-btn layui-btn-primary" href="{$__PAGING__.page_url|mac_url_page=$num}" title="第{$num}页" >{$num}</a>
    {/if}
    {/maccms:foreach}
    <a class="page_link layui-btn layui-btn-primary" href="{$__PAGING__.page_url|mac_url_page=$__PAGING__.page_next}" title="下一页">下一页</a>
    <a class="page_link layui-btn layui-btn-primary" href="{$__PAGING__.page_url|mac_url_page=$__PAGING__.page_total}" title="尾页">尾页</a>

    <input class="page_input" type="text" placeholder="页码"  id="page" autocomplete="off" style="width:40px">
    <button class="page_btn mac_page_go" type="button" data-url="{$__PAGING__.page_url}" data-total="{$__PAGING__.page_total}" data-sp="{$__PAGING__.page_sp}" >GO</button>
</div>

</div>
{else/}
<div class="wrap">

<h1>没有找到匹配数据</h1>

</div>
{/if}

<style>
/-Pages-/
.mac_pages { text-align: center;

padding: 4px 0;
overflow: hidden;
height: 100px;
width: 100%;}

.mac_pages .page_tip {margin-left:4px; font-weight:bold; color:#7f7f7f; font-weight:normal;}
.mac_pages .page_link{ height: 38px;

line-height: 38px;display:inline-block; padding:2px 15px; border:1px solid #ddd; margin-left:4px;}

.mac_pages .page_current{display:inline-block; padding:2px 4px; background-color : #fee; border : 1px solid red; color : red; margin-left:4px;}
.mac_pages .page_input {margin-left:4px; height:38px; width:38px;}
.mac_pages .page_btn{border:1px solid #CCCCCC; height:40px; width:40px;text-align:center; cursor: hand;}
/-/Page-/

</style>

查看更多

关注者
0
被浏览
262
1 个回答
金刚狼
金刚狼 2020-04-24
官方技术人员

{maccms:vod num="36" paging="yes" pageurl="vod/type" type="current" order="desc" by="time"}

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览