<?php defined('KX_ROOT') || exit('Permission denied');?><!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
	<title><?php include \Kuxin\View::parseTpl($tkd['title']);?></title>
    <meta name="keywords" content="<?php include \Kuxin\View::parseTpl($tkd['keywords']);?>">
    <meta name="description" content="<?php include \Kuxin\View::parseTpl($tkd['description']);?>">
	<link rel="stylesheet" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/css/global.css"/>
	<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/flexible.min.js"></script>
    <link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
    <meta name="author" content="www.ptcms.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width" />
    <meta name="applicable-device" content="pc">
    <meta http-equiv="mobile-agent" content="format=html5; url=<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "mobileurl");?><?php echo $_SERVER['REQUEST_URI'];?>">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta http-equiv="Cache-Control" content="no-transform" />
    <link rel="canonical" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "pcurl");?><?php echo $_SERVER['REQUEST_URI'];?>" />
</head>
<body>
	<!-- 导航 -->
	<div class="flex-wrp flex-center bg-white w100 size14 pt-nav">
		<a href="<?php echo \Kuxin\Helper\Url::build("index.index",[],"");?>" class="color5 mr20 pt-select">精选</a>
		<a href="<?php echo \Kuxin\Helper\Url::build("novel.rank.index",[],"");?>" class="color5 mr20">排行</a>
		<a href="<?php echo \Kuxin\Helper\Url::build("novel.category.index",[],"");?>" class="color5 mr20">分类</a>
		<a href="<?php echo \Kuxin\Helper\Url::build("novel.over.index",[],"");?>" class="color5">完本</a>
	</div>

	<!-- 轮播 -->
	<div class="w100 pt-slider">
		<ul class="pt-slider-main">
            <?php $list=\Kuxin\Block::show('banner', ['key'=>'wap_index']);?>
            <?php if(is_array($list)): foreach($list as $key =>$loop):?>
            <li class="pt-slider-panel">
                <a href="<?php echo $loop['url'];?>" title="<?php echo $loop['intro'];?>">
                    <img src="<?php echo $loop['img'];?>" title="<?php echo $loop['intro'];?>"  alt="<?php echo $loop['intro'];?>" class="pt-slider-thumb">
                </a>
            </li>
            <?php endforeach; endif;?>
		</ul>
		<ul class="flex-wrp flex-center pt-slider-nav">
            <?php $list=\Kuxin\Block::show('banner', ['key'=>'wap_index']);?>
            <?php if(is_array($list)): foreach($list as $key =>$loop):?>
            <li class="pt-slider-item"></li>
            <?php endforeach; endif;?>
	   </ul>
	</div>

	<!-- 搜索框 -->
	<div class="w100 bg-white pb10 plr15">
		<a href="<?php echo \Kuxin\Helper\Url::build("novel.search.index",[],"");?>" class="flex-wrp flex-center pt-search">
			<img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/search.png" class="mr10 pt-search-icon" ><input type="text" class="color4" placeholder="请输入您要搜索的书名">
		</a>
	</div>

	<!-- 新书上架 -->
	<div class="w100 mb10 bg-white lh100 pt-new">
		<div class="size14 color7 bold pt-new-title">新书上架</div>
		<div class="w100 overflow-x">
			<div class="flex-wrp pt-new-cont">
                <?php $list=\Kuxin\Block::show('recommend', ['recommendid'=>1,'num'=>8]);?>
                <?php if(is_array($list)): foreach($list as $key =>$loop):?>
                <div class="size12 pt-new-item">
                    <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['data']['novel']['id'],'pinyin'=>$loop['data']['novel']['pinyin']],"");?>"><img src="<?php echo $loop['data']['novel']['cover'];?>" alt="<?php echo $loop['data']['novel']['name'];?>"></a>
                    <div class="pt10 pb5"><a title="<?php echo $loop['data']['novel']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['data']['novel']['id'],'pinyin'=>$loop['data']['novel']['pinyin']],"");?>" class="compulsory-row-one color7"><?php echo $loop['data']['novel']['name'];?></a></div>
                    <div><a title="<?php echo $loop['data']['author']['name'];?>" class="color4 compulsory-row-one" href="<?php echo \Kuxin\Helper\Url::build("author.space.index",['authorid'=>$loop['data']['author']['id'],'pinyin'=>$loop['data']['author']['pinyin']],"");?>"><?php echo $loop['data']['author']['name'];?></a></div>
                </div>
                <?php endforeach; endif;?>
			</div>
		</div>
	</div>

	<!-- 站长推荐 -->
	<div class="w100 bg-white lh100 pt-recomment">
		<div class="size14 color7 bold pt-recomment-title">站长推荐</div>
		<div class="pt-recomment-cont">
            <?php $list=\Kuxin\Block::show('recommend', ['recommendid'=>2,'num'=>3]);?>
            <?php if(is_array($list)): foreach($list as $key =>$loop):?>
			<div class="flex-wrp pt-recomment-item">
                <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['data']['novel']['id'],'pinyin'=>$loop['data']['novel']['pinyin']],"");?>" class="mr15"><img src="<?php echo $loop['data']['novel']['cover'];?>" alt="<?php echo $loop['data']['novel']['name'];?>"></a>
				<div class="flex-item pt5" style="max-width: 2.65rem;">
					<div class="flex-wrp flex-between">
						<div class="size14 color7"><a title="<?php echo $loop['data']['novel']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['data']['novel']['id'],'pinyin'=>$loop['data']['novel']['pinyin']],"");?>" class="color7"><?php echo $loop['data']['novel']['name'];?></a></div>
						<div class="color2 size14"><?php echo $loop['data']['data']['mark'];?> <span class="size12">人在追</span></div>
					</div>
					<div class="size12 compulsory-row mb10 mt10 lh130 color4">
                        <?php echo \Kuxin\Helper\Str::truncate(showIntroLine($loop['data']['novel']['intro']),50);?>
					</div>
					<div class="flex-wrp flex-between">
						<div class="size12 authorlabel"><a title="<?php echo $loop['data']['author']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("author.space.index",['authorid'=>$loop['data']['author']['id'],'pinyin'=>$loop['data']['author']['pinyin'],'name'=>$loop['data']['author']['name']],"");?>" class="color5"><?php echo $loop['data']['author']['name'];?></a></div>
						<div class="pt-recomment-label"><a title="<?php echo $loop['data']['category']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.category.list",['categoryid'=>$loop['data']['category']['id'],'key'=>$loop['data']['category']['key']],"");?>" class="color4"><?php echo $loop['data']['category']['name'];?></a></div>
					</div>
				</div>
			</div>
            <?php endforeach; endif;?>
		</div>
	</div>
    <!-- 专题 -->
    <div class="w100 mb10 bg-white lh100 pt-hotsort mt10">
        <div class="flex-wrp flex-between size14 color7 pt-hotsort-title" style="margin-bottom: .15rem;">
            <div class="bold">专题</div>
            <a href="<?php echo \Kuxin\Helper\Url::build("special.index",[],"");?>" class="size12 color4">更多 ></a>
        </div>
        <?php $list=\Kuxin\Block::show('special.list', ['num'=>1,'page'=>1]);?>
        <a href="<?php echo \Kuxin\Helper\Url::build("special.detail",['specialid'=>$list[0]['id']],"");?>" title="<?php echo $list[0]['intro'];?>">
            <img src="<?php echo $list[0]['cover'];?>" alt="<?php echo $list[0]['intro'];?>" style="width: 345px;height: 135px; border-radius: 5pt;margin-left: 10px;">
        </a>
        <p style="margin:10px 10px 5px;font-size: 14px;">
            <span class="inline-block" style="width: 260px;">
                <span class="compulsory-row-one"><?php echo $list[0]['title'];?></span>
            </span>
            <span class="fr">热度：<?php echo $list[0]['num_allvisit'];?></span>
        </p>
    </div>
	<!-- 精品排行 -->
	<div class="w100 mb10 bg-white lh100 pt-hotsort mt10">
		<div class="flex-wrp flex-between size14 color7 pt-hotsort-title">
			<div class="bold">精品排行</div>
			<a href="<?php echo \Kuxin\Helper\Url::build("novel.rank.index",[],"");?>" class="size12 color4">更多 ></a>
		</div>
		<div class="flex-wrp pt-rank-list">
			<div class="border-r-red pt-rank-item pt-rank-select">点击榜</div>
			<div class="border-r-red pt-rank-item">推荐榜</div>
			<div class="pt-rank-item">收藏榜</div>
		</div>
		<div class="w100 overflow-x">
			<div class="flex-wrp pt-new-cont">
                <?php $list=\Kuxin\Block::show('novel.list', ['order'=>'weekvisit','num'=>10]);?>
                <?php if(is_array($list)): foreach($list as $key =>$loop):?>
				<div class="size12 pt-new-item">
                    <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" title="<?php echo $loop['novel']['name'];?>" class="inline-block"><img src="<?php echo $loop['novel']['cover'];?>" alt="<?php echo $loop['novel']['name'];?>"></a>
                    <div class="w100 lh150 pt10 pb5 "><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" class="color7 compulsory-row-one"><?php echo $loop['novel']['name'];?></a></div>
                    <div class="w100 lh150 "><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" class="color4 compulsory-row-one"><?php echo $loop['author']['name'];?></a></div>
				</div>
                <?php endforeach; endif;?>
			</div>
            <div class="flex-wrp pt-new-cont none">
                <?php $list=\Kuxin\Block::show('novel.list', ['order'=>'vote','num'=>10]);?>
                <?php if(is_array($list)): foreach($list as $key =>$loop):?>
                <div class="size12 pt-new-item">
                    <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" title="<?php echo $loop['novel']['name'];?>" class="inline-block"><img src="<?php echo $loop['novel']['cover'];?>" alt="<?php echo $loop['novel']['name'];?>"></a>
                    <div class="w100 lh150 pt10 pb5 "><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" class="color7 compulsory-row-one"><?php echo $loop['novel']['name'];?></a></div>
                    <div class="w100 lh150 "><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" class="color4 compulsory-row-one"><?php echo $loop['author']['name'];?></a></div>
                </div>
                <?php endforeach; endif;?>
            </div>
            <div class="flex-wrp pt-new-cont none">
                <?php $list=\Kuxin\Block::show('novel.list', ['order'=>'mark','num'=>10]);?>
                <?php if(is_array($list)): foreach($list as $key =>$loop):?>
                <div class="size12 pt-new-item">
                    <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" title="<?php echo $loop['novel']['name'];?>" class="inline-block"><img src="<?php echo $loop['novel']['cover'];?>" alt="<?php echo $loop['novel']['name'];?>"></a>
                    <div class="w100 lh150 pt10 pb5 "><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" class="color7 compulsory-row-one"><?php echo $loop['novel']['name'];?></a></div>
                    <div class="w100 lh150 "><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" class="color4 compulsory-row-one"><?php echo $loop['author']['name'];?></a></div>
                </div>
                <?php endforeach; endif;?>
            </div>
		</div>
	</div>

	<!-- 最新更新 -->
	<div class="w100 bg-white lh100 pt-update">
		<div class="size14 bold color7 pt-update-title">最新更新</div>
		<div class="pt-update-cont">
            <?php $list=\Kuxin\Block::show('novel.list', ['order'=>'lastupdate','num'=>5,'cachetime'=>180]);?>
            <?php if(is_array($list)): foreach($list as $key =>$loop):?>
            <div class="flex-wrp pt-update-item">
                <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" title="<?php echo $loop['novel']['name'];?>" class="mr15"><img src="<?php echo $loop['novel']['cover'];?>" alt="<?php echo $loop['novel']['name'];?>"></a>
				<div class="flex-item" style="max-width: 2.65rem;">
					<div class="flex-wrp flex-between">
                        <div class="size14"><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>" title="<?php echo $loop['novel']['name'];?>" class="color7"><?php echo $loop['novel']['name'];?></a></div>
						<div class="color4 size12"><?php echo \Kuxin\View::date($loop['last']['time'],"m-d H:i");?></div>
					</div>
					<div class="size12 compulsory-row-one mb5 mt5 lh120 ">
                        <a title="<?php echo $loop['last']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.chapter.read",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin'],'chapterid'=>$loop['last']['id']],"");?>" class="color4"><?php echo $loop['last']['name'];?></a>
					</div>
					<div class="flex-wrp flex-between">
                        <div class="size12 authorlabel"><a title="<?php echo $loop['author']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("author.space.index",['authorid'=>$loop['author']['id'],'pinyin'=>$loop['author']['pinyin'],'name'=>$loop['author']['name']],"");?>" class="color5"><?php echo $loop['author']['name'];?></a></div>
                        <div class="pt-recomment-label"><a title="<?php echo $loop['category']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.category.list",['categoryid'=>$loop['category']['id'],'key'=>$loop['category']['key']],"");?>" class="color4"><?php echo $loop['category']['name'];?></a></div>
                    </div>
				</div>
			</div>
            <?php endforeach; endif;?>
        </div>
	</div>

	<!-- 底部版权 -->
    <div class="pt-copyright">
    <div class="size12  w100 text-center mt15 mb10"><a title="隐私声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'privacy'],"");?>" class="color4">隐私声明</a> | <a title="免责声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'disdaimer'],"");?>" class="color4">免责声明</a> | <a title="关于我们" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'about'],"");?>" class="color4">关于我们</a></div>
    <div class="size12 color4 w100 text-center mb10">Copyright © 2009-<?php echo date(Y);?> <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "beian");?></div>
    <div class="size12  w100 text-center"><?php echo \Kuxin\Response::runinfo();?></div>
