main.blade.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. <!DOCTYPE html>
  2. <html>
  3. <!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>引擎力-培养走向世界的企业</title>
  8. <meta name="keywords" content="引擎力后台">
  9. <meta name="description"
  10. content="引擎力定位于海外数字营销专家,用数据说话,引领外贸企业迈向全球化!拥有多项核心自主知识产权,一直在不断的发展和拓展我们的网络营销范围。拥有120余人海外推广团队,80%以上执创人员,5年以上专业外贸推广经验,为您的外贸网站量身定制打造高质量的流量及询盘。">
  11. <meta name="robots" content="noodp"/>
  12. <link rel="shortcut icon" href="{{asset('favicon.ico')}}">
  13. <link href="{{asset('css/bootstrap.min.css')}}" rel="stylesheet">
  14. <link href="{{asset('css/font-awesome-4.7.0/css/font-awesome.min.css')}}" rel="stylesheet">
  15. <link href="{{asset('css/animate.min.css')}}" rel="stylesheet">
  16. <link href="{{asset('css/style.min.css')}}" rel="stylesheet">
  17. <link href="{{asset('js/plugins/gritter/jquery.gritter.css')}}" rel="stylesheet">
  18. <style>
  19. a:focus, a:hover {
  20. color: Yellow;
  21. text-decoration: none;
  22. }
  23. .siteTitle {
  24. padding: 11px 20px 0 10px;
  25. font-size: 18px;
  26. font-weight: bold;
  27. display: inline-block;
  28. color: #fff;
  29. }
  30. #toggleMenu {
  31. border: none;
  32. background: #fff !important;
  33. color: #009688;
  34. }
  35. .label-warning {
  36. }
  37. .minimalize-styl-2 {
  38. margin: 10px 5px 5px 20px;
  39. }
  40. .message-bell {
  41. color: #fff;
  42. }
  43. .some-data {
  44. color: #fff;
  45. }
  46. .some-data span {
  47. color: Yellow !important;
  48. }
  49. .btn-primary {
  50. background: #2a94e0 !important;
  51. }
  52. .page-tabs a.active {
  53. background: #009688 !important;
  54. color: #fff;
  55. }
  56. .label-warning {
  57. background: #2a94e0 !important;
  58. color: #fff;
  59. }
  60. .footer {
  61. background: #2f4050 !important;
  62. text-align: center;
  63. height: auto !important;
  64. }
  65. .footer .pull-right {
  66. width: 100%;
  67. color: #a1b2c2;
  68. text-align: center;
  69. line-height: 24px;
  70. font-size: 14px;
  71. border-top: 1px solid #0e2132;
  72. padding-top: 16px;
  73. }
  74. .footer .pull-right a {
  75. color: #a1b2c2;
  76. font-size: 14px;
  77. }
  78. .footer .pull-right .lists {
  79. display: inline-block;
  80. vertical-align: top;
  81. line-height: 24px;
  82. padding: 0 18px;
  83. position: relative;
  84. }
  85. .footer .pull-right .lists i {
  86. content: '';
  87. display: block;
  88. position: absolute;
  89. width: 2px;
  90. height: 12px;
  91. left: 0;
  92. top: 6px;
  93. background: #a1b2c2;
  94. }
  95. .footer .pull-right .lists:first-child {
  96. padding-left: 0;
  97. }
  98. .footer .pull-right .lists:last-child {
  99. padding-right: 0;
  100. }
  101. .footer .pull-right a:hover {
  102. color: #fff;
  103. }
  104. .footer-tops {
  105. display: block;
  106. background: #2f4050 !important;
  107. border-bottom: 1px solid #53687b;
  108. }
  109. .footer-tops .lists-boxs {
  110. display: block;
  111. text-align: center;
  112. padding: 5px 0 15px;
  113. }
  114. .footer-tops .lists {
  115. display: inline-block;
  116. text-align: center;
  117. line-height: 24px;
  118. font-size: 14px;
  119. color: #fff;
  120. vertical-align: top;
  121. padding: 0 16px;
  122. position: relative;
  123. }
  124. .footer-tops .lists:hover {
  125. opacity: 0.8;
  126. }
  127. .label-warning {
  128. background: #2a94e0 !important;
  129. color: #fff;
  130. padding: 8px 12px;
  131. border: none;
  132. background: #fff !important;
  133. color: #1ab394;
  134. }
  135. .label-warning a {
  136. color: #1ab394 !important;
  137. }
  138. .navbar-top-links li a {
  139. padding: 0;
  140. min-height: auto;
  141. }
  142. .badge {
  143. display: inline-block;
  144. min-width: 10px;
  145. font-size: 12px;
  146. font-weight: 700;
  147. line-height: 1;
  148. color: #fff;
  149. text-align: center;
  150. white-space: nowrap;
  151. vertical-align: middle;
  152. border-radius: 10px;
  153. padding: 2px 5px;
  154. background: #C00;
  155. top: -1em;
  156. position: relative;
  157. }
  158. .message-bell {
  159. font-size: 20px;
  160. margin-left: 20px;
  161. }
  162. .box-bell {
  163. font-size: 16px;
  164. float: right;
  165. position: relative;
  166. top: 10px;
  167. margin-right: 15px;
  168. }
  169. .navbar-fixed-top, .navbar-static-top {
  170. background: #009688;
  171. }
  172. #gritter-notice-wrapper {
  173. top: 7px;
  174. right: 5px;
  175. }
  176. .nav .open>a, .nav .open>a:focus, .nav .open>a:hover{
  177. background:none;
  178. }
  179. </style>
  180. </head>
  181. <body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
  182. <div id="wrapper" style="background-color:transparent;">
  183. <!--左侧导航开始-->
  184. <nav class="navbar-default navbar-static-side" role="navigation">
  185. <div class="nav-close"><i class="fa fa-times-circle"></i>
  186. </div>
  187. <div class="sidebar-collapse">
  188. <ul class="nav" id="side-menu">
  189. <li class="nav-header" style="padding:14px 25px;">
  190. <div class="dropdown profile-element" style="display: flex">
  191. <span><img alt="image" class="img-circle"
  192. src="{{$user->profile_img??''}}" style="width: 64px;border-radius:14px"/></span>
  193. <a data-toggle="dropdown" class="dropdown-toggle" href="#" style="margin: 11px 0 0 8px">
  194. <span class="clear">
  195. <span class="block m-t-xs"><strong class="font-bold"
  196. style="padding-left: 12px">{{$user->nickname??''}}</strong></span>
  197. <span style="width: 80px;display: block;text-align: center">
  198. <span class="text-muted text-xs block">{{$roleName}}
  199. <b class="caret"></b>
  200. </span>
  201. </span>
  202. </span>
  203. </a>
  204. <ul class="dropdown-menu animated fadeInRight m-t-xs">
  205. {{--<li><a class="J_menuItem" href="form_avatar.html">修改头像</a></li>--}}
  206. <li><a class="J_menuItem" href="{{url('admin/index/profile')}}">个人资料</a>
  207. </li>
  208. {{--<li><a class="J_menuItem" href="contacts.html">联系我们</a></li>--}}
  209. <li class="divider"></li>
  210. <li><a href="{{url('admin/auth/logoff?entry_page='.session('entry_page'))}}">安全退出</a>
  211. </li>
  212. </ul>
  213. </div>
  214. {{--<div class="logo-element">引擎力
  215. </div>--}}
  216. </li>
  217. @foreach($menus as $one)
  218. {{--网站入口--}}
  219. @if($one['id']==145)
  220. <li>
  221. <a onclick="window.open('{{$masterUrl??''}}');" href="javascript:;"
  222. title="{{$one['title']}}">
  223. <i class="fa {{$one['icon']}}"></i>
  224. <span class="nav-label">{{$one['title']}}</span>
  225. </a>
  226. </li>
  227. @else
  228. <li>
  229. <a href="{{$one['rule']}}" @if(empty($one['_child'])) class="J_menuItem"
  230. @endif title="{{$one['title']}}">
  231. <i class="fa {{$one['icon']}}"></i>
  232. <span class="nav-label">{{$one['title']}}</span>
  233. @if(!empty($one['_child']))
  234. <span class="fa arrow"></span>
  235. @endif
  236. </a>
  237. @if(!empty($one['_child']))
  238. <ul class="nav nav-second-level">
  239. @foreach($one['_child'] as $two)
  240. <li>
  241. <a class="J_menuItem" href="{{$two['rule']}}">{{$two['title']}}</a>
  242. </li>
  243. @endforeach
  244. </ul>
  245. @endif
  246. </li>
  247. @endif
  248. @endforeach
  249. </ul>
  250. </div>
  251. </nav>
  252. <!--左侧导航结束-->
  253. <!--右侧部分开始-->
  254. @php
  255. $authUser=auth()->user();
  256. @endphp
  257. <div id="page-wrapper" class="gray-bg dashbard-1">
  258. <div class="row border-bottom">
  259. <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
  260. <div class="navbar-header">
  261. <a class="navbar-minimalize minimalize-styl-2 btn btn-primary" style="background: #2a94e0;" href="#"
  262. id="toggleMenu">
  263. <i class="fa fa-bars"><span class="active" id="toggleSpan">收起菜单</span></i>
  264. </a>
  265. @if (!empty($site))
  266. <div class="siteTitle">{{$site->cn_title}}</div>
  267. @else
  268. <div class="siteTitle">&nbsp;引擎力管理后台</div>
  269. @if(!in_array($authUser->role_id,[1]))
  270. <span class='some-data'>
  271. 客户总数: <span style="color: #FF6600">{{$customerNum}} </span>
  272. 建站期: <span style="color: #FF6600">{{$buildSiteNum}} </span>
  273. 服务期:<span style="color: #FF6600">{{$srvSiteNum}}</span>
  274. 实施期:<span style="color: #FF6600">{{$impSiteNum}}</span>
  275. 续费:<span style="color: #FF6600">{{$renewalCount}}</span>
  276. 首页关键词:<span style="color: #FF6600">{{$top10}}</span>
  277. 询盘:<span style="color: #FF6600">{{$inquire}}</span>
  278. 任务数:<span style="color: #FF6600">{{$taskCount}}</span>
  279. </span>
  280. @endif
  281. @endif
  282. </div>
  283. <ul class="nav navbar-top-links navbar-right">
  284. @hasAuth('/admin/articles/calc-history')
  285. <li class="dropdown">
  286. <a class="J_menuItem" href="{{url('admin/articles/calc-history')}}">
  287. <span class="label label-warning">软文结算历史</span>
  288. </a>
  289. </li>
  290. @endHasAuth
  291. @hasAuth('/admin/link/calc-history')
  292. <li class="dropdown">
  293. <a class="J_menuItem" href="{{url('admin/link/calc-history')}}">
  294. <span class="label label-warning">外链结算历史</span>
  295. </a>
  296. </li>
  297. @endHasAuth
  298. @if($authUser->is_super==1 ||$authUser->is_super==5)
  299. <li class="dropdown">
  300. <a target="_blank" href="{{url('wap/site-flow/0')}}">
  301. <span class="label label-warning">进度及规划</span>
  302. </a>
  303. </li>
  304. @endif
  305. <li class="dropdown" style="margin-top: 15px">
  306. <span class="label label-warning">
  307. <a href="{{url('admin/auth/logoff?entry_page='.session('entry_page'))}}"
  308. style="color: white"><i
  309. class="fa fa fa-sign-out"></i> 退出</a>
  310. </span>
  311. </li>
  312. </ul>
  313. <div class="box-bell">
  314. <a href="{{url('/admin/personalTasks')}}" class="J_menuItem message-bell">
  315. <i class="fa fa-bell" aria-hidden="true"></i>
  316. @if($taskNum!=0)
  317. <sup class="badge my-msg-num" style="padding:2px 5px; background:#C00"><span
  318. style="display: none">任务</span>{{$taskNum}}</sup>
  319. @endif
  320. </a>
  321. </div>
  322. <div class="box-bell mailbox">
  323. <a href="{{url('/admin/mailbox')}}" class="J_menuItem message-bell">
  324. <i class="fa fa-twitch" aria-hidden="true"></i>
  325. <span class="mailbox-message">
  326. {{--<sup class="badge my-msg-num" style="padding:2px 5px; background:#C00"><span
  327. style="display: none">消息</span>{{$mailboxNum}}</sup>--}}
  328. </span>
  329. </a>
  330. </div>
  331. </nav>
  332. </div>
  333. <div class="row content-tabs">
  334. <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
  335. </button>
  336. <nav class="page-tabs J_menuTabs">
  337. <div class="page-tabs-content">
  338. <a href="javascript:;" class="active J_menuTab"
  339. data-id="{{$indexPage['src']}}">{{$indexPage['title']}}</a>
  340. </div>
  341. </nav>
  342. <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
  343. </button>
  344. <div class="btn-group roll-nav roll-right">
  345. <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>
  346. </button>
  347. <ul role="menu" class="dropdown-menu dropdown-menu-right">
  348. <li class="J_tabShowActive"><a>定位当前选项卡</a>
  349. </li>
  350. <li class="divider"></li>
  351. <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
  352. </li>
  353. <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
  354. </li>
  355. </ul>
  356. </div>
  357. <span class="roll-nav roll-right J_tabExit" style="cursor: pointer" onclick="subFrameReload()">
  358. <i class="fa fa fa-refresh"></i> 刷新
  359. </span>
  360. </div>
  361. <div class="row J_mainContent" id="content-main">
  362. <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{{$indexPage['src']}}"
  363. frameborder="0" data-id="{{$indexPage['src']}}" seamless></iframe>
  364. </div>
  365. </div>
  366. <!--右侧部分结束-->
  367. <!--右侧边栏开始-->
  368. </div>
  369. </body>
  370. <script src="{{asset('js/jquery.min.js')}}"></script>
  371. <script src="{{asset('js/bootstrap.min.js')}}"></script>
  372. <script src="{{asset('js/plugins/metisMenu/jquery.metisMenu.js')}}"></script>
  373. <script src="{{asset('js/plugins/slimscroll/jquery.slimscroll.min.js')}}"></script>
  374. <script src="{{asset('js/plugins/layer-master/dist/layer.js')}}"></script>
  375. <script src="{{asset('js/hplus.min.js?v=1')}}"></script>
  376. <script src="{{asset('js/contabs.min.js')}}"></script>
  377. <script src="{{asset('js/plugins/pace/pace.min.js')}}"></script>
  378. <script src="{{asset('js/plugins/gritter/jquery.gritter.min.js')}}"></script>
  379. <script src="{{asset('js/tools/tips.js')}}"></script>
  380. <script>
  381. $('#toggleMenu').click(function () {
  382. var toggleSpan = $("#toggleSpan");
  383. toggleSpan.toggleClass('active');
  384. if (toggleSpan.hasClass('active')) {
  385. toggleSpan.text('收起菜单');
  386. } else {
  387. toggleSpan.text('展开菜单');
  388. }
  389. });
  390. function subFrameReload() {
  391. var sunFrame;
  392. function getSub(win) {
  393. sunFrame = $(win.document).find("iframe[name=layui-layer-iframe1]")[0];
  394. if (sunFrame) {
  395. return getSub(sunFrame.contentWindow);
  396. }
  397. return win;
  398. }
  399. var oneWindow = $("iframe:visible")[0].contentWindow;
  400. var win = getSub(oneWindow);
  401. win.location.reload(true);
  402. }
  403. $(function () {
  404. var num = 0;
  405. setTimeout(getMailBoxStatus, 2000);
  406. function getMailBoxStatus() {
  407. $.ajax({
  408. url: '/admin/mailbox/getMailboxStatus', data: {}, success: function (result) {
  409. if (result.count !== 0) {
  410. if (result.count !== num) {
  411. message(result.count, result.message);
  412. }
  413. num = result.count;
  414. }
  415. mailbox(result.count);
  416. }
  417. });
  418. }
  419. function message(count, message) {
  420. $.gritter.add({
  421. title: "您有" + count + "条未读信息:" + message,
  422. text: '请前往 <a href="{{url('/admin/mailbox')}}" class="J_menuItem message-bell" target="_blank" style="text-decoration: none;">' +
  423. ' <i class="fa fa-twitch" aria-hidden="true"></i>' +
  424. ' <sup class="badge my-msg-num"' +
  425. ' style="padding:2px 5px; background:#C00"><span' +
  426. ' style="display: none">消息</span>' + count + '</sup>' +
  427. ' </a>查收',
  428. image: 'https://admin.yinqingli.com/storage/202201/png/4z8nxtBOPjlDRaMscOdmM5Bjn1XU8hiNFm6um7wo.png',
  429. time: 60000 //1分钟
  430. })
  431. }
  432. function mailbox(count) {
  433. var html = '';
  434. if (count !== 0) {
  435. html += '<sup class="badge my-msg-num" style="padding:2px 5px;background:#C00"><span style="display: none">消息</span>' + count + '</sup></a>';
  436. }
  437. var object = $('.mailbox-message');
  438. object.empty();
  439. object.append(html);
  440. }
  441. });
  442. </script>
  443. </html>