Server : nginx/1.20.1
System : Linux iZ2ze9ojcl78uluczwag69Z 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64
User : www ( 1000)
PHP Version : 7.3.28
Disable Function : passthru,exec,system,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/0531yanglao.com/runtime/index/temp/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/0531yanglao.com/runtime/index/temp/35109ae306b2d1909f220c869d0e9515.php
<?php /*a:3:{s:68:"/www/wwwroot/0531yanglao.com/templates/index/nursing_home_index.html";i:1705291166;s:56:"/www/wwwroot/0531yanglao.com/templates/index/header.html";i:1703727865;s:56:"/www/wwwroot/0531yanglao.com/templates/index/footer.html";i:1703756011;}*/ ?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!--<title>找养老院/<?php echo htmlentities($a); ?><?php echo htmlentities($t); ?><?php echo htmlentities($c); ?><?php echo htmlentities($n); ?><?php echo htmlentities($s); ?></title>-->
		<title>济南<?php echo htmlentities($a_name); ?><?php echo htmlentities($c_name); ?><?php echo htmlentities($n_name); ?><?php echo htmlentities($s_name); ?>养老机构查询-济南<?php echo htmlentities($a_name); ?><?php echo htmlentities($c_name); ?><?php echo htmlentities($n_name); ?><?php echo htmlentities($s_name); ?>养老院价格收费排名一览表_第<?php echo htmlentities($page['currentPage']); ?>页-济南养老网</title>
		<meta name="Description"
			content="济南养老网为您介绍关于济南养老院,护理院,老年公寓的价格,地理位置,收费标准,房间设施,特色服务,护理项目,图文介绍,联系方式,排名,哪家好?等养老服务机构信息;让您在众多济南养老院中方便快捷地找到合适的养老院。" />
		<meta name="Keywords" content="济南<?php echo htmlentities($a_name); ?><?php echo htmlentities($c_name); ?><?php echo htmlentities($n_name); ?><?php echo htmlentities($s_name); ?>养老院,济南<?php echo htmlentities($a_name); ?><?php echo htmlentities($n_name); ?>老年公寓,济南<?php echo htmlentities($a_name); ?><?php echo htmlentities($s_name); ?>养老机构,济南养老网。当前第<?php echo htmlentities($page['currentPage']); ?>页"/>
		<base href="<?php echo server_url(); ?>" />
		<link rel="stylesheet" href="./css/style.css" />
		<link rel="stylesheet" href="./css/swiper.min.css" />
	</head>
	<style>
		.mySwiper {
			display: none;
		}

		main {
			background: #f5f5f5;
		}

		.rmtj_left {
			border: 0 !important;
		}

/*	ul a:nth-child(2) {*/
/*    background-color: #ffffff;*/
/*    color: #1ac1b0 !important;*/
/*}*/
/*分页*/
    .pagination {
        display: flex;
        list-style: none;
        justify-content: center;
        align-items: center;
    }

    .pagination li {
        margin: 0 5px;
    }

    .pagination li.active a {
        font-weight: bold;
    }
      @media all and (max-width: 768px) {
          .rmtj_left .wrap .yyy h4 {
    font-size: 15px;
}
          .price {
    font-size: 16px!important;
}
.app_uuu .xinjia span {
    font-size: 12px!important;
}
.app_yyy .xinjia img {
    height: 17px;
}
.buttons p img {
    height: 17px!important;
}
.app_yyy h5:first-child {
   padding: 0;
}

.search_yl {
    display: block;
    width: 100%;
    margin: 24px auto 10px auto;
}
#filter dl dt {
    height: 40px;
    width: 107px;
    line-height: 45px;
    position: absolute;
    left: 0;
    z-index: 1;
    /* background-color: #d5d5d5; */
    /* top: 0; */
}
#filter dl dt {
    background: #fff;
}
#filter dl   a {
    margin: 0 10px;
    font-size: 14px;
    color: #7d7d7d;
}
#filter dl dt {
    color: #000000;
    width: 90px;
}
#filter dl {
    width: 100%;
    display: flex;
    height: 40px;
    white-space: nowrap;
    overflow-y: hidden;
    align-items: center;
    border-top: none;
    /* border-left: 1px solid #cccccc; */
    border-right: none;
    /* position: relative; */
    padding-left: 80px;
    box-sizing: border-box;
}
#filter {
    border: 0;
    width: 96%;
    margin: 0 auto;
}
/* 设置滚动条样式 */
#filter dl::-webkit-scrollbar {
  width: 0px; /* 滚动条宽度 */
  opacity: 0;
}

      }
    
	</style>
	<body>
		<!-- 头部 -->
		
