Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
d850ac40d5ea9320115b0a0d661453dd0409d630
1 parent
9076f21d
采集问题
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletions
website/view/layout/default_layout.php
website/view/layout/default_layout_mobile.php
website/view/layout/default_layout.php
View file @
d850ac4
...
...
@@ -146,6 +146,22 @@
seajs.use('yohood',function(yohood){
yohood.layout();
})
(
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_web','','geo');
</script>
<?php
$this->_block
('js');?>
<?php
$this->_endblock
();?>
...
...
website/view/layout/default_layout_mobile.php
View file @
d850ac4
...
...
@@ -56,6 +56,24 @@ seajs.use('mobile',function(mobile){
})
</script>
<?php
$this->_block
('js');?>
<?php
$this->_endblock
();?>
<?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>
...
...
Please
register
or
login
to post a comment