Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
xuqi
9 years ago
Commit
0b6e853f6b484746d4f6b744551936dab855885e
1 parent
b6464f2c
common js
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
static/index.js
static/js/plugin/pos-footer.js → static/js/common.js
static/js/index/search.js
template/m.yohobuy.com/partials/layout/use.phtml
static/index.js
View file @
0b6e853
var
yohobuy
;
require
(
'./js/common'
);
require
(
'./js/passport/index'
);
require
(
'./js/guang/index'
);
require
(
'./js/home/index'
);
...
...
static/js/
plugin/pos-footer
.js → static/js/
common
.js
View file @
0b6e853
/**
* 共用底部<解决某些页面过短导致底部悬空的问题>
* @author: xuqi<qi.xu@yoho.cn
* @date: 2015/10/19
* 页面公共逻辑
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/21
*/
var
$
=
require
(
'yoho.zepto'
);
var
$footer
=
$
(
'#yoho-footer'
);
//页面通用底部位置及status设置
if
(
$
(
'body'
).
height
()
<
$
(
window
).
height
())
{
$footer
.
addClass
(
'bottom'
);
}
...
...
static/js/index/search.js
View file @
0b6e853
...
...
@@ -12,8 +12,6 @@ var $clear = $('#search-input > .clear-input');
var
$history
=
$
(
'.history'
);
require
(
'../plugin/pos-footer'
);
$
(
'#clear-history'
).
bind
(
'touchstart'
,
function
()
{
$
.
ajax
({
type
:
'POST'
,
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
0b6e853
<script>
seajs.use('js/common');
</script>
{{!-- 逛(PLUS+STAR) --}}
{{#if psList}}
...
...
Please
register
or
login
to post a comment