<header>
    <div class="head">
        <div class="logo">
            <img src="images/fanhui.png" class="goback" onclick="goBack()">
            <a href="http://yl.jnbinzang.com/"> 
            <h1>济南养老网</h1>
            <span>济南养老信息服务平台</span></a>
            <img src="images/nav.png" class="but">
        </div>
        <div class="sadsffd dropdown">
            <form method="post" action="<?php echo url('/zyly/'); ?>" class="sadsffd">
            <input type="text" id="text" name="keyword" class="dropdown-selected inping" placeholder="输入养老院名称" value=""/>
            <button class="search_icon" type="submit" id="search"  >
                <img src="image/search.png" />
            </button>
        </form>
        </div>
        <div class="hd_gw">
            <img src="image/headerlogo.png" class="fadeout"/>
            <li>
                <p id="btnn">咨询养老顾问</p>
                0531-8298521
            </li>
        </div>
    </div>
    <nav>
        <ul>
            <a title="首页" href="<?php echo server_url(); ?>" class="current">首页</a>
            <a title="找养老站" id="zhao" href="<?php echo url('/nursingHome/index'); ?>">找养老院</a>
            <!--<a title="机构地图" href="<?php echo url('/map/index'); ?>">机构地图</a>-->
            <a title="旅居养老" id="lv" href="<?php echo url('/sojourn/index'); ?>">旅居养老</a>
            <a title="为老服务" id="wei" href="<?php echo url('/service/index'); ?>">为老服务</a>
            <a title="养老指南" href="<?php echo url('/guide/index'); ?>">养老指南</a>
            <a title="养老资讯" id="yang" href="<?php echo url('/article/index'); ?>">养老资讯</a>
            <a title="机构入组" href="<?php echo url('/join/index'); ?>">机构入驻</a>
            <a title="关于我们" href="<?php echo url('/about/index'); ?>">关于我们</a>
        </ul>
         <div class="wapzsyss">
              <div class="sadsffd dropdown">
            <form method="post" action="<?php echo url('/zyly/'); ?>" class="sadsffd">
            <input type="text" id="text" name="keyword" class="dropdown-selected inping" placeholder="输入养老院名称" value=""/>
            <button class="search_icon" type="submit" id="search"  >
                <img src="image/search.png" />
            </button>
        </form>
        </div>
        <div class="hd_gw">
            <img src="image/headerlogo.png" class="fadeout"/>
            <li>
                <p id="btnn">咨询养老顾问</p>
                0531-8298521
            </li>
        </div>
        </div>
    </nav>
