default_layout_mobile.php
3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!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"></a>
<?php endif;?>

</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>