Authored by biao

有货币详细页面加入loading效果. code review by LZF

1 -var $ = require('jquery'); 1 +var $ = require('jquery'),
  2 + loading = require('../plugin/loading');
2 var page = 1; 3 var page = 1;
3 4
  5 +loading.showLoadingMask();
  6 +
4 function ajaxCurrencyDetail(page) { 7 function ajaxCurrencyDetail(page) {
5 $.ajax({ 8 $.ajax({
6 type: 'POST', 9 type: 'POST',
@@ -29,3 +32,5 @@ $(window).scroll(function() { @@ -29,3 +32,5 @@ $(window).scroll(function() {
29 }); 32 });
30 33
31 ajaxCurrencyDetail(page); 34 ajaxCurrencyDetail(page);
  35 +
  36 +$(document).ready(loading.hideLoadingMask);