...
|
...
|
@@ -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 |
...
|
...
|
|