default_layout_mobile.php 3.14 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>YO'HOOD | 全球潮流新品嘉年华</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="yes" name="apple-touch-fullscreen" />
    <meta content="telephone=no" name="format-detection" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
   <?php $this->_css('index_mobile.css', array(
        SITE_RES . '/css/mobile.css',
        SITE_RES . '/css/emoji.css',
        SITE_RES .'/css/hook.css',
    ));?>
<?php $this->_block('css');?>
<?php $this->_endblock();?>
</head>
<body>
<div id="hook">
    <div id="loader">
        <div class="spinner"></div>
    </div>
   <!-- <span id="hook-text">Reloading...</span> -->
</div>
 <div class="mobile-wrap">
      <?php if(empty($this->view->client)): //是不是客户端调用?>
         <div class="hd">
            <div class="header-download-wrap" style="display:none">
                <div class="header-download clearfix">
                    <div class="tip-pic"></div>
                    <div class="tip-info">
                        <h2>YOHO!有货</h2>
                        <p>随手随心,潮流购物利器大公开</p>
                        <a class="yohoboy-download-app" href="http://www.yohoshow.com/about/index/yohobuyqr">OPEN</a>
                    </div>
                    <span class="tip-close"></span>
                </div>
            </div>
            <h1 class="logo iconfont">
                <?php 
                    $_ctx = Framework_YHttpRequest::instance();
                 	$controller_name = $_ctx->controller_name;
                 	$action_name = $_ctx->action_name;
                 	$url = $controller_name.'/'.$action_name;
                 	$noAllow = array('default/index');
                 ?>
            <?php if(!in_array($url, $noAllow)):?>
                 <a class="back-btn iconfont" href="/default/index">&#xe614;</a>
            <?php endif;?>
            &#xe60b;
            </h1>
        </div>
     <?php endif;?>
        
       <div class="bd">
   		   <?php $this->_block('main');$this->_endblock();?>
   	    </div>
   	    <div class="overlay"></div>
    </div>
<?php $this->_js('index_mobile.js', array(
    SITE_JS . '/lib/seajs.js',
));?>
<script type="text/javascript">
seajs.use('mobile',function(mobile){
	mobile.common();    
})
</script>
<?php $this->_block('js');?>
<?php $this->_endblock();?>
<script type="text/javascript">
(
  	function(w,d,s,j,f)
  	{
	     w['YohoAcquisitionObject'] = f;
	     w[f] = function()
	     {
	       w[f].p = arguments;
	     };
	     var a=d.createElement(s);
	     var m=d.getElementsByTagName(s)[0];
	     a.async=1;
	     a.src=j;
	     m.parentNode.insertBefore(a,m);
  	}
)(window,document,'script','//cdn.yoho.cn/yas-jssdk/1.0.6/yas.js','_yas');//第一个参数是版本,第二个参数是appkey,第三个是用户ID,第四个是是否获取地理位置传空就是不获取地理位置。
_yas(1*new Date(),'1.0','yohood_m','','geo');
</script>     
</body>
</html>