</header>
   <!-- 指定养老方案 -->
    <div class="login loginss" style="display: none">
        <div class="login_content">

            <h1>填写老人信息</h1>
            <p>别担心,您填写的信息会严格保密,仅根据老人实际情况匹配合适的养老机构</p>
            <form class="form " method="">
					<label class="username"> <input type="text" placeholder="请填写老人姓名" id="username" name="username" /></label>
					<label class="age"> <input type="text" placeholder="请填写老人年龄" id="age" name="age" /></label>
					<label class="sex">  <select id="sex" name="sex">
							<option value="请选择性别">请选择性别</option>
							<option value="男">男</option>
							<option value="女">女</option>
						</select></label>
					<label class="open">  <select id="open" name="open">
							<option value="">请选择老人生活能力</option>
							<option value="好">好</option>
							<option value="不好">不好</option>
						</select></label>
					<label class="sch"> <input type="text" id="sch" name="sch" placeholder="请填写入住预算" /></label>
					<label style="width:100%"> <textarea id="textarea" name="textarea" type="text"
							placeholder="请填写老人身体情况,疾病史,用药历史"></textarea></label>
					<label class="newname"> <input type="text" id="newname" name="newname" placeholder="请填写联系人" /></label>
					<label class="scheel">  <select id="scheel" name="scheel">
							<option value="请选择性别">和老人关系</option>
							<option value="配偶">朋友</option>
							<option value="朋友">配偶</option>
							<option value="祖孙">祖孙</option>
								<option value="父母">父母</option>
						</select></label>
					<label class="phonea"><input id="phone" name="phone" type="text" placeholder="请填写联系人手机号" maxlength="11" /></label>
                <label class="yanzhengma"><input type="" name="verCode" id="verCode" placeholder="请输入验证码" maxlength="6" /><input type="button" name="" id="verCodeBtn" value="获取验证码" onclick="settime(this);" /></label>
                <input type="button" id="btn7" value="确认提交">
            </form>
            <img src="image/guanbi.png" id="close">
        </div>
    </div>
	<div class="heimu"></div>

<script type="text/javascript" charset="utf-8">
//     var text = document.querySelector('#text')
// var textval = text.value
// var search = document.querySelector("#search")
// var param= {
// 	   area: textval,
// 	}
// 	 const urlsearchParams = new URLSearchParams(param).toString();
// search.onclick = function(){
//   window.location.href = 'http://yl.jnbinzang.com/nursingHome.html'+'?'+urlsearchParams
// }

