base_new.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <?php $shoname = D('Home/Front')->get_config_by_name('shoname'); ?>
  8. <title><?php echo $shoname; ?></title>
  9. <link rel="shortcut icon" href="" />
  10. <link href="/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
  11. <link href="/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
  12. <link href="/static/css/animate.css" rel="stylesheet">
  13. <link href="/static/css/v3.css?v=4.1.0" rel="stylesheet">
  14. <link href="/static/css/common_v3.css?v=2.0.0" rel="stylesheet">
  15. <link href="/static/css/snailfish.css?v=2.0.0" rel="stylesheet">
  16. <link href="/static/css/weizan.common.css" rel="stylesheet">
  17. <link rel="stylesheet" type="text/css" href="/static/fonts/v3/iconfont.css?v=2016070717">
  18. <link rel="stylesheet" type="text/css" href="/static/fonts/iconfont.css?v=2016070717">
  19. <script src="/static/fonts/iconfont.js"></script>
  20. <script src="/web/resource/js/lib/jquery-1.11.1.min.js"></script>
  21. <script src="/static/js/dist/jquery/jquery.gcjs.js"></script>
  22. <script src="/web/resource/js/app/util.js"></script>
  23. <script type="text/javascript">
  24. window.sysinfo = {
  25. siteroot : '/'
  26. };
  27. </script>
  28. <script type="text/javascript" src="/web/resource/js/lib/bootstrap.min.js"></script>
  29. <script type="text/javascript" src="/web/resource/js/app/common.min.js?v=20170802"></script>
  30. <script src="/static/js/require.js"></script>
  31. <script src="/web/resource/js/app/config.js"></script>
  32. <script>
  33. require.config({
  34. waitSeconds: 0
  35. });
  36. </script>
  37. <script src="/static/js/myconfig.js"></script>
  38. <script type="text/javascript">
  39. if (navigator.appName == 'Microsoft Internet Explorer') {
  40. if (navigator.userAgent.indexOf("MSIE 5.0") > 0 || navigator.userAgent.indexOf("MSIE 6.0") > 0 || navigator.userAgent.indexOf("MSIE 7.0") > 0) {
  41. alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
  42. }
  43. }
  44. myrequire.path = "/static/js/";
  45. function preview_html(txt)
  46. {
  47. var win = window.open("", "win", "width=300,height=600"); // a window object
  48. win.document.open("text/html", "replace");
  49. win.document.write($(txt).val());
  50. win.document.close();
  51. }
  52. </script>
  53. <body>
  54. <?php $sysmenus = D('Seller/menu')->getMenu(true); ?>
  55. <div class="wb-header" style="position: fixed;">
  56. <div class="logo <?php if(!empty($system['foldnav'])){ ?>small<?php } ?>">
  57. <?php $shoplogo = D('Home/Front')->get_config_by_name('shoplogo'); ?>
  58. <?php if(empty($shoplogo)){ ?>
  59. <img class='logo-img' src="/static/images/default-pic.jpg" />
  60. <?php }else{ ?>
  61. <img class='logo-img' src="<?php echo tomedia($shoplogo);?>" />
  62. <?php } ?>
  63. </div>
  64. <ul>
  65. <li>
  66. <a href="{:U('index/index')}" data-toggle="tooltip" data-placement="bottom" title="管理首页"><i class="icow icow-homeL"></i></a>
  67. </li>
  68. </ul>
  69. <div class="wb-header-flex"></div>
  70. <ul>
  71. <li class="dropdown auto">
  72. <a class="javascript:;">
  73. <?php
  74. if (defined('ROLE') && ROLE == 'agenter' )
  75. {
  76. $supper_info = get_agent_logininfo();
  77. echo $supper_info['shopname'];
  78. }else{
  79. echo $shoname;
  80. }
  81. ?>
  82. <span></span></a>
  83. </li>
  84. <li data-toggle="tooltip" data-placement="bottom" title="退出登录" onclick="location.href='{:U('Public/logout')}';">
  85. <a class="wb-header-logout"><i class="icow icow-exit"></i></a>
  86. </li>
  87. </ul>
  88. </div>
  89. <!-- 一级导航 -->
  90. <div class="wb-nav {if !empty($system['foldnav'])}fold<?php } ?>">
  91. <p class="wb-nav-fold"><i class="icow icow-zhedie"></i></p>
  92. <ul>
  93. <?php foreach( $sysmenus['menu'] as $sysmenu){ ?>
  94. <li <?php if($sysmenu['active']){ ?>class="active"<?php } ?>>
  95. <a href="<?php echo empty($sysmenu['index']) ? U($sysmenu['route']):U($sysmenu['route']. '/'. $sysmenu['index']) ?>">
  96. <?php if( !empty($sysmenu['icon']) ){ ?>
  97. <i class="snailfishicon snailfishicon-<?php echo $sysmenu['icon']; ?>"></i>
  98. <?php } ?>
  99. <span class="wb-nav-title"><?php echo $sysmenu['text']; ?></span>
  100. </a>
  101. <span class="wb-nav-tip"><?php echo $sysmenu['text']; ?></span>
  102. </li>
  103. <?php } ?>
  104. </ul>
  105. </div>
  106. <!-- 二级导航 -->
  107. <?php if( !empty($sysmenus['submenu']['items']) && empty($is_hide_nav) ){ ?>
  108. <div class="wb-subnav">
  109. <div style="width: 100%;height: 100%;overflow-y: auto">
  110. <div class="subnav-scene">
  111. <?php if( empty($sysmenus['submenu']['route']) && !$sysmenus['submenu']['main'] ){ ?>
  112. <?php echo $sysmenus['submenu']['subtitle']; ?>
  113. <?php }else{ ?>
  114. <a href="<?php echo U($sysmenus['submenu']['route']); ?>"><?php echo $sysmenus['submenu']['subtitle']; ?></a>
  115. <?php } ?>
  116. </div>
  117. <?php if( !empty($sysmenus['submenu']['items']) ){ ?>
  118. <?php foreach($sysmenus['submenu']['items'] as $submenu){ ?>
  119. <?php if( !empty($submenu['items']) ){ ?>
  120. <div class='menu-header <?php if($submenu['active'] || empty($submenu['is_show_list'])){ ?>active data-active<?php } ?>'><div class="menu-icon fa fa-caret-<?php if($submenu['active'] || empty($submenu['is_show_list'])){ ?>down<?php }else{ ?>right<?php } ?>"></div><?php echo $submenu['title']; ?></div>
  121. <ul <?php if($submenu['active'] || empty($submenu['is_show_list'])){ ?>style="display: block"<?php } ?>>
  122. <?php foreach($submenu['items'] as $threemenu){ ?>
  123. <li <?php if($threemenu['active']){ ?>class="active"<?php } ?>><a href="<?php echo U($threemenu['route']); ?>" style="cursor: pointer;" data-route="<?php echo $threemenu['route']; ?>"><?php echo $threemenu['title']; ?></a>
  124. <?php } ?>
  125. </ul>
  126. <?php }else{ ?>
  127. <ul class="single">
  128. <li <?php if($submenu['active']){ ?>class="active"<?php } ?> style=" position: relative"><a href="<?php echo U($submenu['route']); ?>" style="cursor: pointer;" data-route="<?php echo $submenu['route']; ?>"><?php echo $submenu['title']; ?></a></li>
  129. </ul>
  130. <?php } ?>
  131. <?php } ?>
  132. <?php } ?>
  133. <div class="wb-subnav-fold icow"></div>
  134. </div>
  135. </div>
  136. <?php } ?>
  137. <div class="wb-panel in" style="display:none;" id="auth_upgrade">
  138. <div class="panel-group" id="panel-accordion">
  139. <div class="panel panel-default">
  140. <div class="panel-heading" role="tab" id="headingFive" data-toggle="collapse" data-parent="#panel-accordion" href="#collapseFive" aria-expanded="false" aria-controls="collapseThree">
  141. <h4 class="panel-title">
  142. <i class="icow icow-lingdang1"></i> <a style="position:relative;">系统提示 <i class="systips"></i></a> <span></span>
  143. </h4>
  144. </div>
  145. <div id="collapseFive" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingFour">
  146. <ul class="panel-body">
  147. <li class="panel-list">
  148. <div class="panel-list-text nomsg">暂无消息提醒</div>
  149. <div class="panel-list-text upmsg" style="display: none; max-height: none;">
  150. <div>检测到更新</div>
  151. <div>新版本 <span id="sysversion">------</span></div>
  152. <div>新版本 <span id="sysrelease">------</span></div>
  153. <div>
  154. <a class="text-primary" href="{:U('system/auth_upgrade')}">立即更新</a>
  155. <a class="text-warning" href="javascript:check_check_upgrade_hide();" style="margin-left: 15px;">暂不提醒</a>
  156. </div>
  157. </div>
  158. </li>
  159. </ul>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="wb-container {if !empty($system['foldpanel'])}right-panel<?php } ?>">
  165. <block name="content">
  166. </block>
  167. <div id="page-loading">
  168. <div class="page-loading-inner">
  169. <div class="sk-three-bounce">
  170. <div class="sk-child sk-bounce1"></div>
  171. <div class="sk-child sk-bounce2"></div>
  172. <div class="sk-child sk-bounce3"></div>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <script language='javascript'>
  178. require(['bootstrap'], function ($) {
  179. $('[data-toggle="tooltip"]').tooltip("destroy").tooltip({
  180. container: $(document.body)
  181. });
  182. $('[data-toggle="popover"]').popover("destroy").popover({
  183. container: $(document.body)
  184. });
  185. });
  186. function check_lionfish_comshop_upgrade() {
  187. require(['util'], function (util) {
  188. if (util.cookie.get('checksnailfishshopupgrade_sys')) {
  189. return;
  190. }
  191. $.post('{:U("system/upgrade_check")}', function (ret) {
  192. if (ret && ret.status == '1') {
  193. var result = ret.result;
  194. if (result.filecount > 0 || result.database || result.upgrades) {
  195. $('#auth_upgrade').show();
  196. $('#headingFive').find('.systips').show();
  197. if($('#headingFive').attr('aria-expanded')=='false'){
  198. $('#headingFive').click();
  199. }
  200. $('#collapseFive .nomsg').hide();
  201. $('#sysversion').text(result.version);
  202. $('#sysrelease').text(result.release);
  203. $('#collapseFive .upmsg').show();
  204. }
  205. }
  206. }, 'json');
  207. });
  208. }
  209. function check_check_upgrade_hide() {
  210. require(['util'], function (util) {
  211. util.cookie.set('checkeweishopv2upgrade_sys', 1, 3600);
  212. $('#auth_upgrade').hide();
  213. $('#collapseFive .nomsg').show();
  214. $('#collapseFive .upmsg').hide();
  215. $('#headingFive').find('.systips').hide();
  216. });
  217. }
  218. <?php if(is_seller_login() == 1){ ?>
  219. $(function () {
  220. setTimeout( function() {
  221. check_lionfish_comshop_upgrade();
  222. },4000);
  223. });
  224. <?php } ?>
  225. $(function () {
  226. //$('.page-content').show();
  227. $.getJSON("<?php echo "index.php?s=/Cron/index"; ?>");
  228. $('.img-thumbnail').each(function () {
  229. if ($(this).attr('src').indexOf('nopic.jpg') != -1) {
  230. }
  231. })
  232. });
  233. </script>
  234. <script language="javascript">
  235. myrequire(['web/init']);
  236. if( $('form.form-validate').length<=0){
  237. window.formInited = true;
  238. }
  239. window.formInitTimer = setInterval(function () {
  240. if (typeof(window.formInited ) !== 'undefined') {
  241. $('#page-loading').remove();
  242. clearInterval(window.formInitTimer);
  243. }else{
  244. //$('#page-loading').show();
  245. }
  246. }, 1);
  247. </script>
  248. </body>
  249. </html>