Main.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. MWF.xApplication.Empty.options.multitask = true;
  2. MWF.xApplication.Empty.Main = new Class({
  3. Extends: MWF.xApplication.Common.Main,
  4. Implements: [Options, Events],
  5. options: {
  6. "style1": "default",
  7. "style": "default",
  8. "name": "Empty",
  9. "mvcStyle": "style.css",
  10. "icon": "icon.png",
  11. "width": "400",
  12. "height": "700",
  13. "isResize": false,
  14. "isMax": false,
  15. "title": MWF.xApplication.Empty.LP.title
  16. },
  17. onQueryLoad: function(){
  18. this.lp = MWF.xApplication.Empty.LP;
  19. },
  20. loadApplication: function(callback){
  21. //1var url = "../x_component_Empty/$Main/default/view.html";
  22. var url = this.path+this.options.style+"/view.html";
  23. var url2 = this.path+this.options.style+"/view2.html";
  24. o2.Actions.load("x_processplatform_assemble_surface").TaskAction.listMyPaging(1,20, function(json){
  25. this.content.loadHtml(url, {"bind": {"lp": this.lp, "data": json}, "module": this}, function(){
  26. this.doSomething();
  27. }.bind(this));
  28. // this.content.loadHtml(url, {"bind": {"lp": this.lp, "data": json}, "module": this}, function(){
  29. // this.doSomething();
  30. // }.bind(this));
  31. //
  32. // o2.load(["js1", "js2"], {}, function(){}); //js
  33. //
  34. // o2.loadCss //css
  35. // o2.loadHtml("", {"dom": this.content})
  36. // o2.loadAll //js,css,html
  37. //
  38. // o2.loadAll({
  39. // "css": [],
  40. // "js":[],
  41. // "html": []
  42. // },
  43. // )
  44. //
  45. }.bind(this));
  46. },
  47. doSomething: function(){
  48. },
  49. loadTask: function(){
  50. alert("loadTask")
  51. },
  52. tabover: function(){
  53. //alert("tabover");
  54. this.myNode.addClass("mainColor_bg");
  55. },
  56. tabout: function(){
  57. //alert("tabout")
  58. this.myNode.removeClass("mainColor_bg");
  59. },
  60. clickNode: function(e){
  61. debugger;
  62. alert(e.sourceTarget);
  63. }
  64. });