人人商城

_footer.html 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. </div>
  2. <script language='javascript'>
  3. require(['jquery','bootstrap'], function ($,bs) {
  4. $('[data-toggle="tooltip"]').tooltip("destroy").tooltip({
  5. container: $(document.body)
  6. });
  7. $('[data-toggle="popover"]').popover("destroy").popover({
  8. container: $(document.body)
  9. });
  10. });
  11. {if $_W['isfounder'] && $_W['routes']!='system.auth.upgrade'}
  12. function check_ewei_shopv2_upgrade() {
  13. require(['util'], function (util) {
  14. if (util.cookie.get('checkeweishopv2upgrade_sys')) {
  15. return;
  16. }
  17. $.post('{php echo webUrl("system/auth/upgrade/check")}', function (ret) {
  18. if (ret && ret.status == '1') {
  19. var result = ret.result;
  20. if(result.filecount>0 || result.database || result.upgrades){
  21. var html = '<div id="ewei-shopv2-upgrade-tips" class="tips-upgrade">';
  22. html+='<span class="tclose" onclick="check_ewei_shopv2_upgrade_hide();"><i class="fa fa-times-circle fa-2x"></i></span>';
  23. html+= '<div class="title">检测到更新</div>';
  24. html+='<div class="text"> 新版本 ' + result.version + " RELEASE " + result.release;
  25. html+=',请尽快更新! </div>';
  26. html+='<div class="buttons"><a href="{php echo webUrl("system/auth/upgrade")}" class="btn btn-warning btn-sm">立即去更新</a></div></div>';
  27. $('body').prepend(html);
  28. }
  29. }
  30. },'json');
  31. });
  32. }
  33. function check_ewei_shopv2_upgrade_hide() {
  34. require(['util'], function (util) {
  35. util.cookie.set('checkeweishopv2upgrade_sys', 1, 3600);
  36. $('#ewei-shopv2-upgrade-tips').fadeOut(150);
  37. });
  38. }
  39. $(function () {
  40. setTimeout( function() {
  41. check_ewei_shopv2_upgrade();
  42. },4000);
  43. });
  44. {/if}
  45. $(function () {
  46. $('.page-content').show();
  47. $('.img-thumbnail').each(function () {
  48. if ($(this).attr('src').indexOf('nopic.jpg') != -1) {
  49. $(this).attr('src', "{EWEI_SHOPV2_LOCAL}static/images/nopic.jpg");
  50. }
  51. })
  52. {php $task_mode =intval(m('cache')->getString('task_mode', 'global'))}
  53. {if $task_mode==0}
  54. $.getJSON("{php echo webUrl('util/task')}");
  55. {/if}
  56. // GoTop
  57. $(window).bind('scroll resize', function () {
  58. var scrolltop = $(window).scrollTop();
  59. if (scrolltop > 300) {
  60. $(".page-gotop").fadeIn(300)
  61. } else {
  62. $(".page-gotop").fadeOut(300)
  63. }
  64. $(".page-gotop").unbind('click').click(function () {
  65. $('body').animate({scrollTop: "0px"}, 1000)
  66. })
  67. });
  68. });
  69. </script>
  70. {if !empty($_W['setting']['copyright']['statcode'])}{$_W['setting']['copyright']['statcode']}{/if}
  71. {if !empty($copyright) && !empty($copyright['copyright'])}
  72. <div class="footer" style='width:100%;'>
  73. <div>{$copyright['copyright']}</div>
  74. </div>
  75. {/if}
  76. <div id="page-loading" style="position: fixed;width:100%;height:100%;background:rgba(255,255,255,0.8);left:0;top:0;z-index:9999">
  77. <div class="sk-spinner sk-spinner-double-bounce" style="position:fixed;top:50%;left:50%;width:40px;height:40px;margin-left:-20px;margin-top:-20px;">
  78. <div class="sk-double-bounce1"></div>
  79. <div class="sk-double-bounce2"></div>
  80. </div>
  81. </div>
  82. <script language="javascript">
  83. myrequire(['web/init']);
  84. if( $('form.form-validate').length<=0){
  85. window.formInited = true;
  86. }
  87. window.formInitTimer = setInterval(function () {
  88. if (typeof(window.formInited ) !== 'undefined') {
  89. $('#page-loading').remove();
  90. clearInterval(window.formInitTimer);
  91. }
  92. }, 1);
  93. </script>
  94. {if !empty($_W['shopset']['shop']['funbar'])}
  95. {php echo $this->show_funbar()}
  96. {/if}
  97. {if $_W['shopset']['shop']['funbar']!=2}
  98. <div class="page-gotop" title="返回顶部">
  99. <p><i class="fa fa-angle-up"></i></p>
  100. <p>返回</p>
  101. <p>顶部</p>
  102. </div>
  103. {/if}
  104. </body>
  105. </html>