</script>
		<!-- 主体 -->
		<main>

			<div class="f_home">
				<!--<h4>首页/找养老院/<?php echo htmlentities($a); ?><?php echo htmlentities($t); ?><?php echo htmlentities($c); ?><?php echo htmlentities($n); ?><?php echo htmlentities($s); ?></h4>-->
				<h4>首页/找养老院/<?php echo htmlentities($a_name); ?><?php echo htmlentities($t_name); ?><?php echo htmlentities($c_name); ?><?php echo htmlentities($n_name); ?><?php echo htmlentities($s_name); ?></h4>
				<div class="search_yl">

					<div id="filter">
						<dl class="quyu">
							<dt>所在区域</dt>
							<a class="" href="<?php echo url('/zyly', ['location'=>'0']); ?>" 
							>全部</a>
							<?php if(is_array($dict[7]) || $dict[7] instanceof \think\Collection || $dict[7] instanceof \think\Paginator): if( count($dict[7])==0 ) : echo "" ;else: foreach($dict[7] as $key=>$item): ?>
							<a href="<?php echo url('/zyly/', ['location'=>$key]); ?>" title="济南市<?php echo htmlentities($item); ?>"><?php echo htmlentities($item); ?></a>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</dl>
						<dl class="leixing"> 
							<dt>机构类型</dt>
							<a class="" href="<?php echo url('/zyly', ['type'=>0]); ?>" >全部</a>
							<?php if(is_array($dict[2]) || $dict[2] instanceof \think\Collection || $dict[2] instanceof \think\Paginator): if( count($dict[2])==0 ) : echo "" ;else: foreach($dict[2] as $key=>$item): ?>
							<a id="jigou" href="<?php echo url('/zyly', ['type'=>$key]); ?>" title="<?php echo htmlentities($item); ?>"><?php echo htmlentities($item); ?></a>

							<?php endforeach; endif; else: echo "" ;endif; ?>
						</dl>
						<dl class="shoufei">
							<dt>收费标准</dt>
							<a class="" href="<?php echo url('/zyly', ['price'=>0]); ?>" >全部</a>
							<?php if(is_array($dict[9]) || $dict[9] instanceof \think\Collection || $dict[9] instanceof \think\Paginator): if( count($dict[9])==0 ) : echo "" ;else: foreach($dict[9] as $key=>$item): ?>
							<a id="shoufei" href="<?php echo url('/zyly', ['price'=>$key]); ?>" title="<?php echo htmlentities($item); ?>"><?php echo htmlentities($item); ?></a>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</dl>
						<dl class="xingzhi">
							<dt>机构性质</dt>
							<a class="" href="<?php echo url('/zyly', ['nature'=>0]); ?>">全部</a>
							<?php if(is_array($dict[3]) || $dict[3] instanceof \think\Collection || $dict[3] instanceof \think\Paginator): if( count($dict[3])==0 ) : echo "" ;else: foreach($dict[3] as $key=>$item): ?>
							<a id="xingzhi" href="<?php echo url('/zyly', ['nature'=>$key]); ?>" title="<?php echo htmlentities($item); ?>"><?php echo htmlentities($item); ?></a>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</dl>
						<dl class="fuwu">
							<dt>服务内容</dt>
							<a class="" href="<?php echo url('/zyly', ['service'=>0]); ?>">全部</a>
							<?php if(is_array($dict[8]) || $dict[8] instanceof \think\Collection || $dict[8] instanceof \think\Paginator): if( count($dict[8])==0 ) : echo "" ;else: foreach($dict[8] as $key=>$item): ?>
							<a id="fuwu" href="<?php echo url('/zyly', ['service'=>$key]); ?>" title="<?php echo htmlentities($item); ?>"><?php echo htmlentities($item); ?></a>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</dl>
					</div>
					<div class="resa" style="display:none"></div>
				</div>
				<div class="kuaishu">
					<li><img src="image/kuaisu01.png" /><i id="diliweizhi"><?php echo htmlentities($a_name); ?></i>养老机构<span id="total"><?php echo htmlentities($statistics['total']); ?></span>家
					</li>
					<li><img src="image/kuaisu02.png" />平均收费<?php echo htmlentities($statistics['min_price']); ?>-<?php echo htmlentities($statistics['max_price']); ?>元/月</li>
					<!--<li><a href="<?php echo url('/zyly', ['location'=>$key]); ?>"><button>快速查找</button> </a></li>-->
					<!--<li><a href="/zyly/<?php echo htmlentities($a); ?>"><button>快速查找</button> </a></li>-->
						<li><button id="btn6">快速查找</button></li>
				</div>

			</div>
			<!-- 找养老院 -->
			<div class="route">
				<div class="rmtj">
					<!-- 左边 -->
					<div class="rmtj_left">
						<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$item): ?>
						<a href="<?php echo url('/nursingHome/detail',['id'=>$item['nid']]); ?>" target="_blank"  title="<?php echo htmlentities($item['title']); ?>">
							<div class="wrap yanglao" title="">
								<img src="<?php echo htmlentities($item['filename']); ?>" class="zyleyl" alt="<?php echo htmlentities($item['title']); ?>" title="<?php echo htmlentities($item['title']); ?>"/>
								<div class="yyy">
									<h4>
										<?php echo htmlentities($item['title']); ?>
										<p class="price">¥<?php echo htmlentities($item['min_price']); ?>-<?php echo htmlentities($item['max_price']); ?> <span>元/月</span></p>
									</h4>
									<div class="app_yyy app_uuu">
										<h5><img src="./image/index04.svg" alt="" /><?php echo htmlentities($item['address']); ?></h5>
										<!--<h5>床位:<?php echo htmlentities($item['beds']); ?>张  |  评分:<?php echo htmlentities($item['comprehensive_score']); ?>分  |  机构类型:<?php echo htmlentities($item['type_name']); ?></h5>-->
										<li class="xinjia">
											<span><img src="./image/index01.svg" alt="" /><?php echo htmlentities($item['type_name']); ?></span> |
											<span><img src="./image/index02.svg" alt="" /><?php echo htmlentities($item['beds']); ?>张</span> |
											<span><img src="./image/index05.svg" alt="" /><?php echo implode('/',
												$item['retract_objects_name']); ?></span>
										</li>
										<li class="buttons">
											<?php if(is_array($item['tags_name']) || $item['tags_name'] instanceof \think\Collection || $item['tags_name'] instanceof \think\Paginator): if( count($item['tags_name'])==0 ) : echo "" ;else: foreach($item['tags_name'] as $key=>$item): ?>
											<p class="btn0<?php echo htmlentities($key + 1); ?>"><img src="./image/duihao0<?php echo htmlentities($key + 1); ?>.svg"
													alt="" /><?php echo htmlentities($item); ?></p>
											<?php endforeach; endif; else: echo "" ;endif; ?>
										</li>
									</div>
								</div>
							</div>
						</a>
						<?php endforeach; endif; else: echo "" ;endif; ?>
						<!-- 分页 -->
					
							<!-- 分页 -->
							<!--<div class="pages">-->
								<!-- 隐藏的数据总数 -->
							<!--	<span class="data-total"> <?php echo htmlentities($page['currentPage']); ?></span>-->
							<!--	<div class="v-pagination">-->
							<!--		<span class="total">总数为<?php echo htmlentities($page['total']); ?></span>-->
							<!--		<ul class="pagination-page"></ul>-->
							<!--	</div>-->
							<!--</div>-->
							<!--<?php echo htmlentities($page['total']); ?>-->
							<!--<?php echo htmlentities($page['listRows']); ?>-->
							<!--<?php echo htmlentities($page['currentPage']); ?>-->
							<!--<?php echo htmlentities($page['lastPage']); ?>-->
							
