app.util.js 880 B

123456789101112131415161718192021222324252627282930313233
  1. 
  2. //插件扩展
  3. $(function () {
  4. layer.config({
  5. extend: '../../../ui/global/layer/skin/moon/style.css', //加载新皮肤
  6. skin: 'layer-ext-moon' //一旦设定,所有弹层风格都采用此主题。
  7. });
  8. $.loading = function (bool, text) {
  9. if (bool) {
  10. App.blockUI({
  11. target: 'body',
  12. boxed: true,
  13. message: '加载中' | text //,
  14. // animate: true
  15. });
  16. } else {
  17. App.unblockUI();
  18. }
  19. }
  20. //兼容各种插件中loading
  21. loading = function (bool, text) {
  22. if (bool) {
  23. App.blockUI({
  24. target: 'body',
  25. boxed: true,
  26. message: '加载中' | text//,
  27. // animate: true
  28. });
  29. } else {
  30. App.unblockUI();
  31. }
  32. }
  33. });