<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
	    <meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui" />
	    <meta name="apple-mobile-web-app-capable" content="yes" />
	    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
	    <meta name="format-detection" content="telephone=no, email=no" />
	    <title><?php if(MODULE_NAME != 'Index') : echo ($seo_title); ?>-<?php endif; echo ($site_name); ?></title>
	    <meta name="keywords" content="<?php echo ($seo_keywords); ?>" />
	    <meta name="description" content="<?php echo ($seo_description); ?>" />
		<link rel="stylesheet" type="text/css" href="wap/lib/swiper-3.4.1.min.css"/>
		<link rel="stylesheet" type="text/css" href="wap/lib/animate.css"/>
		<link rel="stylesheet" type="text/css" href="wap/font/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="wap/css/mobiles.css"/>
		<script src="wap/lib/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="bj-loding" class="bj-loading">
			<div class="load-box">
				<div class="ball">
					<div></div>
				</div>
			</div>
		</div>
		<script src="js/loading.js" type="text/javascript" charset="utf-8"></script>
		
		<input type="checkbox" id="menu_input" />
		<ul id="sidenav">
			<li><a href="/">首 页</a></li>
			<li><a href="<?php echo ($Categorys[12][url]); ?>"><?php echo ($Categorys[12][catname]); ?></a></li>
			<li><a href="<?php echo ($Categorys[8][url]); ?>"><?php echo ($Categorys[8][catname]); ?></a></li>
			<li><a href="<?php echo ($Categorys[9][url]); ?>"><?php echo ($Categorys[9][catname]); ?></a></li>
			<li><a href="<?php echo ($Categorys[10][url]); ?>"><?php echo ($Categorys[10][catname]); ?></a></li>
			<li><a href="<?php echo ($Categorys[11][url]); ?>"><?php echo ($Categorys[11][catname]); ?></a></li>
			<li><a href="<?php echo ($Categorys[13][url]); ?>"><?php echo ($Categorys[13][catname]); ?></a></li>
			<li><a href="<?php echo ($Categorys[17][url]); ?>"><?php echo ($Categorys[17][catname]); ?></a></li>
			<li><a href="<?php echo ($Categorys[18][url]); ?>"><?php echo ($Categorys[18][catname]); ?></a></li>
			<div class="tel">
				<div><a href="tel:<?php echo ($call); ?>"><span>服务热线</span><?php echo ($call); ?></a></div>
			</div>
		</ul>
		
		<!--头部 开始-->
		<header class="header clearfix">
			<h1 class="logo fl"><a href="/"><img src="img/header_logo.png"/></a></h1>
			<a  style="font-size: 22px;color: #fff;line-height: 54px;margin: 36px;"  href="tel:<?php echo ($call); ?>"><?php echo ($call); ?></a>
			<div class="menu fr"><div id="menu"><i class="iconfont icon-menu"></i></div></div>
		</header>
		<!--头部 结束-->

		<!--页面内容 开始-->
		<section class="page home_page">
			

<?php  $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxb20d03be79354898&secret=4bb452da50dabcf862a5bad03004c827"; $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_TIMEOUT, 500); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_URL, $url); $res = curl_exec($curl); curl_close($curl); $res = json_decode($res); $accessToken = $res->access_token; $url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=$accessToken"; $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_TIMEOUT, 500); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_URL, $url); $res = curl_exec($curl); curl_close($curl); $res = json_decode($res); $jsapiTicket = $res->ticket; $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $timestamp = time(); $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $nonceStr = ""; for ($i = 0; $i < 16; $i++) { $nonceStr .= substr($chars, mt_rand(0, strlen($chars) - 1), 1); } $string = "jsapi_ticket=$jsapiTicket&noncestr=$nonceStr&timestamp=$timestamp&url=$url"; $signature = sha1($string); $signPackage = array( "appId" => 'wxb20d03be79354898', "nonceStr" => $nonceStr, "timestamp" => $timestamp, "url" => $url, "signature" => $signature, "rawString" => $string ); ?>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script type="text/javascript">
  wx.config({  
    debug: false,  
    appId: '<?php echo ($signPackage["appId"]); ?>',  
    timestamp: '<?php echo ($signPackage["timestamp"]); ?>',  
    nonceStr: '<?php echo ($signPackage["nonceStr"]); ?>',  
    signature: '<?php echo ($signPackage["signature"]); ?>',  
    jsApiList: [  
      // 所有要调用的 API 都要加到这个列表中  
      'onMenuShareTimeline',  
      'onMenuShareAppMessage',
      'updateTimelineShareData',
      'updateAppMessageShareData'
    ]  
  });  

  //完成wx.config，执行这里  
  wx.ready(function () { 

    //分享到朋友圈  
    wx.updateTimelineShareData({ 
        title: '<?php echo ($title); ?>-广州邦聚网络', // 分享标题
        link: window.location.href, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
        imgUrl: 'https://www.bangju.com/.<?php echo ($thumb); ?>', // 分享图标
        success: function () {
          // 设置成功
        //   alert('已分享');
        }
    });
    
    //分享给朋友  
    wx.updateAppMessageShareData({ 
        title: '<?php echo ($title); ?>-广州邦聚网络', // 分享标题
        desc: '<?php echo ($des); ?>', // 分享描述
        link: window.location.href, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
        imgUrl: 'https://www.bangju.com/.<?php echo ($thumb); ?>', // 分享图标
        success: function () {
          // 设置成功
        //   alert('已分享');
        }
    })
    
  });  
</script>

<div class="banner">
	<img src="wap/img/news_banner.jpg"/>
</div>

<!--新闻详情 开始-->
<div class="news_detail bgfff mt10 padall">
	<div class="title"><?php echo ($title); ?></div>
	<div class="date"><?php echo (todate($createtime,"Y-m-d")); ?></div>
	<div class="content"><?php echo ($content); ?></div>
</div>
<!--新闻详情 结束-->
			<!--联系我们 开始-->
			<div class="all_contact padall bgfff mt10">
				<div class="title">CONTACT US</div>
				<div class="info">服务热线：<a href="tel:<?php echo ($call); ?>"><?php echo ($call); ?></a></div>
				<div class="info">地址：<?php echo ($address); ?></div>
				<div class="info">邮箱：<a style="color: #999;font-size: 16px;" href="mailto:admin@bangju.com?cc=admin@bangju.com&bcc=admin@bangju.com" rel="nofollow" ><?php echo ($site_email); ?></a></div>
			</div>
			<!--联系我们 结束-->
			
			<!--底部 开始-->
			<div class="all_footer">
				<div>Copyright © 2014-2022 广州邦聚网络技术有限公司</div>
			</div>
			<!--底部 结束-->
			
			<div id="mask"></div>
			
		</section>
		<!--页面内容 结束-->
		
	</body>
	
	<script src="wap/lib/jquery.rotate.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="wap/lib/swiper-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="wap/js/main.js" type="text/javascript" charset="utf-8"></script>
	
	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://hm.baidu.com/hm.js?339150096b9f8cf67d56b348daed79b5";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>
	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://hm.baidu.com/hm.js?f1bcffc58c18a711cf86e611c56fbcef";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>

</html>