<?php
// 获取当前页数
$current_page = $page['currentPage'];

// 总记录数
$total_records = $page['total'];

// 每页显示的记录数
$records_per_page = $page['listRows'];

// 构建基础 URL
$base_url = 'http://yl.jnbinzang.com/zyly/';

// 计算总页数
$total_pages = ceil($total_records / $records_per_page);

// 显示省略号的起始页
$start_page = ($current_page - 2 > 2) ? $current_page - 2 : 1;

// 显示省略号的结束页
$end_page = ($current_page + 2 < $total_pages - 1) ? $current_page + 2 : $total_pages;

// 构建分页链接
$page_links = '';
if ($total_pages > 1) {
    $page_links .= '<ul class="pagination">';
    if ($current_page != 1) {
        $page_links .= '<li><a href="' . $base_url . '?page=' . ($current_page - 1) . '">上一页</a></li>';
        $page_links .= '<li><a href="' . $base_url . '">首页</a></li>';
    }

    if ($start_page > 1) {
        $page_links .= '<li><a href="' . $base_url . '">1</a></li>';
        if ($start_page > 2) {
            $page_links .= '<li>...</li>';
        }
    }

    for ($i = $start_page; $i <= $end_page; $i++) {
        if ($i == $current_page) {
            $page_links .= '<li class="active"><a href="' . $base_url . '?page=' . $i . '">' . $i . '</a></li>';
        } else {
            $page_links .= '<li><a href="' . $base_url . '?page=' . $i . '">' . $i . '</a></li>';
        }
    }

    if ($end_page < $total_pages) {
        if ($end_page < $total_pages - 1) {
            $page_links .= '<li>...</li>';
        }
        $page_links .= '<li><a href="' . $base_url . '?page=' . $total_pages . '">' . $total_pages . '</a></li>';
    }

    if ($current_page != $total_pages) {
        $page_links .= '<li><a href="' . $base_url . '?page=' . ($current_page + 1) . '">下一页</a></li>';
        $page_links .= '<li><a href="' . $base_url . '?page=' . $total_pages . '">尾页</a></li>';
    }

    $page_links .= '</ul>';
}

