requirejs.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!-- +---------------------------------------------------------------------- -->
  2. <!-- | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -->
  3. <!-- +---------------------------------------------------------------------- -->
  4. <!-- | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. -->
  5. <!-- +---------------------------------------------------------------------- -->
  6. <!-- | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -->
  7. <!-- +---------------------------------------------------------------------- -->
  8. <!-- | Author: CRMEB Team <admin@crmeb.com> -->
  9. <!-- +---------------------------------------------------------------------- -->
  10. <script src="{__PLUG_PATH}requirejs/require.js"></script>
  11. <script>
  12. var aliplayerVersion = '2.9.22';
  13. requirejs.config({
  14. // urlArgs: 'bust=' + (new Date()).getTime(),
  15. map: {
  16. '*': {
  17. 'css': '{__PLUG_PATH}requirejs/css.min.js'
  18. }
  19. },
  20. shim: {
  21. 'iview': {
  22. deps: ['css!iviewcss']
  23. },
  24. 'layer': {
  25. deps: ['css!layercss']
  26. },
  27. 'ydui': {
  28. deps: ['css!yduicss']
  29. },
  30. 'vant': {
  31. deps: ['css!vantcss']
  32. },
  33. 'cityselect': {
  34. deps: ['css!yduicss']
  35. },
  36. 'swiper': {
  37. deps: ['css!swipercss']
  38. },
  39. 'aliplayer': {
  40. deps: [
  41. 'css!//g.alicdn.com/de/prismplayer/' + aliplayerVersion + '/skins/default/aliplayer-min.css',
  42. 'aliplayer-plugin'
  43. ]
  44. }
  45. },
  46. baseUrl: '//' + location.hostname + '{__PUBLIC_PATH}',
  47. paths: {
  48. 'static': 'static',
  49. 'components': '{__WAP_PATH}zsff/components',
  50. 'images': '{__WAP_PATH}zsff/images',
  51. 'vue': 'static/plug/vue/dist/vue.min',
  52. 'axios': 'static/plug/axios.min',
  53. 'iview': 'static/plug/iview/dist/iview.min',
  54. 'iviewcss': 'static/plug/iview/dist/styles/iview',
  55. 'lodash': 'static/plug/lodash',
  56. 'layer': 'static/plug/layer/layer',
  57. 'layercss': 'static/plug/layer/theme/default/layer',
  58. 'jquery': 'static/plug/jquery-1.10.2.min',
  59. 'moment': 'static/plug/moment',
  60. 'sweetalert': 'static/plug/sweetalert2/sweetalert2.all.min',
  61. 'helper': 'static/plug/helper',
  62. 'store': '{__WAP_PATH}crmeb/module/store',
  63. 'better-scroll': "static/plug/better-scroll",
  64. 'ydui': "static/plug/ydui/ydui",
  65. 'yduicss': "static/plug/ydui/ydui-px",
  66. 'vant': "static/plug/vant/vant.min",
  67. 'vantcss': "static/plug/vant/vant",
  68. 'cityselect': "static/plug/ydui/cityselect",
  69. 'reg-verify': "static/plug/reg-verify",
  70. 'special-type': '{__WAP_PATH}zsff/js/special-type',
  71. 'clipboard': '{__WAP_PATH}zsff/js/clipboard',
  72. 'quick': '{__WAP_PATH}zsff/js/quick',
  73. 'text': 'static/plug/requirejs/text',
  74. 'progress': '{__WAP_PATH}zsff/js/vue-circle-progress',
  75. 'swipercss': '{__PLUG_PATH}swiper5/css/swiper.min',
  76. 'swiper': '{__PLUG_PATH}swiper5/js/swiper',
  77. 'qrcode': '{__PUBLIC_PATH}system/js/qrcode.min',
  78. 'vue-circle-progress': '{__WAP_PATH}zsff/js/vue-circle-progress',
  79. 'picker': '{__PLUG_PATH}picker.min',
  80. 'shortcut': '{__WAP_PATH}zsff/components/shortcut/index',
  81. 'evaluate-list': '{__WAP_PATH}zsff/components/evaluate-list/index',
  82. 'aliplayer': '//g.alicdn.com/de/prismplayer/' + aliplayerVersion + '/aliplayer-min',
  83. 'aliplayer-hls': '//g.alicdn.com/de/prismplayer/' + aliplayerVersion + '/hls/aliplayer-hls-min',
  84. 'aliplayer-plugin': 'wap/first/zsff/js/aliplayer-plugin'
  85. }
  86. });
  87. </script>