<?php /* Smarty version Smarty-3.1.8, created on 2015-11-24 10:38:36
         compiled from "D:\wwwroot\o2o\htdocs\themes\default\xiche\mcenter\block\mheader.html" */ ?>
<?php /*%%SmartyHeaderCode:278085653cdac23cd17-24870282%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e53a627aead3fa2210fa81a4ba7514876412f634' => 
    array (
      0 => 'D:\\wwwroot\\o2o\\htdocs\\themes\\default\\xiche\\mcenter\\block\\mheader.html',
      1 => 1447920537,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '278085653cdac23cd17-24870282',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'tpl_title' => 0,
    'CONFIG' => 0,
    'pager' => 0,
    'js_sdk' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5653cdac2f8535_19968210',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5653cdac2f8535_19968210')) {function content_5653cdac2f8535_19968210($_smarty_tpl) {?><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
<title><?php echo (($tmp = @$_smarty_tpl->tpl_vars['tpl_title']->value)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['CONFIG']->value['site']['title'] : $tmp);?>
</title>
<link rel="stylesheet" type="text/css" href="/themes/default/xiche/static/css/mlayout/pub_app.css"/>
<link rel="stylesheet" type="text/css" href="/themes/default/xiche/static/css/mlayout/style.css"/>

<link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['pager']->value['res'];?>
/frozenui/css/frozen.css">
<link rel="stylesheet" type="text/css" href="/themes/default/xiche/static/css/mlayout/pub_app.css"/>
<link rel="stylesheet" type="text/css" href="/themes/default/xiche/static/css/mlayout/style.css"/>
<script type="text/javascript">
// 指定js基础路径，会在require动态加载其他js时引用
window._js_path = '<?php echo $_smarty_tpl->tpl_vars['pager']->value['res'];?>
/weixin';
window._append_parent = 'append_parent';
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['res'];?>
/script/layer.m/layer.m.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['res'];?>
/weixin/config.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['res'];?>
/weixin/require.js"></script>
<script type="text/javascript" src="/themes/default/xiche/static/js/web.js"></script>

<script>
    require(["zepto", "underscore", "frozen"], function($, _, fz) {

         wx.config({
            debug: false,
            appId: '<?php echo $_smarty_tpl->tpl_vars['js_sdk']->value["appId"];?>
',
            timestamp: '<?php echo $_smarty_tpl->tpl_vars['js_sdk']->value["timestamp"];?>
',
            nonceStr: '<?php echo $_smarty_tpl->tpl_vars['js_sdk']->value["nonceStr"];?>
',
            signature: '<?php echo $_smarty_tpl->tpl_vars['js_sdk']->value["signature"];?>
',
            jsApiList: [
                'getLocation',
                'onMenuShareTimeline'
            ]
          });
          wx.ready(function () {
            // 在这里调用 API
           wx.getLocation({
                type: 'wgs84', // 默认为wgs84的gps坐标，如果要返回直接给openLocation用的火星坐标，可传入'gcj02'
                success: function (res) {
                    var latitude = res.latitude; // 纬度，浮点数，范围为90 ~ -90
                    var longitude = res.longitude; // 经度，浮点数，范围为180 ~ -180。
                    //var speed = res.speed; // 速度，以米/每秒计
                    //var accuracy = res.accuracy; // 位置精度
                    setCookie('lat',latitude,1);
                    setCookie('lng',longitude,1);
                    var lat = getCookie('lat');
                    var lng = getCookie('lng');
                }
            });
   

          });

    });
</script>
<?php }} ?>