// 输出分页链接
echo $page_links;
?>
					
							<!--<?php echo $list; ?>-->
						
					</div>

					<!-- 右边 -->
					<div class="rmtj_right">
						<div class="pc_yanglaoa">
							<h4 title="为老服务">为老服务<span class="gengduo"><a href="http://yl.jnbinzang.com/wlfw/">更多</a></span></h4>
							<?php if(is_array($article_3) || $article_3 instanceof \think\Collection || $article_3 instanceof \think\Paginator): if( count($article_3)==0 ) : echo "" ;else: foreach($article_3 as $key=>$item): ?>
							<a href="<?php echo url('/article/detail',['id'=>$item['article_id']]); ?>" target="_blank"> <img
									src="<?php echo htmlentities($item['filename']); ?>" class="weilaoimg" alt="<?php echo htmlentities($item['title']); ?>" title="<?php echo htmlentities($item['title']); ?>"/>
								<h6><?php echo htmlentities($item['title']); ?></h6>
							</a>

							<?php endforeach; endif; else: echo "" ;endif; ?>
						</div>
						<div class="pc_yanglaob">
							<h4>机构推荐</h4>
							<?php if(is_array($recommend_1) || $recommend_1 instanceof \think\Collection || $recommend_1 instanceof \think\Paginator): if( count($recommend_1)==0 ) : echo "" ;else: foreach($recommend_1 as $key=>$item): ?>
							<a href="<?php echo url('/nursingHome/detail',['id'=>$item['nid']]); ?>" title="<?php echo htmlentities($item['title']); ?>"><img
									src="<?php echo htmlentities($item['filename']); ?>" target="_blank" />
								<h6><?php echo htmlentities($item['title']); ?></h6>
							</a>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</div>

						<div class="pc_yanglaoa">

							<h4 title="养老资讯">养老资讯<a href="http://yl.jnbinzang.com/ylzx/">更多<img src="./image/gengduo.png" alt=""></a>
							</h4>
							<?php if(is_array($article_1) || $article_1 instanceof \think\Collection || $article_1 instanceof \think\Paginator): if( count($article_1)==0 ) : echo "" ;else: foreach($article_1 as $key=>$item): ?> 
							<a href="<?php echo url('/article/detail',['id'=>$item['article_id']]); ?>" target="_blank" title="<?php echo htmlentities($item['title']); ?>">
								<h6 class="xinwena"><img src="./image/gengduo.png" alt="<?php echo htmlentities($item['title']); ?>"><?php echo htmlentities($item['title']); ?></h6>
							</a>
							<?php endforeach; endif; else: echo "" ;endif; ?>

						</div>
					</div>
				</div>
			</div>


		</main>

		<!-- 底部 -->
		    <footer>
        <div class="footer">
            <div class="footer-fead">
                <h1>济南养老网</h1>
                <div class="hd_gw">
                    <img src="image/phone.png" class="fadeout">
                    <li>
                        <p id="btnn">咨询养老顾问</p>
                        0531-8298521
                    </li>
                </div>
            </div>
            <div class="footer-main">
                <div class="f-left">
                    <ul class="f-left-top">
                        <li><img src="image/footer01.png" alt="">
                            <a>一站式服务</a>
                        </li>
                        <li><img src="image/footer02.png" alt="">
                            <a>精心挑选</a>
                        </li>
                        <li><img src="image/footer03.png" alt="">
                            <a>良心定制</a>
                        </li>
                        <li><img src="image/footer04.png" alt="">
                            <a>用心服务</a>
                        </li>
                    </ul>
                    <div class="f-left-bottom">
                        <a href="http://yl.jnbinzang.com/gywm.html" title="关于我们">关于我们</a>
                        <a href="http://yl.jnbinzang.com/ylzx/" title="养老资讯">养老资讯</a>
                        <a href="http://yl.jnbinzang.com/jgrz.html" title="机构入驻">机构入驻</a>
                        <a href="http://yl.jnbinzang.com/ylzn.html" title="养老指南">养老指南</a>
                           <a href="http://yl.jnbinzang.com/zyly/" title="养老指南">找养老院</a>
                    </div>
                </div>
                <div class="f-right">
                    <div><img src="image/ewm.png" alt=""><a>官方微信</a></div>
                    <div><img src="image/ewm.png" alt=""><a>官方公众号</a></div>
                </div>
            </div>
        </div>
        <div class="footer-foot"></div>
        <div class="footer-link">
            <p>友情链接:<a href="">养老</a></p>
            <p>热门养老院:<a href="">养老</a></p>
            <p>Copyright © 2002-2020 济南公墓网 鲁ICP备19054797号-3</p>
        </div>
    </footer>
 <div class="footer_b">
        <div class="footer_b_banxin">
            <h4>找养老院,上养老网</h4>
            <ul>
                <li><img src="image/xinxiquanmian.png" />信息全面</li>
                <li><img src="image/zhuanyefuwu.png" />专业服务</li>
                <li><img src="image/wanqiankoubei.png" />万千口碑</li>
            </ul>
            <p><img src="image/dianhualianxi.png" />0411-84179979</p>
            <button type="button">咨询热线</button>
        </div>
    </div>
    
    
      <div class="pc_footer_b">
        <div class="btn" data-clipboard-action="copy" data-clipboard-target="#target" id="copy_btn">
            <img src="image/footer_erweima.png" id="weixinerweima" alt="济南养老网" title="济南养老网"/><img src="image/weixin.png" alt="济南养老网" title="济南养老网"/>微信
        </div>
        <div><img src="image/xiaochengxu.png" alt="济南养老网" title="济南养老网"/>小程序</div>
        <div><img src="image/kefu.png" alt="济南养老网" title="济南养老网"/>客服</div>
        <div><img src="image/fankui.png" alt="济南养老网" title="济南养老网"/>反馈</div>
        <div class="top"><img src="image/huidingbu.png" />顶部</div>
    </div>
    
    
    
    
    
    
		<!-- 底部悬浮 -->
		<!--<div class="footer_b">-->
		<!--    <div class="footer_b_banxin">-->
		<!--        <h4>找养老院,上养老网</h4>-->
		<!--        <ul>-->
		<!--            <li><img src="image/bz_b3.png" />信息全面</li>-->
		<!--            <li><img src="image/bz_b3.png" />信息全面</li>-->
		<!--            <li><img src="image/bz_b3.png" />信息全面</li>-->
		<!--        </ul>-->
		<!--        <p><img src="image/bz_b3.png" />0411-84179979</p>-->
		<!--        <button type="button">咨询热线</button>-->
		<!--    </div>-->
		<!--</div>-->
		<!-- 侧边悬浮/ -->
		<div class="pc_footer_b">
			<div class="btn" data-clipboard-action="copy" data-clipboard-target="#target" id="copy_btn">
				<img src="image/footer_erweima.png" id="weixinerweima" /><img src="image/weixin.png" />微信
			</div>
			<div><img src="image/xiaochengxu.png" />小程序</div>
			<div><img src="image/kefu.png" />客服</div>
			<div><img src="image/fankui.png" />反馈</div>
			<div class="top"><img src="image/huidingbu.png" />顶部</div>
		</div>
	</body>
	<script src="./js/jquery-3.6.0.js"></script>
	<script src="./js/swiper.min.js"></script>
	<script src="./js/style.js"></script>
	<script src="./js/page.js"></script>
	<script>

