js.blade.php 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. @inject('YunShop', '\YunShop')
  2. <script>var require = { urlArgs: 'v={{date('YmdH')}}' };
  3. if(navigator.appName == 'Microsoft Internet Explorer'){
  4. if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
  5. alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
  6. }
  7. }
  8. /*
  9. window.sysinfo = {
  10. 'uniacid': '{{YunShop::app()->uniacid ?? ''}}',
  11. 'acid': '{{YunShop::app()->acid ?? ''}}',
  12. 'openid': '{{YunShop::app()->openid ?? ''}}',
  13. 'uid': '{{YunShop::app()->uid ?? ''}}',
  14. 'siteroot': './',
  15. // 'siteurl': '{{YunShop::app()->siteurl ?? ''}}',
  16. //'attachurl': '{{YunShop::app()->attachurl ?? ''}}',
  17. // 'attachurl_local': '{{YunShop::app()->attachurl_local ?? ''}}',
  18. // 'attachurl_remote': '{{YunShop::app()->attachurl_remote ?? ''}}',
  19. 'cookie' : {'pre': '{{YunShop::app()->config['cookie']['pre'] ?? ''}}'}
  20. };
  21. */
  22. </script>
  23. <script src="./resource/js/app/util.js"></script>
  24. <script src="./resource/js/require.js" ></script>
  25. <script src="./resource/js/app/config.js" ></script>
  26. <script src="{{static_url('resource/js/jquery-1.11.1.min.js')}}"></script>
  27. <!--[if lt IE 9]>
  28. <script src="{{static_url('resource/js/html5shiv.min.js')}}"></script>
  29. <script src="{{static_url('resource/js/respond.min.js')}}"></script>
  30. <![endif]-->