style.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!--<script type="text/javascript" src="/static/plug/basket.js"></script>-->
  2. <script type="text/javascript" src="{__PLUG_PATH}requirejs/require.js"></script>
  3. <?php /* <script type="text/javascript" src="/static/plug/requirejs/require-basket-load.js"></script> */ ?>
  4. <script>
  5. var hostname = location.hostname;
  6. if(location.port) hostname += ':' + location.port;
  7. requirejs.config({
  8. map: {
  9. '*': {
  10. 'css': '{__PUBLIC_PATH}static/plug/requirejs/require-css.js'
  11. }
  12. },
  13. shim:{
  14. 'iview':{
  15. deps:['css!iviewcss']
  16. },
  17. 'layer':{
  18. deps:['css!layercss']
  19. }
  20. },
  21. baseUrl:'//'+hostname+'{__PUBLIC_PATH}',
  22. paths: {
  23. 'static':'static',
  24. 'system':'system',
  25. 'vue':'static/plug/vue/dist/vue.min',
  26. 'axios':'static/plug/axios.min',
  27. 'iview':'static/plug/iview/dist/iview.min',
  28. 'iviewcss':'static/plug/iview/dist/styles/iview',
  29. 'lodash':'static/plug/lodash',
  30. 'layer':'static/plug/layer/layer',
  31. 'layercss':'static/plug/layer/theme/default/layer',
  32. 'jquery':'static/plug/jquery/jquery.min',
  33. 'moment':'static/plug/moment',
  34. 'sweetalert':'static/plug/sweetalert2/sweetalert2.all.min',
  35. 'formCreate':'{__PLUG_PATH}form-create/form-create.min',
  36. },
  37. basket: {
  38. excludes:['system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  39. // excludes:['system/util/mpFormBuilder','system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  40. }
  41. });
  42. </script>
  43. <script type="text/javascript" src="{__ADMIN_PATH}util/mpFrame.js"></script>