const currentUrl = window.location.pathname
const currentUrlList = currentUrl.split('/zyly/')
const strUrlValue = currentUrlList[1] || ''
const strListValue = strUrlValue.split('/')

const pattern = /\d/g
let quyuUrl = ''
let strValue = ''

if (strListValue.length === 1) {
  if (pattern.test(strUrlValue)) {
    strValue = strUrlValue
  } else {
    quyuUrl = strUrlValue
  }
}

if (strListValue.length === 2) {
  const s1 = strListValue[0]
  const s2 = strListValue[1]

  if (pattern.test(s1)) {
    quyuUrl = ''
    strValue = s1
  } else {
    quyuUrl = s1

    if (pattern.test(s2)) {
      console.log('s2', s2)
      strValue = s2
    } else {
      strValue = ''
    }
  }
}

const classNameList = ['.quyu', '.leixing', '.shoufei', '.xingzhi', '.fuwu']
const urlList = ['a', 't', 'c', 'n', 's']

function getNumber(str) {
  const regex = /(\d+)/
  const match = str.match(regex)

  if (match) {
    const number = match[1]
    return number
  } else {
    console.log('没有找到数字')
  }
  return 1
}

function handleColor(element) {
  element.classList.add('current')
}

function handleSortStr(str) {
  let result = ''
  urlList.forEach((item) => {
    const pos = str.indexOf(item)
    if (pos !== -1) {
      const key = str.slice(pos, pos + 1)
      const value = getNumber(str.slice(pos + 1))
      const res = key + value
      result += res
    }
  })
  return result
}

