Authored by 郭成尧

loading

@@ -12,9 +12,7 @@ let $ = require('yoho-jquery'), @@ -12,9 +12,7 @@ let $ = require('yoho-jquery'),
12 lazyload = require('yoho-jquery-lazyload'), 12 lazyload = require('yoho-jquery-lazyload'),
13 tip = require('plugin/tip'); 13 tip = require('plugin/tip');
14 14
15 -loading.init($(document.body), {  
16 - className: 'loading-mask-opactiy'  
17 -}); 15 +loading.init($(document.body));
18 16
19 let seckillObj = {}; 17 let seckillObj = {};
20 18
@@ -248,7 +246,7 @@ seckillObj = { @@ -248,7 +246,7 @@ seckillObj = {
248 '/product/seckill/get-product-list?app_version=1' : 246 '/product/seckill/get-product-list?app_version=1' :
249 '/product/seckill/get-product-list'; 247 '/product/seckill/get-product-list';
250 248
251 - loading.show(); 249 + loading.showLoading();
252 self.el.$navList.toggleClass('fix-top', false); 250 self.el.$navList.toggleClass('fix-top', false);
253 $.ajax({ 251 $.ajax({
254 url: url, 252 url: url,
@@ -269,7 +267,7 @@ seckillObj = { @@ -269,7 +267,7 @@ seckillObj = {
269 } 267 }
270 }) 268 })
271 .always(function() { 269 .always(function() {
272 - loading.hide(); 270 + loading.hideLoading();
273 }); 271 });
274 }, 272 },
275 273