SeaCMS静态模式跳转页码功能
版本:V13.2
静态模式: 目录2:/{dir}/{page}id
编辑/js/function.js
文件第171行,找到
goUrl=(url.split('_').length<3)?regexpSplice(url,/(\/\/\S+\d+?)(\.html|\.htm|\.shtml|\.shtm|\.asp|\.php)/,str):regexpSplice(url,/(\/\/\S+\d+?)_\d+(\.html|\.htm|\.shtml|\.shtm|\.asp)/,str);
修改为
goUrl=(url.split('_').length<2)?regexpSplice(url,/(\/\/\S+\d+?)(\.html|\.htm|\.shtml|\.shtm|\.asp|\.php)/,str):regexpSplice(url,/(\/\/\S+\d+?)_\d+(\.html|\.htm|\.shtml|\.shtm|\.asp)/,str);
编辑列表页模板channel.html
,在分页位置插入
<input type='input' name='page' size=4 /><input type='button' value='跳转' onclick="getPageGoUrl({channellist:pagecount},'page',3,'index.html')" class='pagebtn' />
CSS
.hl-page-wrap input{margin-bottom:10px;padding:0 4px;width:60px;border:#f2f2f2 1px solid;border-radius:2px;font-size:14px;line-height:38px;height:38px;margin-left:2px;text-align:center;vertical-align:middle;}
.hl-page-wrap input:hover{border-color:#ff6a1f}
.hl-page-wrap .pagebtn{font-size:14px;color:#666666;margin-left:8px;background:#fff;border:#f2f2f2 1px solid;border-radius:2px;font-weight:normal;line-height:38px;height:38px;}
.hl-page-wrap .pagebtn:hover{color:#fff;background-color:#ff6a1f;cursor:pointer}