</div>
<!-- js -->
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/jquery-3.3.1.js"></script>
<script>
    $('.pt-return,.pt-recall').click(function(){
        window.history.back();
    });
    $('.pt-ellipsis').click(function(){
        $('.pt-tip').toggle()
    });
    $('.pt-tip .pt-tip-item').click(function(){
        $('.pt-tip').toggle()
    });
</script>
<div class="none">
    <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "tongji.mobile");?>
    <?php if(\Kuxin\Helper\Arr::getValue($_kxcms_config, "app.use_cdn")):?>
    <script src="/api/stat/novel/info.js"></script>
    <script src="/api/stat/novel/read.js"></script>
    <?php endif;?>
</div>
	<!-- 底部按钮 -->
	<div class="w100 flex-wrp flex-between size12 color4 flex-align-center pt-tabbar">
    <a class="pt-tabbar-item pt-tabbar-mark <?php if(($pagesign =='user' && ($userleftsign == 'mark' || $userleftsign == 'history') )):?>active<?php endif;?>" href="<?php if($islogin):?><?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?><?php else:?><?php echo \Kuxin\Helper\Url::build("user.history.index",[],"");?><?php endif;?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书架</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-home <?php if(($pagesign!='user')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("index.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书城</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-booklist <?php if(($pagesign=='booklist')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("booklist.booklist.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书单</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-my <?php if(($pagesign=='user' && $userleftsign!='mark' && $userleftsign!='history')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("user.index.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">我的</div>
    </a>
</div>
	<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/index.js"></script>
</body>
</html>