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
33c92d52673416756c3c68b94a324b36739c1e00
1 parent
6c751163
loading modify
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
static/js/plugin/loading.js
static/js/product/list.js
static/js/plugin/loading.js
View file @
33c92d5
...
...
@@ -10,17 +10,14 @@ var $page = $('.yoho-page');
var
$loading
;
/**
* 初始化loading mask
* @param $container loading容器, position:relative
*/
function
initLoadingMask
()
{
//初始化
(
function
()
{
var
html
=
'<div class="loading-mask hide"><div class="loading"></div></div>'
;
$page
.
append
(
html
);
$loading
=
$page
.
children
(
'.loading-mask'
);
}
}
());
//显示loading
function
showLoadingMask
()
{
...
...
@@ -32,6 +29,5 @@ function hideLoadingMask() {
$loading
.
addClass
(
'hide'
);
}
exports
.
initLoadingMask
=
initLoadingMask
;
exports
.
showLoadingMask
=
showLoadingMask
;
exports
.
hideLoadingMask
=
hideLoadingMask
;
\ No newline at end of file
...
...
static/js/product/list.js
View file @
33c92d5
...
...
@@ -209,7 +209,6 @@ function search(opt) {
lazyLoad
(
$
(
'.lazy'
));
filter
.
registerCbFn
(
search
);
loading
.
initLoadingMask
();
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
...
...
Please
register
or
login
to post a comment