function handleNewHref(url, i, pos, element) {
  let newHref

  if (i === 0) {
    if (pos === -1) {
      newHref = strValue

      handleColor(element)
    } else {
      const str = url + getNumber(strValue.slice(pos + 1))
      newHref = strValue.replace(str, '')
    }
  } else {
    if (pos === -1) {
      newHref = strValue + url + i
    } else {
      const str = url + getNumber(strValue.slice(pos + 1))
      newHref = strValue.replace(str, url + i)
      if (Number(getNumber(strValue.slice(pos + 1))) === i) {
        handleColor(element)
      }
    }
  }

  return handleSortStr(newHref)
}

function handleStart(url, i, element) {
  const str = element.search || ''

  const quyuATag = str.split('?location=')[1] || ''

  if (quyuUrl) {
    if (quyuUrl === quyuATag) {
      handleColor(element)
    }
  } else {
    if (i === 0) {
      handleColor(element)
    }
  }
  if (i === 0) {
    return ''
  }

  return quyuATag
}

function getEndHref(startUrl, endUrl) {
  if (startUrl) {
    if (endUrl) {
      return startUrl + '/' + endUrl
    } else {
      return startUrl
    }
  } else {
    return endUrl
  }
}

function handlerUrlFunc(className, url) {
  let dlElement = document.querySelector(className)
  let aElements = dlElement.querySelectorAll('a')
  const pos = strValue.indexOf(url)

  for (let i = 0; i < aElements.length; i++) {
    const element = aElements[i]

    let startUrl = ''
    let endUrl = ''

    if (url === 'a') {
      startUrl = handleStart(url, i, element)
      endUrl = strValue
    } else {
      startUrl = quyuUrl
      endUrl = handleNewHref(url, i, pos, element)
    }

    const newHref = getEndHref(startUrl, endUrl)

    const value = '/zyly/' + newHref

    aElements[i].setAttribute('href', value)
  }
}
const zylyList = [
  {
    className: '.quyu',
    url: 'a'
  },
  {
    className: '.leixing',
    url: 't'
  },
  {
    className: '.shoufei',
    url: 'c'
  },
  {
    className: '.xingzhi',
    url: 'n'
  },
  {
    className: '.fuwu',
    url: 's'
  }
]

zylyList.forEach((item) => {
  handlerUrlFunc(item.className, item.url)
})




// 判断显示每个区域的total
$.ajax({
  url: 'http://yl.jnbinzang.com/api/mapRegion',
  method: 'POST',
  success: function(responseData) {
    var res = responseData.data;

    for (var i = 0; i < res.length; i++) {
      var name = res[i].name;
      var total = res[i].total;
      var innerText = $("#diliweizhi").text();

      if (innerText === name) {
        $("#total").text(total);
        break;
      }
    }
  }
});




	</script>

</html>