U.CD.Config.js 5.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Namespace.register("U.CD.CF");
  2. //所有外链控件引用区域 包含css js 执行函数区域
  3. U.CD.CF.Config = [
  4. //基本控件区域
  5. //{"css": "http://d.1473.cn/xxx.css", "js": "http://d.1473.cn/xxx.js" },
  6. {"link": "http://d.1473.cn/controls/pc/LDB/LDB.css", "js": "http://d.1473.cn/controls/pc/LDB/LDB.js" }, //
  7. {"link": "http://d.1473.cn/controls/pc/FoldingMenu/Demo2/FoldingMenu.css", "js": "http://d.1473.cn/controls/pc/FoldingMenu/Demo2/FoldingMenu.js" },
  8. { "link": "http://d.1473.cn/controls/pc/FoldingMenu/Demo1/FoldingMenu.css", "js": "http://d.1473.cn/controls/pc/FoldingMenu/Demo1/FoldingMenu.js" },
  9. { "link": "http://d.1473.cn/controls/pc/BasicControl/kongjian.css", "js": "http://d.1473.cn/controls/pc/BasicControl/kongjian.js" },
  10. //复杂控件
  11. {"link": "http://d.1473.cn/controls/pc/Note/Note.css", "js": "http://d.1473.cn/controls/pc/Note/Note.js" }, //
  12. {"link": "http://d.1473.cn/controls/pc/Video/video.css", "js": "http://d.1473.cn/controls/pc/Video/video.js" }, //视频
  13. {"link": "http://d.1473.cn/controls/pc/QRCode/qrcode.css", "js": "http://d.1473.cn/controls/pc/QRCode/qrcode.js" }, //二维码生成
  14. {"link": "http://d.1473.cn/controls/phone/Rolling_load/Rolling_load.css", "js": "http://d.1473.cn/controls/phone/Rolling_load/Rolling_load.js" }, //滚动加载
  15. //自定义控件
  16. {"link": "http://d.1473.cn/controls/pc/alert/alert.css", "js": "http://d.1473.cn/controls/pc/alert/alert.js" }, //alert
  17. {"link": "http://d.1473.cn/controls/pc/Calculator/Calculator.css", "js": "http://d.1473.cn/controls/pc/Calculator/Calculator.js" }, //计算器
  18. {"link": "http://d.1473.cn/controls/pc/calendar/calendar.css", "js": "http://d.1473.cn/controls/pc/calendar/calendar.js" }, //日历
  19. {"link": "http://d.1473.cn/controls/pc/City/City.css", "js": "http://d.1473.cn/controls/pc/City/City.js" }, //城市选择
  20. {"link": "http://d.1473.cn/controls/pc/Confirm/Confirm.css", "js": "http://d.1473.cn/controls/pc/Confirm/Confirm.js" }, //Confirm
  21. {"link": "http://d.1473.cn/controls/pc/FoldingMenu/Demo1/FoldingMenu.css", "js": "http://d.1473.cn/controls/pc/FoldingMenu/Demo1/FoldingMenu.js" }, //折叠菜单
  22. {"link": "http://d.1473.cn/controls/pc/Imagelist/Imagelist.css", "js": "http://d.1473.cn/controls/pc/Imagelist/Imagelist.js" }, //
  23. {"link": "http://d.1473.cn/controls/pc/Lnav/Lnav.css", "js": "http://d.1473.cn/controls/pc/Lnav/Lnav.js" }, //滑动栏
  24. {"link": "http://d.1473.cn/controls/pc/Loading/Loading.css", "js": "http://d.1473.cn/controls/pc/Loading/Loading.js" }, //进度条
  25. {"link": "http://d.1473.cn/controls/pc/Map/Map.css", "js": "http://d.1473.cn/controls/pc/Map/Map.js" }, //地图地位
  26. {"js": "http://api.map.baidu.com/getscript?v=2.0&ak=twH78ipof12UvP8PQNFUaB1s&services=&t=20160928173929" }, //地图地位
  27. //(function(){ window.BMap_loadScriptTime = (new Date).getTime(); document.write('<script type="text/javascript" src="http://api.map.baidu.com/getscript?v=2.0&ak=twH78ipof12UvP8PQNFUaB1s&services=&t=20160928173929"></script>');})();
  28. {"link": "http://d.1473.cn/controls/pc/navgation/navgation.css", "js": "http://d.1473.cn/controls/pc/navgation/navgation.js" }, //导航条
  29. {"link": "http://d.1473.cn/controls/pc/Pag/Pag1.css", "js": "http://d.1473.cn/controls/pc/Pag/Pag.js" }, //分页
  30. {"link": "http://d.1473.cn/controls/pc/round/round.css", "js": "http://d.1473.cn/controls/pc/round/round.js" },
  31. { "link": "http://d.1473.cn/controls/pc/colorpicker/colorpicker.css", "js": "http://d.1473.cn/controls/pc/colorpicker/colorpicker.js" }, //顔色拾取
  32. {"link": "http://d.1473.cn/controls/pc/SrcImg/ScrImg.css", "js": "http://d.1473.cn/controls/pc/SrcImg/ScrImg.js" }, //画廊
  33. {"link": "http://d.1473.cn/controls/pc/Confirm/Confirm.css", "js": "http://d.1473.cn/controls/pc/Confirm/Confirm.js" }, //Confirm
  34. //{"css": "http://d.1473.cn/controls/pc/Note/Note.css", "js": "http://d.1473.cn/controls/pc/Note/Note.js" }, //便签
  35. {"link": "http://d.1473.cn/controls/pc/Response/Response.css", "js": "http://d.1473.cn/controls/pc/Response/Response.js" }, //响应式
  36. {"link": "http://d.1473.cn/controls/pc/Tree_directory/Tree_directory.css", "js": "http://d.1473.cn/controls/pc/Tree_directory/Tree_directory.js" }, //树目录
  37. {"link": "http://d.1473.cn/controls/pc/TAB/tab.css", "js": "http://d.1473.cn/controls/pc/TAB/tab.js" }, //input补全
  38. {"js": "http://d.1473.cn/controls/pc/TAB/lib/test.json" }, //input补全
  39. {"link": "http://d.1473.cn/controls/pc/Upload/Upload.css", "js": "http://d.1473.cn/controls/pc/Upload/Upload.js" }, //响应式
  40. //可复用控件
  41. {"css": "http://d.1473.cn/controls/phone/Watefall_phone/Watefaller.css", "js": "http://d.1473.cn/controls/phone/Watefall_phone/Watefaller.js" }, //瀑布流
  42. {"css": "http://d.1473.cn/controls/pc/Lnav/Lnav.css", "js": "http://d.1473.cn/controls/pc/Lnav/Lnav.js" }, //左右侧导航
  43. //云端组建
  44. {"link": "http://d.1473.cn/controls/pc/Login/text2/login.css", "js": "http://d.1473.cn/controls/pc/Login/text2/login.js" }, //登录
  45. {"link": "http://d.1473.cn/controls/pc/register/register.css", "js": "http://d.1473.cn/controls/pc/register/register.js" }, //注册
  46. //手机控件
  47. {"link": "http://d.1473.cn/controls/phone/banner_phone/banner_phone.css", "js": "http://d.1473.cn/controls/phone/banner_phone/banner_phone.js" }, //轮播
  48. {"link": "http://d.1473.cn/controls/phone/Calendar_mobile/Calendar_mobile.css", "js": "http://d.1473.cn/controls/phone/Calendar_mobile/calendar_mobile.js" }, //手机日历
  49. ];
  50. //加载js css函数
  51. U.CD.CF.Config.implement = function () {
  52. for (var i = 0; i < U.CD.CF.Config.length; i++) {
  53. for (j in U.CD.CF.Config[i]) {
  54. if (j == "link" || j == "css") {
  55. U.UF.DL.asynLoadCss({ "href": U.CD.CF.Config[i][j], "type": "text/css", "rel": "stylesheet" });
  56. }
  57. else {
  58. U.UF.DL.asynLoadJs({ src: U.CD.CF.Config[i][j], "charset": "utf-8", "type": "text/javascript" });
  59. }
  60. // U.MD.DynamicLoad(U.CD.CF.Config[i][j], j);
  61. }
  62. //return;
  63. }
  64. }
  65. //初始化
  66. $(window).bind("load", function () {
  67. U.CD.CF.Config.implement();
  68. });