No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

switch_map.htm 100KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  8. <!-- Apple devices fullscreen -->
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <!-- Apple devices fullscreen -->
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  12. <link href="__PUBLIC__/plugins/layui/css/layui.css?v={$version}" rel="stylesheet" type="text/css">
  13. <link rel="stylesheet" href="__SKIN__/css/welcome.css?v={$version}" type="text/css"> <!--界面修改新添样式 -->
  14. <link href="__SKIN__/css/page.css?v={$version}" rel="stylesheet" type="text/css">
  15. <link href="__SKIN__/font/css/font-awesome.min.css?v={$version}" rel="stylesheet" />
  16. <link href="__SKIN__/font/css/iconfont.css?v={$version}" rel="stylesheet" />
  17. <!--[if IE 7]>
  18. <link rel="stylesheet" href="__SKIN__/font/css/font-awesome-ie7.min.css?v={$version}">
  19. <![endif]-->
  20. <script type="text/javascript">
  21. var eyou_basefile = "{$Request.baseFile}";
  22. var module_name = "{$Think.const.MODULE_NAME}";
  23. var GetUploadify_url = "{:url('Uploadimgnew/upload')}";
  24. // 插件专用旧版上传图片框
  25. if ('Weapp@execute' == "{$Think.const.CONTROLLER_NAME}@{$Think.const.ACTION_NAME}") {
  26. GetUploadify_url = "{:url('Uploadify/upload')}";
  27. }
  28. var __root_dir__ = "__ROOT_DIR__";
  29. var __lang__ = "{$admin_lang}";
  30. </script>
  31. <link href="__SKIN__/js/jquery-ui/jquery-ui.min.css?v={$version}" rel="stylesheet" type="text/css"/>
  32. <link href="__SKIN__/js/perfect-scrollbar.min.css?v={$version}" rel="stylesheet" type="text/css"/>
  33. <!-- <link type="text/css" rel="stylesheet" href="__PUBLIC__/plugins/tags_input/css/jquery.tagsinput.css?v={$version}"> -->
  34. <style type="text/css">html, body { overflow: visible;}</style>
  35. <link href="__SKIN__/css/diy_style.css?v={$version}" rel="stylesheet" type="text/css" />
  36. {include file="public/theme_css" /}
  37. <script type="text/javascript" src="__STATIC__/common/js/jquery.min.js?v={$version}"></script>
  38. <!-- <script type="text/javascript" src="__PUBLIC__/plugins/tags_input/js/jquery.tagsinput.js?v={$version}"></script> -->
  39. <script type="text/javascript" src="__SKIN__/js/jquery-ui/jquery-ui.min.js?v={$version}"></script>
  40. <script type="text/javascript" src="__PUBLIC__/plugins/layer-v3.1.0/layer.js?v={$version}"></script>
  41. <script type="text/javascript" src="__SKIN__/js/jquery.cookie.js?v={$version}"></script>
  42. <script type="text/javascript" src="__SKIN__/js/admin.js?v={$version}"></script>
  43. <script type="text/javascript" src="__SKIN__/js/jquery.validation.min.js?v={$version}"></script>
  44. <script type="text/javascript" src="__SKIN__/js/common.js?v={$version}"></script>
  45. <script type="text/javascript" src="__SKIN__/js/perfect-scrollbar.min.js?v={$version}"></script>
  46. <script type="text/javascript" src="__SKIN__/js/jquery.mousewheel.js?v={$version}"></script>
  47. <script type="text/javascript" src="__PUBLIC__/plugins/layui/layui.js?v={$version}"></script>
  48. <script src="__SKIN__/js/myFormValidate.js?v={$version}"></script>
  49. <script src="__SKIN__/js/myAjax2.js?v={$version}"></script>
  50. <script src="__SKIN__/js/global.js?v={$version}"></script>
  51. </head>
  52. <body class="bodystyle">
  53. {eq name="'Index@switch_map_0'|is_check_access" value="1"}
  54. {eq name='$main_lang' value='$admin_lang'}
  55. <div class="on-off_panel_one bg-fff " id="mokuaikaiguan" style="display: block;">
  56. <div class="f-16 col-373737 ">模块开关</div>
  57. <div class="on-off_btns">
  58. <form class="layui-form " action="">
  59. <ul class="flex-dir-row flex-wrap">
  60. {eq name="'Member@index'|is_check_access" value="1"}
  61. <li class="more_li">
  62. <div class="on-off_btn">
  63. <div class="on-off_btn_l">
  64. <p>会员中心:</p>
  65. </div>
  66. <div class="on-off_btn_r">
  67. <input type="checkbox" name="web[web_users_switch]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest"
  68. data-authortoken="{$is_eyou_authortoken}" data-is_online="{$is_online}" {eq name="$global.web_users_switch" value="1"}checked="" {/eq}
  69. data-type="web" data-name="web_users_switch" data-lmenuid="Member_users_index" value="{$global.web_users_switch}">
  70. </div>
  71. </div>
  72. </li>
  73. <li class="more_li">
  74. <div class="on-off_btn">
  75. <div class="on-off_btn_l">
  76. <p>会员投稿:</p>
  77. </div>
  78. <div class="on-off_btn_r">
  79. <input type="checkbox" name="users[users_open_release]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest"
  80. data-authortoken="{$is_eyou_authortoken}" data-is_online="{$is_online}" {eq name="$userConfig.users_open_release" value="1"}checked="" {/eq}
  81. data-type="users" data-name="users_open_release" data-lmenuid="Archives_index_draft" value="{$userConfig.users_open_release}">
  82. </div>
  83. </div>
  84. </li>
  85. <li class="more_li">
  86. <div class="on-off_btn">
  87. <div class="on-off_btn_l">
  88. <p>会员升级:</p>
  89. </div>
  90. <div class="on-off_btn_r">
  91. <input type="checkbox" name="level[level_member_upgrade]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest"
  92. data-authortoken="{$is_eyou_authortoken}" data-is_online="{$is_online}" {eq name="$userConfig.level_member_upgrade" value="1"}checked="" {/eq}
  93. data-type="level" data-name="level_member_upgrade" data-lmenuid="off" value="{$userConfig.level_member_upgrade}">
  94. </div>
  95. </div>
  96. </li>
  97. {/eq}
  98. {eq name="'Shop@index'|is_check_access" value="1"}
  99. {if condition="$php_servicemeal > 1"}
  100. <li class="more_li">
  101. <div class="on-off_btn">
  102. <div class="on-off_btn_l">
  103. <p>商城中心:</p>
  104. </div>
  105. <div class="on-off_btn_r">
  106. <input type="checkbox" name="shop[shop_open]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest"
  107. data-authortoken="{$is_eyou_authortoken}" data-is_online="{$is_online}" {eq name="$userConfig.shop_open" value="1"}checked="" {/eq}
  108. data-type="shop" data-name="shop_open" data-lmenuid="Shop_home" value="{$userConfig.shop_open}">
  109. </div>
  110. </div>
  111. </li>
  112. {/if}
  113. {/eq}
  114. {eq name="'Member@index'|is_check_access" value="1"}
  115. <li class="more_li">
  116. <div class="on-off_btn">
  117. <div class="on-off_btn_l">
  118. <p>支付功能:</p>
  119. </div>
  120. <div class="on-off_btn_r">
  121. <input type="checkbox" name="pay[pay_open]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest"
  122. data-authortoken="{$is_eyou_authortoken}" data-is_online="{$is_online}" {eq name="$userConfig.pay_open" value="1"}checked="" {/eq}
  123. data-type="pay" data-name="pay_open" data-lmenuid="off" value="{$userConfig.pay_open}">
  124. </div>
  125. </div>
  126. </li>
  127. {/eq}
  128. {eq name="'Weapp@index'|is_check_access" value="1"}
  129. {eq name="weapp_switch" value="true"}
  130. <li class="more_li">
  131. <div class="on-off_btn">
  132. <div class="on-off_btn_l">
  133. <p>插件应用:</p>
  134. </div>
  135. <div class="on-off_btn_r">
  136. <input type="checkbox" name="web[web_weapp_switch]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest2"
  137. data-type="web" data-name="web_weapp_switch" data-lmenuid="Weapp_index" value="{$global.web_weapp_switch}"
  138. {eq name="$global.web_weapp_switch" value="1"}checked="" {/eq}>
  139. </div>
  140. </div>
  141. </li>
  142. {/eq}
  143. {/eq}
  144. {eq name="'Language@index'|is_check_access" value="1"}
  145. {if condition="$php_servicemeal >= 1 || !empty($global.system_use_language)"}
  146. <li class="more_li">
  147. <div class="on-off_btn">
  148. <div class="on-off_btn_l">
  149. <p>多语言:</p>
  150. </div>
  151. <div class="on-off_btn_r">
  152. <!-- 按钮切换颜色要变成3fa9e0 -->
  153. <input type="checkbox" name="web[web_language_switch]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest"
  154. data-type="web" data-name="web_language_switch" data-lmenuid="Language_index" value="{$global.web_language_switch}"
  155. {eq name="$global.web_language_switch" value="1"}checked="" {/eq}>
  156. </div>
  157. </div>
  158. </li>
  159. {/if}
  160. {/eq}
  161. {eq name="'Citysite@index'|is_check_access" value="1"}
  162. {if condition="$php_servicemeal >= 2"}
  163. <li class="more_li">
  164. <div class="on-off_btn">
  165. <div class="on-off_btn_l">
  166. <p>城市分站:</p>
  167. </div>
  168. <div class="on-off_btn_r">
  169. <input type="checkbox" name="web[web_citysite_open]" lay-skin="switch" lay-text="开启|关闭" lay-filter="switchTest"
  170. data-type="web" data-name="web_citysite_open" data-lmenuid="Citysite_index" value="{$global.web_citysite_open}"
  171. {eq name="$global.web_citysite_open" value="1"}checked="" {/eq}>
  172. </div>
  173. </div>
  174. </li>
  175. {/if}
  176. {/eq}
  177. </ul>
  178. </form>
  179. </div>
  180. </div>
  181. {/eq}
  182. {/eq}
  183. {eq name="'Index@switch_map_1'|is_check_access" value="1"}
  184. <div class="on-off_panel" >
  185. <div class="on-off_list_bg on-off_list-caidan bg-fff">
  186. <div class="son-tit">
  187. <div class="f-16 col-373737">当前导航</div>
  188. </div>
  189. <div class="on-off_list">
  190. <ul class="flex-dir-row sort-list flex-wrap" id="my_menu">
  191. {volist name="menu_list" id="vo"}
  192. <li title="拖动改变排序" class="more_li" data-id="{$vo.menu_id}" id="my_menu_{$vo.menu_id}" {if condition="in_array($vo.menu_id,$not_role_menu_id_arr) || empty($vo.is_switch)"}style="display:none"{/if} >
  193. <div class="flex-dir-row flex-a-center">
  194. <div class="icon_bg">
  195. <i class="{$vo.icon} f-20 on" ></i>
  196. </div>
  197. <div class="ml-8">
  198. <a href="javascript:void(0);" data-href="{$vo.controller_name.'/'.$vo.action_name|url}" onclick="gourl2(this,1);">{$vo.title}</a>
  199. </div>
  200. </div>
  201. {notempty name="$is_founder"}
  202. <div class="icon-link_add">
  203. <div title="取消导航显示" data-menu_id="{$vo.menu_id}" class="iconfont e-jiahao2 e-jianhao"></div>
  204. </div>
  205. {/notempty}
  206. </li>
  207. {/volist}
  208. </ul>
  209. </div>
  210. </div>
  211. </div>
  212. {/eq}
  213. <div id="gengduogongneng" style="display: none; display: inline-table;margin-bottom: 30px;width: 100%; ">
  214. <div class="on-off_panel" >
  215. <div class="on-off_list_bg bg-fff" id="wendangxiagnguan" style="display: block;">
  216. <div class="son-tit">
  217. <div class="f-16 col-373737">文档相关</div>
  218. </div>
  219. <div class="on-off_list" id="wendangxiagnguan_child" style="display: block;">
  220. <ul class="flex-dir-row flex-wrap">
  221. {eq name="'Arctype@index'|is_check_access" value="1"}
  222. <li class="more_li" id="li_1001" {if condition="in_array('1001',$admin_menu_id_arr) || in_array('1001',$not_role_menu_id_arr)"}style="display:none"{/if}>
  223. <div class="flex-dir-row flex-a-center">
  224. <div class="icon_bg icon_bg_no">
  225. <i class="iconfont f-20 e-lanmuguanli col-848484" ></i>
  226. </div>
  227. <div class="ml-8">
  228. <a href="javascript:void(0);" data-href="{:url('Arctype/index')}" onclick="gourl2(this,1);">栏目管理</a>
  229. </div>
  230. </div>
  231. {notempty name="$is_founder"}
  232. <div class="icon-link_add">
  233. <div title="加入导航显示" data-menu_id="1001" class="iconfont e-jiahao2"></div>
  234. </div>
  235. {/notempty}
  236. </li>
  237. {/eq}
  238. {eq name="'Archives@index'|is_check_access" value="1"}
  239. <li class="more_li" id="li_1002" {if condition="in_array('1002',$admin_menu_id_arr) || in_array('1002',$not_role_menu_id_arr)"}style="display:none"{/if}>
  240. <div class="flex-dir-row flex-a-center">
  241. <div class="icon_bg icon_bg_no">
  242. <i class="iconfont e-neirongwendang f-20 col-848484" ></i>
  243. </div>
  244. <div class="ml-8">
  245. <a href="javascript:void(0);" data-href="{:url('Archives/index')}" onclick="gourl2(this,1);">内容管理</a>
  246. </div>
  247. </div>
  248. {notempty name="$is_founder"}
  249. <div class="icon-link_add">
  250. <div title="加入导航显示" data-menu_id="1002" class="iconfont e-jiahao2 "></div>
  251. </div>
  252. {/notempty}
  253. </li>
  254. {/eq}
  255. {eq name="'Archives@index_draft'|is_check_access" value="1"}
  256. {eq name='$main_lang' value='$admin_lang'}
  257. <li class="more_li" id="li_1004" {if condition="in_array('1004',$admin_menu_id_arr) || in_array('1004',$not_role_menu_id_arr)"}style="display:none"{/if}>
  258. <div class="flex-dir-row flex-a-center">
  259. <div class="icon_bg icon_bg_no">
  260. <i class="iconfont e-tougao f-20 col-848484" ></i>
  261. </div>
  262. <div class="ml-8">
  263. <a href="javascript:void(0);" data-href="{:url('Archives/index_draft')}" onclick="gourl2(this,1);">待审文档</a>
  264. </div>
  265. </div>
  266. {notempty name="$is_founder"}
  267. <div class="icon-link_add">
  268. <div title="加入导航显示" data-menu_id="1004" class="iconfont e-jiahao2 "></div>
  269. </div>
  270. {/notempty}
  271. </li>
  272. {/eq}
  273. {/eq}
  274. <!-- {eq name="'Archives@index_reback'|is_check_access" value="1"}
  275. {eq name='$main_lang' value='$admin_lang'}
  276. <li class="more_li" id="li_1006" {if condition="in_array('1006',$admin_menu_id_arr) || in_array('1006',$not_role_menu_id_arr)"}style="display:none"{/if}>
  277. <div class="flex-dir-row flex-a-center">
  278. <div class="icon_bg icon_bg_no">
  279. <i class="iconfont e-tougao f-20 col-848484" ></i>
  280. </div>
  281. <div class="ml-8">
  282. <a href="javascript:void(0);" data-href="{:url('Archives/index_reback')}" onclick="gourl2(this,1);">退回文档</a>
  283. </div>
  284. </div>
  285. {notempty name="$is_founder"}
  286. <div class="icon-link_add">
  287. <div title="加入导航显示" data-menu_id="1006" class="iconfont e-jiahao2 "></div>
  288. </div>
  289. {/notempty}
  290. </li>
  291. {/eq}
  292. {/eq} -->
  293. {eq name="'AdPosition@index'|is_check_access" value="1"}
  294. <li class="more_li" id="li_1003" {if condition="in_array('1003',$admin_menu_id_arr) || in_array('1003',$not_role_menu_id_arr)"}style="display:none"{/if}>
  295. <div class="flex-dir-row flex-a-center">
  296. <div class="icon_bg icon_bg_no">
  297. <i class="iconfont e-guanggao f-20 col-848484" ></i>
  298. </div>
  299. <div class="ml-8 white-space">
  300. <a href="javascript:void(0);" data-href="{:url('AdPosition/index')}" onclick="gourl2(this,1);">广告管理</a>
  301. </div>
  302. </div>
  303. {notempty name="$is_founder"}
  304. <div class="icon-link_add">
  305. <div title="加入导航显示" data-menu_id="1003" class="iconfont e-jiahao2"></div>
  306. </div>
  307. {/notempty}
  308. </li>
  309. {/eq}
  310. <!--新增职称管理模块--->
  311. {eq name="'ZcPosition@index'|is_check_access" value="1"}
  312. <li class="more_li" id="li_1006" {if condition="in_array('1006',$admin_menu_id_arr) || in_array('1006',$not_role_menu_id_arr)"}style="display:none"{/if}>
  313. <div class="flex-dir-row flex-a-center">
  314. <div class="icon_bg icon_bg_no">
  315. <i class="iconfont e-guanggao f-20 col-848484" ></i>
  316. </div>
  317. <div class="ml-8 white-space">
  318. <a href="javascript:void(0);" data-href="{:url('ZcPosition/index')}" onclick="gourl2(this,1);">职称管理</a>
  319. </div>
  320. </div>
  321. {notempty name="$is_founder"}
  322. <div class="icon-link_add">
  323. <div title="加入导航显示" data-menu_id="1006" class="iconfont e-jiahao2"></div>
  324. </div>
  325. {/notempty}
  326. </li>
  327. {/eq}
  328. <!--新增职称问答模块--->
  329. {eq name="'ZcwdPosition@index'|is_check_access" value="1"}
  330. <li class="more_li" id="li_1007" {if condition="in_array('1007',$admin_menu_id_arr) || in_array('1007',$not_role_menu_id_arr)"}style="display:none"{/if}>
  331. <div class="flex-dir-row flex-a-center">
  332. <div class="icon_bg icon_bg_no">
  333. <i class="iconfont e-guanggao f-20 col-848484" ></i>
  334. </div>
  335. <div class="ml-8 white-space">
  336. <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/index')}" onclick="gourl2(this,1);">职称问答</a>
  337. </div>
  338. </div>
  339. {notempty name="$is_founder"}
  340. <div class="icon-link_add">
  341. <div title="加入导航显示" data-menu_id="1007" class="iconfont e-jiahao2"></div>
  342. </div>
  343. {/notempty}
  344. </li>
  345. {/eq}
  346. {eq name="'Tags@index'|is_check_access" value="1"}
  347. <li class="more_li" id="li_2004011" {if condition="in_array('2004011',$admin_menu_id_arr) || in_array('2004011',$not_role_menu_id_arr)"}style="display:none"{/if}>
  348. <div class="flex-dir-row flex-a-center">
  349. <div class="icon_bg icon_bg_no">
  350. <i class="iconfont e-TAGguanli f-20 col-848484" ></i>
  351. </div>
  352. <div class="ml-8 white-space">
  353. <a href="javascript:void(0);" data-href="{:url('Tags/index')}" onclick="gourl2(this,1);">TAG管理</a>
  354. </div>
  355. </div>
  356. {notempty name="$is_founder"}
  357. <div class="icon-link_add">
  358. <div title="加入导航显示" data-menu_id="2004011" class="iconfont e-jiahao2"></div>
  359. </div>
  360. {/notempty}
  361. </li>
  362. {/eq}
  363. {eq name="'Search@conf'|is_check_access" value="1"}
  364. {eq name='$main_lang' value='$admin_lang'}
  365. <li class="more_li" id="li_2004022" {if condition="in_array('2004022',$admin_menu_id_arr) || in_array('2004022',$not_role_menu_id_arr)"}style="display:none"{/if}>
  366. <div class="flex-dir-row flex-a-center">
  367. <div class="icon_bg icon_bg_no">
  368. <i class="iconfont e-soguanjianci f-20 col-848484" ></i>
  369. </div>
  370. <div class="ml-8 white-space">
  371. <a href="javascript:void(0);" data-href="{:url('Search/conf')}" onclick="gourl2(this,1);">搜索管理</a>
  372. </div>
  373. </div>
  374. {notempty name="$is_founder"}
  375. <div class="icon-link_add">
  376. <div title="加入导航显示" data-menu_id="2004022" class="iconfont e-jiahao2"></div>
  377. </div>
  378. {/notempty}
  379. </li>
  380. {/eq}
  381. {/eq}
  382. {eq name="'Field@arctype_index'|is_check_access" value="1"}
  383. {eq name='$main_lang' value='$admin_lang'}
  384. <li class="more_li" id="li_2004004" {if condition="in_array('2004004',$admin_menu_id_arr) || in_array('2004004',$not_role_menu_id_arr)"}style="display:none"{/if}>
  385. <div class="flex-dir-row flex-a-center">
  386. <div class="icon_bg icon_bg_no">
  387. <i class="iconfont e-lanmuziduan f-20 col-848484" ></i>
  388. </div>
  389. <div class="ml-8 white-space">
  390. <a href="javascript:void(0);" data-href="{:url('Field/arctype_index')}" onclick="gourl2(this,1);">栏目字段</a>
  391. </div>
  392. </div>
  393. {notempty name="$is_founder"}
  394. <div class="icon-link_add">
  395. <div title="加入导航显示" data-menu_id="2004004" class="iconfont e-jiahao2"></div>
  396. </div>
  397. {/notempty}
  398. </li>
  399. {/eq}
  400. {/eq}
  401. {eq name="'Channeltype@index'|is_check_access" value="1"}
  402. {eq name='$main_lang' value='$admin_lang'}
  403. <li class="more_li" id="li_2004007" {if condition="in_array('2004007',$admin_menu_id_arr) || in_array('2004007',$not_role_menu_id_arr)"}style="display:none"{/if}>
  404. <div class="flex-dir-row flex-a-center">
  405. <div class="icon_bg icon_bg_no">
  406. <i class="iconfont e-pindaomoxing f-20 col-848484" ></i>
  407. </div>
  408. <div class="ml-8 white-space">
  409. <a href="javascript:void(0);" data-href="{:url('Channeltype/index')}" onclick="gourl2(this,1);">频道模型</a>
  410. </div>
  411. </div>
  412. {notempty name="$is_founder"}
  413. <div class="icon-link_add">
  414. <div title="加入导航显示" data-menu_id="2004007" class="iconfont e-jiahao2"></div>
  415. </div>
  416. {/notempty}
  417. </li>
  418. {/eq}
  419. {/eq}
  420. {eq name="'ArchivesFlag@index'|is_check_access" value="1"}
  421. {eq name='$main_lang' value='$admin_lang'}
  422. <li class="more_li" id="li_2004008" {if condition="in_array('2004008',$admin_menu_id_arr) || in_array('2004008',$not_role_menu_id_arr)"}style="display:none"{/if}>
  423. <div class="flex-dir-row flex-a-center">
  424. <div class="icon_bg icon_bg_no">
  425. <i class="iconfont e-wendangshuxing f-20 col-848484" ></i>
  426. </div>
  427. <div class="ml-8">
  428. <a href="javascript:void(0);" data-href="{:url('ArchivesFlag/index')}" onclick="gourl2(this,1);">文档属性</a>
  429. </div>
  430. </div>
  431. {notempty name="$is_founder"}
  432. <div class="icon-link_add">
  433. <div title="加入导航显示" data-menu_id="2004008" class="iconfont e-jiahao2"></div>
  434. </div>
  435. {/notempty}
  436. </li>
  437. {/eq}
  438. {/eq}
  439. {eq name="'System@water'|is_check_access" value="1"}
  440. {eq name='$main_lang' value='$admin_lang'}
  441. <li class="more_li" id="li_2004009" {if condition="in_array('2004009',$admin_menu_id_arr) || in_array('2004009',$not_role_menu_id_arr)"}style="display:none"{/if}>
  442. <div class="flex-dir-row flex-a-center">
  443. <div class="icon_bg icon_bg_no">
  444. <i class="f-20 iconfont e-shuiyinpeizhi col-848484" ></i>
  445. </div>
  446. <div class="ml-8 white-space">
  447. <a href="javascript:void(0);" data-href="{:url('System/water')}" onclick="gourl2(this,1);">图片水印</a>
  448. </div>
  449. </div>
  450. {notempty name="$is_founder"}
  451. <div class="icon-link_add">
  452. <div title="加入导航显示" data-menu_id="2004009" class="iconfont e-jiahao2"></div>
  453. </div>
  454. {/notempty}
  455. </li>
  456. {/eq}
  457. {/eq}
  458. {eq name="'System@thumb'|is_check_access" value="1"}
  459. {eq name='$main_lang' value='$admin_lang'}
  460. <li class="more_li" id="li_2004010" {if condition="in_array('2004010',$admin_menu_id_arr) || in_array('2004010',$not_role_menu_id_arr)"}style="display:none"{/if}>
  461. <div class="flex-dir-row flex-a-center">
  462. <div class="icon_bg icon_bg_no">
  463. <i class="iconfont e-suolvetupeizhi f-20 col-848484" ></i>
  464. </div>
  465. <div class="ml-8 white-space">
  466. <a href="javascript:void(0);" data-href="{:url('System/thumb')}" onclick="gourl2(this,1);">缩略图设置</a>
  467. </div>
  468. </div>
  469. {notempty name="$is_founder"}
  470. <div class="icon-link_add">
  471. <div title="加入导航显示" data-menu_id="2004010" class="iconfont e-jiahao2"></div>
  472. </div>
  473. {/notempty}
  474. </li>
  475. {/eq}
  476. {/eq}
  477. {eq name="'Navigation@index'|is_check_access" value="1"}
  478. {eq name='$main_lang' value='$admin_lang'}
  479. <li class="more_li" id="li_2004013" {if condition="in_array('2004013',$admin_menu_id_arr) || in_array('2004013',$not_role_menu_id_arr)"}style="display:none"{/if}>
  480. <div class="flex-dir-row flex-a-center">
  481. <div class="icon_bg icon_bg_no">
  482. <i class="iconfont e-daohangguanli f-20 col-848484" ></i>
  483. </div>
  484. <div class="ml-8 white-space">
  485. <a href="javascript:void(0);" data-href="{:url('Navigation/index')}" onclick="gourl2(this,1);">导航管理</a>
  486. </div>
  487. </div>
  488. {notempty name="$is_founder"}
  489. <div class="icon-link_add">
  490. <div title="加入导航显示" data-menu_id="2004013" class="iconfont e-jiahao2"></div>
  491. </div>
  492. {/notempty}
  493. </li>
  494. {/eq}
  495. {/eq}
  496. </ul>
  497. </div>
  498. </div>
  499. <div class="on-off_list_bg bg-fff" id="gaojixuanxiang" style="display: block;">
  500. <div class="son-tit">
  501. <div class="f-16 col-373737">高级扩展</div>
  502. </div>
  503. <div class="on-off_list" id="gaojixuanxiang_child" style="display: block;">
  504. <ul class="flex-dir-row flex-wrap">
  505. {eq name="'System@index'|is_check_access" value="1"}
  506. <li class="more_li" id="li_2001" {if condition="in_array('2001',$admin_menu_id_arr) || in_array('2001',$not_role_menu_id_arr)"}style="display:none"{/if}>
  507. <div class="flex-dir-row flex-a-center">
  508. <div class="icon_bg icon_bg_no">
  509. <i class="iconfont e-shezhi f-20 col-848484" ></i>
  510. </div>
  511. <div class="ml-8 white-space">
  512. <a href="javascript:void(0);" data-href="{:url('System/web')}" onclick="gourl2(this,1);">基本信息</a>
  513. </div>
  514. </div>
  515. {notempty name="$is_founder"}
  516. <div class="icon-link_add">
  517. <div title="加入导航显示" data-menu_id="2001" class="iconfont e-jiahao2"></div>
  518. </div>
  519. {/notempty}
  520. </li>
  521. {/eq}
  522. {eq name="'Admin@admin_pwd'|is_check_access" value="1"}
  523. {eq name='$main_lang' value='$admin_lang'}
  524. <li class="more_li" id="li_2004001" {if condition="in_array('2004001',$admin_menu_id_arr) || in_array('2004001',$not_role_menu_id_arr)"}style="display:none"{/if}>
  525. <div class="flex-dir-row flex-a-center">
  526. <div class="icon_bg icon_bg_no">
  527. <i class="iconfont e-guanliyuan f-20 col-848484" ></i>
  528. </div>
  529. <div class="ml-8 white-space">
  530. <a href="javascript:void(0);" data-href="{:url('Admin/index')}" onclick="gourl2(this,1);">管理员</a>
  531. </div>
  532. </div>
  533. {notempty name="$is_founder"}
  534. <div class="icon-link_add">
  535. <div title="加入导航显示" data-menu_id="2004001" class="iconfont e-jiahao2"></div>
  536. </div>
  537. {/notempty}
  538. </li>
  539. {/eq}
  540. {/eq}
  541. {eq name="'RecycleBin@arctype_index'|is_check_access" value="1"}
  542. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  543. {neq name="$global['web_recycle_switch']" value='1'}
  544. <li class="more_li" id="li_2004006" {if condition="in_array('2004006',$admin_menu_id_arr) || in_array('2004006',$not_role_menu_id_arr)"}style="display:none"{/if}>
  545. <div class="flex-dir-row flex-a-center">
  546. <div class="icon_bg icon_bg_no">
  547. <i class="iconfont e-huishouzhan f-20 col-848484" ></i>
  548. </div>
  549. <div class="ml-8 white-space">
  550. <a href="javascript:void(0);" data-href="{:url('RecycleBin/archives_index')}" onclick="gourl2(this,1);">回收站</a>
  551. </div>
  552. </div>
  553. {notempty name="$is_founder"}
  554. <div class="icon-link_add">
  555. <div title="加入导航显示" data-menu_id="2004006" class="iconfont e-jiahao2"></div>
  556. </div>
  557. {/notempty}
  558. </li>
  559. {/neq}
  560. {/if}
  561. {/eq}
  562. {eq name="'Tools@index'|is_check_access" value="1"}
  563. {eq name='$main_lang' value='$admin_lang'}
  564. <li class="more_li" id="li_2004002" {if condition="in_array('2004002',$admin_menu_id_arr) || in_array('2004002',$not_role_menu_id_arr)"}style="display:none"{/if}>
  565. <div class="flex-dir-row flex-a-center">
  566. <div class="icon_bg icon_bg_no">
  567. <i class="iconfont e-beifenhuanyuan f-20 col-848484" ></i>
  568. </div>
  569. <div class="ml-8 white-space">
  570. <a href="javascript:void(0);" data-href="{:url('Tools/index')}" onclick="gourl2(this,1);">备份还原</a>
  571. </div>
  572. </div>
  573. {notempty name="$is_founder"}
  574. <div class="icon-link_add">
  575. <div title="加入导航显示" data-menu_id="2004002" class="iconfont e-jiahao2"></div>
  576. </div>
  577. {/notempty}
  578. </li>
  579. {/eq}
  580. {/eq}
  581. {eq name="'Vertify@index'|is_check_access" value="1"}
  582. {eq name='$main_lang' value='$admin_lang'}
  583. <li class="more_li" id="li_2004015" {if condition="in_array('2004015',$admin_menu_id_arr) || in_array('2004015',$not_role_menu_id_arr)"}style="display:none"{/if}>
  584. <div class="flex-dir-row flex-a-center">
  585. <div class="icon_bg icon_bg_no">
  586. <i class="iconfont e-yanzhengmaguanli f-20 col-848484" ></i>
  587. </div>
  588. <div class="ml-8 white-space">
  589. <a href="javascript:void(0);" data-href="{:url('Vertify/index')}" onclick="gourl2(this,1);">验证码管理</a>
  590. </div>
  591. </div>
  592. {notempty name="$is_founder"}
  593. <div class="icon-link_add">
  594. <div title="加入导航显示" data-menu_id="2004015" class="iconfont e-jiahao2"></div>
  595. </div>
  596. {/notempty}
  597. </li>
  598. {/eq}
  599. {/eq}
  600. {eq name="'Filemanager@index'|is_check_access" value="1"}
  601. {eq name='$main_lang' value='$admin_lang'}
  602. <li class="more_li" id="li_2004003" {if condition="in_array('2004003',$admin_menu_id_arr) || in_array('2004003',$not_role_menu_id_arr)"}style="display:none"{/if}>
  603. <div class="flex-dir-row flex-a-center">
  604. <div class="icon_bg icon_bg_no">
  605. <i class="iconfont e-mobanguanli f-20 col-848484" ></i>
  606. </div>
  607. <div class="ml-8 white-space">
  608. <a href="javascript:void(0);" data-href="{:url('Filemanager/index')}" data-menu_id="2004003" onclick="gourl2(this,1);">模板管理</a>
  609. </div>
  610. </div>
  611. {notempty name="$is_founder"}
  612. <div class="icon-link_add">
  613. <div title="加入导航显示" data-menu_id="2004003" class="iconfont e-jiahao2"></div>
  614. </div>
  615. {/notempty}
  616. </li>
  617. {/eq}
  618. {/eq}
  619. {eq name="'Member@users_index'|is_check_access" value="1"}
  620. {eq name='$main_lang' value='$admin_lang'}
  621. <li class="more_li" id="li_2006" {if condition="in_array('2006',$admin_menu_id_arr) || in_array('2006',$not_role_menu_id_arr)"}style="display:none"{/if}>
  622. <div class="flex-dir-row flex-a-center">
  623. <div class="icon_bg icon_bg_no">
  624. <i class="iconfont e-gerenzhongxin f-20 col-848484" ></i>
  625. </div>
  626. <div class="ml-8 white-space">
  627. <a href="javascript:void(0);" data-href="{:url('Member/users_index')}" onclick="gourl2(this,1);">会员中心</a>
  628. </div>
  629. </div>
  630. {notempty name="$is_founder"}
  631. <div class="icon-link_add">
  632. <div title="加入导航显示" data-menu_id="2006" class="iconfont e-jiahao2"></div>
  633. </div>
  634. {/notempty}
  635. </li>
  636. {/eq}
  637. {/eq}
  638. {eq name="'Citysite@index'|is_check_access" value="1"}
  639. {if condition="$main_lang == $admin_lang"}
  640. <li class="more_li" id="li_2004019" {if condition="in_array('2004019',$admin_menu_id_arr) || in_array('2004019',$not_role_menu_id_arr) || empty($global.web_citysite_open)"}style="display:none"{/if}>
  641. <div class="flex-dir-row flex-a-center">
  642. <div class="icon_bg icon_bg_no">
  643. <i class="iconfont e-chengshifenzhan f-20 col-848484" ></i>
  644. </div>
  645. <div class="ml-8 white-space">
  646. <a href="javascript:void(0);" data-href="{:url('Citysite/index')}" onclick="gourl2(this,1);">城市分站</a>
  647. </div>
  648. </div>
  649. {notempty name="$is_founder"}
  650. <div class="icon-link_add">
  651. <div title="加入导航显示" data-menu_id="2004019" class="iconfont e-jiahao2"></div>
  652. </div>
  653. {/notempty}
  654. </li>
  655. {/if}
  656. {/eq}
  657. {eq name="'Weapp@index'|is_check_access" value="1"}
  658. {eq name='$main_lang' value='$admin_lang'}
  659. <li class="more_li" id="li_2005" {if condition="in_array('2005',$admin_menu_id_arr) || in_array('2005',$not_role_menu_id_arr)"}style="display:none"{/if}>
  660. <div class="flex-dir-row flex-a-center">
  661. <div class="icon_bg icon_bg_no">
  662. <i class="iconfont e-chajian f-20 col-848484" ></i>
  663. </div>
  664. <div class="ml-8 white-space">
  665. <a href="javascript:void(0);" data-href="{:url('Weapp/index')}" onclick="gourl2(this,1);">插件应用</a>
  666. </div>
  667. </div>
  668. {notempty name="$is_founder"}
  669. <div class="icon-link_add">
  670. <div title="加入导航显示" data-menu_id="2005" class="iconfont e-jiahao2"></div>
  671. </div>
  672. {/notempty}
  673. </li>
  674. {/eq}
  675. {/eq}
  676. {eq name="'Security@index'|is_check_access" value="1"}
  677. {eq name='$main_lang' value='$admin_lang'}
  678. <li class="more_li" id="li_2004017" {if condition="in_array('2004017',$admin_menu_id_arr) || in_array('2004017',$not_role_menu_id_arr)"}style="display:none"{/if}>
  679. <div class="flex-dir-row flex-a-center">
  680. <div class="icon_bg icon_bg_no">
  681. <i class="iconfont e-anquanshezhi f-20 col-848484" ></i>
  682. </div>
  683. <div class="ml-8 white-space">
  684. <a href="javascript:void(0);" data-href="{:url('Security/index')}" onclick="gourl2(this,1);">安全中心</a>
  685. </div>
  686. </div>
  687. {notempty name="$is_founder"}
  688. <div class="icon-link_add">
  689. <div title="加入导航显示" data-menu_id="2004017" class="iconfont e-jiahao2"></div>
  690. </div>
  691. {/notempty}
  692. </li>
  693. {/eq}
  694. {/eq}
  695. {eq name="'Order@index'|is_check_access" value="1"}
  696. {eq name='$main_lang' value='$admin_lang'}
  697. <li class="more_li" id="li_2004021" {if condition="in_array('2004021',$admin_menu_id_arr) || in_array('2004021',$not_role_menu_id_arr)"}style="display:none"{/if}>
  698. <div class="flex-dir-row flex-a-center">
  699. <div class="icon_bg icon_bg_no">
  700. <i class="iconfont e-dingdanguanli f-20 col-848484" ></i>
  701. </div>
  702. <div class="ml-8 white-space">
  703. <a href="javascript:void(0);" data-href="{:url('Order/index')}" onclick="gourl2(this,1);">订单管理</a>
  704. </div>
  705. </div>
  706. {notempty name="$is_founder"}
  707. <div class="icon-link_add">
  708. <div title="加入导航显示" data-menu_id="2004021" class="iconfont e-jiahao2"></div>
  709. </div>
  710. {/notempty}
  711. </li>
  712. {/eq}
  713. {/eq}
  714. {eq name="'Uiset@ui_index'|is_check_access" value="1"}
  715. {notempty name="$is_show_uiset"}
  716. <li class="more_li" id="li_2002" {if condition="in_array('2002',$admin_menu_id_arr) || in_array('2002',$not_role_menu_id_arr)"}style="display:none"{/if}>
  717. <div class="flex-dir-row flex-a-center">
  718. <div class="icon_bg icon_bg_no">
  719. <i class="iconfont e-keshihuabianji f-20 col-848484" ></i>
  720. </div>
  721. <div class="ml-8 white-space">
  722. <a href="javascript:void(0);" data-href="{:url('Uiset/ui_index')}" onclick="gourl2(this,1);">可视编辑</a>
  723. </div>
  724. </div>
  725. {notempty name="$is_founder"}
  726. <div class="icon-link_add">
  727. <div title="加入导航显示" data-menu_id="2002" class="iconfont e-jiahao2"></div>
  728. </div>
  729. {/notempty}
  730. </li>
  731. {/notempty}
  732. {/eq}
  733. {if condition="in_array('memgift', $useFunc) && $php_servicemeal > 1 && !empty($userConfig['memgift_open']) && $main_lang == $admin_lang"}
  734. {eq name="'Memgift@gift_exchange_list'|is_check_access" value="1"}
  735. <li class="more_li" id="li_2004023" {if condition="in_array('2004023',$admin_menu_id_arr) || in_array('2004023',$not_role_menu_id_arr)"}style="display:none"{/if}>
  736. <div class="flex-dir-row flex-a-center">
  737. <div class="icon_bg icon_bg_no">
  738. <i class="iconfont f-20 e-lipinduihuan col-848484" ></i>
  739. </div>
  740. <div class="ml-8 white-space">
  741. <a href="javascript:void(0);" data-href="{:url('Memgift/gift_exchange_list')}" onclick="gourl2(this,1);">积分兑换</a>
  742. </div>
  743. </div>
  744. {notempty name="$is_founder"}
  745. <div class="icon-link_add">
  746. <div title="加入导航显示" data-menu_id="2004023" class="iconfont e-jiahao2"></div>
  747. </div>
  748. {/notempty}
  749. </li>
  750. {/eq}
  751. {/if}
  752. {eq name="'Form@index'|is_check_access" value="1"}
  753. <li class="more_li" id="li_2004018" {if condition="in_array('2004018',$admin_menu_id_arr) || in_array('2004018',$not_role_menu_id_arr)"}style="display:none"{/if}>
  754. <div class="flex-dir-row flex-a-center">
  755. <div class="icon_bg icon_bg_no">
  756. <i class="iconfont f-20 e-biaodanguanli col-848484" ></i>
  757. </div>
  758. <div class="ml-8 white-space">
  759. <a href="javascript:void(0);" data-href="{:url('Form/index')}" onclick="gourl2(this,1);">留言管理</a>
  760. </div>
  761. </div>
  762. {notempty name="$is_founder"}
  763. <div class="icon-link_add">
  764. <div title="加入导航显示" data-menu_id="2004018" class="iconfont e-jiahao2"></div>
  765. </div>
  766. {/notempty}
  767. </li>
  768. {/eq}
  769. {eq name="'Index@theme_index'|is_check_access" value="1"}
  770. {eq name='$main_lang' value='$admin_lang'}
  771. <li class="more_li" id="li_2004025" {if condition="in_array('2004025',$admin_menu_id_arr) || in_array('2004025',$not_role_menu_id_arr)"}style="display:none"{/if}>
  772. <div class="flex-dir-row flex-a-center">
  773. <div class="icon_bg icon_bg_no">
  774. <i class="iconfont f-20 e-zhutifengge col-848484" ></i>
  775. </div>
  776. <div class="ml-8 white-space">
  777. <a href="javascript:void(0);" data-href="{:url('Index/theme_index')}" onclick="gourl2(this,1);">主题风格</a>
  778. </div>
  779. </div>
  780. {notempty name="$is_founder"}
  781. <div class="icon-link_add">
  782. <div title="加入导航显示" data-menu_id="2004025" class="iconfont e-jiahao2"></div>
  783. </div>
  784. {/notempty}
  785. </li>
  786. {/eq}
  787. {/eq}
  788. {eq name="'Foreign@index'|is_check_access" value="1"}
  789. {if condition="$php_servicemeal >= 1 && $main_lang == $admin_lang"}
  790. <li class="more_li" id="li_2004026" {if condition="in_array('2004026',$admin_menu_id_arr) || in_array('2004026',$not_role_menu_id_arr)"}style="display:none"{/if}>
  791. <div class="flex-dir-row flex-a-center">
  792. <div class="icon_bg icon_bg_no">
  793. <i class="iconfont f-20 e-waimaoshezhi col-848484" ></i>
  794. </div>
  795. <div class="ml-8 white-space">
  796. <a href="javascript:void(0);" data-href="{:url('Foreign/index')}" onclick="gourl2(this,1);">外贸助手</a>
  797. </div>
  798. </div>
  799. {notempty name="$is_founder"}
  800. <div class="icon-link_add">
  801. <div title="加入导航显示" data-menu_id="2004026" class="iconfont e-jiahao2"></div>
  802. </div>
  803. {/notempty}
  804. </li>
  805. {/if}
  806. {/eq}
  807. </ul>
  808. </div>
  809. </div>
  810. {eq name='$main_lang' value='$admin_lang'}
  811. <div class="on-off_list_bg bg-fff" id="shangchengmokuai" style="display: block;">
  812. <div class="son-tit">
  813. <div class="f-16 col-373737">商城模块</div>
  814. </div>
  815. <div class="on-off_list" id="shangchengmokuai_child" style="display: block;">
  816. <ul class="flex-dir-row flex-wrap">
  817. {eq name="'Shop@index'|is_check_access" value="1"}
  818. <li class="more_li" id="li_2008" {if condition="in_array('2008',$admin_menu_id_arr) || in_array('2008',$not_role_menu_id_arr)"}style="display:none"{/if}>
  819. <div class="flex-dir-row flex-a-center">
  820. <div class="icon_bg icon_bg_no">
  821. <i class="iconfont f-20 e-shangcheng col-848484" ></i>
  822. </div>
  823. <div class="ml-8 white-space">
  824. <a href="javascript:void(0);" data-href="{:url('Shop/home',['conceal'=>'1'])}" onclick="gourl2(this,1);">商城中心</a>
  825. </div>
  826. </div>
  827. {notempty name="$is_founder"}
  828. <div class="icon-link_add">
  829. <div title="加入导航显示" data-menu_id="2008" class="iconfont e-jiahao2"></div>
  830. </div>
  831. {/notempty}
  832. </li>
  833. {/eq}
  834. {eq name="'Statistics@index'|is_check_access" value="1"}
  835. <li class="more_li" id="li_2008001" {if condition="in_array('2008001',$admin_menu_id_arr) || in_array('2008001',$not_role_menu_id_arr)"}style="display:none"{/if}>
  836. <div class="flex-dir-row flex-a-center">
  837. <div class="icon_bg icon_bg_no">
  838. <i class="iconfont f-20 e-shujutongji col-848484" ></i>
  839. </div>
  840. <div class="ml-8 white-space">
  841. <a href="javascript:void(0);" data-href="{:url('Statistics/index',['conceal'=>'1'])}" onclick="gourl2(this,1);">数据统计</a>
  842. </div>
  843. </div>
  844. {notempty name="$is_founder"}
  845. <div class="icon-link_add">
  846. <div title="加入导航显示" data-menu_id="2008001" class="iconfont e-jiahao2"></div>
  847. </div>
  848. {/notempty}
  849. </li>
  850. {/eq}
  851. {eq name="'ShopProduct@index'|is_check_access" value="1"}
  852. <li class="more_li" id="li_2008002" {if condition="in_array('2008002',$admin_menu_id_arr) || in_array('2008002',$not_role_menu_id_arr)"}style="display:none"{/if}>
  853. <div class="flex-dir-row flex-a-center">
  854. <div class="icon_bg icon_bg_no">
  855. <i class="iconfont f-20 e-shangpinguanli col-848484" ></i>
  856. </div>
  857. <div class="ml-8 white-space">
  858. <a href="javascript:void(0);" data-href="{:url('ShopProduct/index',['conceal'=>'1'])}" onclick="gourl2(this,1);">商品管理</a>
  859. </div>
  860. </div>
  861. {notempty name="$is_founder"}
  862. <div class="icon-link_add">
  863. <div title="加入导航显示" data-menu_id="2008002" class="iconfont e-jiahao2"></div>
  864. </div>
  865. {/notempty}
  866. </li>
  867. {/eq}
  868. {eq name="'ShopProduct@attrlist_index'|is_check_access" value="1"}
  869. <li class="more_li" id="li_2008003" {if condition="in_array('2008003',$admin_menu_id_arr) || in_array('2008003',$not_role_menu_id_arr)"}style="display:none"{/if}>
  870. <div class="flex-dir-row flex-a-center">
  871. <div class="icon_bg icon_bg_no">
  872. <i class="iconfont f-20 e-shangpincanshu col-848484" ></i>
  873. </div>
  874. <div class="ml-8 white-space">
  875. <a href="javascript:void(0);" data-href="{:url('ShopProduct/attrlist_index',['conceal'=>'1'])}" onclick="gourl2(this,1);">商品参数</a>
  876. </div>
  877. </div>
  878. {notempty name="$is_founder"}
  879. <div class="icon-link_add">
  880. <div title="加入导航显示" data-menu_id="2008003" class="iconfont e-jiahao2"></div>
  881. </div>
  882. {/notempty}
  883. </li>
  884. {/eq}
  885. {eq name="'Shop@home'|is_check_access" value="1"}
  886. <li class="more_li" id="li_2008008" {if condition="in_array('2008008',$admin_menu_id_arr) || in_array('2008008',$not_role_menu_id_arr)"}style="display:none"{/if}>
  887. <div class="flex-dir-row flex-a-center">
  888. <div class="icon_bg icon_bg_no">
  889. <i class="iconfont f-20 e-shangpinguige col-848484" ></i>
  890. </div>
  891. <div class="ml-8 white-space">
  892. <a href="javascript:void(0);" data-href="{:url('Shop/spec_index')}" onclick="gourl2(this,1);">商品规格</a>
  893. </div>
  894. </div>
  895. {notempty name="$is_founder"}
  896. <div class="icon-link_add">
  897. <div title="加入导航显示" data-menu_id="2008008" class="iconfont e-jiahao2"></div>
  898. </div>
  899. {/notempty}
  900. </li>
  901. {/eq}
  902. {eq name="'Shop@conf'|is_check_access" value="1"}
  903. <li class="more_li" id="li_2008004" {if condition="in_array('2008004',$admin_menu_id_arr) || in_array('2008004',$not_role_menu_id_arr)"}style="display:none"{/if}>
  904. <div class="flex-dir-row flex-a-center">
  905. <div class="icon_bg icon_bg_no">
  906. <i class="iconfont f-20 e-shangchengpeizhi col-848484" ></i>
  907. </div>
  908. <div class="ml-8 white-space">
  909. <a href="javascript:void(0);" data-href="{:url('Shop/conf',['conceal'=>'1'])}" onclick="gourl2(this,1);">商城配置</a>
  910. </div>
  911. </div>
  912. {notempty name="$is_founder"}
  913. <div class="icon-link_add">
  914. <div title="加入导航显示" data-menu_id="2008004" class="iconfont e-jiahao2"></div>
  915. </div>
  916. {/notempty}
  917. </li>
  918. {/eq}
  919. {if condition="true || !empty($marketFunc)"}
  920. {eq name="'Shop@market_index'|is_check_access" value="1"}
  921. <li class="more_li" id="li_2008005" {if condition="in_array('2008005',$admin_menu_id_arr) || in_array('2008005',$not_role_menu_id_arr)"}style="display:none"{/if}>
  922. <div class="flex-dir-row flex-a-center">
  923. <div class="icon_bg icon_bg_no">
  924. <i class="iconfont f-20 e-yingxiaogongneng col-848484" ></i>
  925. </div>
  926. <div class="ml-8 white-space">
  927. <a href="javascript:void(0);" data-href="{:url('Shop/market_index',['conceal'=>'1'])}" onclick="gourl2(this,1);">营销功能</a>
  928. </div>
  929. </div>
  930. {notempty name="$is_founder"}
  931. <div class="icon-link_add">
  932. <div title="加入导航显示" data-menu_id="2008005" class="iconfont e-jiahao2"></div>
  933. </div>
  934. {/notempty}
  935. </li>
  936. {/eq}
  937. {/if}
  938. </ul>
  939. </div>
  940. </div>
  941. {/eq}
  942. <div class="on-off_list_bg bg-fff" id="seomokuai" style="display: block;">
  943. <div class="son-tit">
  944. <div class="f-16 col-373737">SEO模块</div>
  945. </div>
  946. <div class="on-off_list" id="seomokuai_child" style="display: block;">
  947. <ul class="flex-dir-row flex-wrap">
  948. {eq name="'Seo@seo'|is_check_access" value="1"}
  949. {eq name='$main_lang' value='$admin_lang'}
  950. <li class="more_li" id="li_2003" {if condition="in_array('2003',$admin_menu_id_arr) || in_array('2003',$not_role_menu_id_arr)"}style="display:none"{/if}>
  951. <div class="flex-dir-row flex-a-center">
  952. <div class="icon_bg icon_bg_no">
  953. <i class="iconfont f-20 e-seo col-848484" ></i>
  954. </div>
  955. <div class="ml-8 white-space">
  956. <a href="javascript:void(0);" data-href="{:url('Seo/seo')}" onclick="gourl2(this,1);">SEO设置</a>
  957. </div>
  958. </div>
  959. {notempty name="$is_founder"}
  960. <div class="icon-link_add">
  961. <div title="加入导航显示" data-menu_id="2003" class="iconfont e-jiahao2"></div>
  962. </div>
  963. {/notempty}
  964. </li>
  965. {/eq}
  966. {/eq}
  967. {eq name="'Seo@build'|is_check_access" value="1"}
  968. {eq name='$main_lang' value='$admin_lang'}
  969. <li class="more_li" id="li_2004016" {if condition="in_array('2004016',$admin_menu_id_arr) || in_array('2004016',$not_role_menu_id_arr)"}style="display:none"{/if}>
  970. <div class="flex-dir-row flex-a-center">
  971. <div class="icon_bg icon_bg_no">
  972. <i class="iconfont f-20 e-jingtaishengcheng col-848484" ></i>
  973. </div>
  974. <div class="ml-8 white-space">
  975. <a href="javascript:void(0);" data-href="{:url('Seo/build')}" onclick="gourl2(this,1);">html生成</a>
  976. </div>
  977. </div>
  978. {notempty name="$is_founder"}
  979. <div class="icon-link_add">
  980. <div title="加入导航显示" data-menu_id="2004016" class="iconfont e-jiahao2"></div>
  981. </div>
  982. {/notempty}
  983. </li>
  984. {/eq}
  985. {/eq}
  986. {eq name="'Sitemap@index'|is_check_access" value="1"}
  987. {eq name='$main_lang' value='$admin_lang'}
  988. <li class="more_li" id="li_2003002" {if condition="in_array('2003002',$admin_menu_id_arr) || in_array('2003002',$not_role_menu_id_arr)"}style="display:none"{/if}>
  989. <div class="flex-dir-row flex-a-center">
  990. <div class="icon_bg icon_bg_no">
  991. <i class="iconfont e-Sitemap f-20 col-848484" ></i>
  992. </div>
  993. <div class="ml-8 white-space">
  994. <a href="javascript:void(0);" data-href="{:url('Sitemap/index')}" onclick="gourl2(this,1);">Sitemap</a>
  995. </div>
  996. </div>
  997. {notempty name="$is_founder"}
  998. <div class="icon-link_add">
  999. <div title="加入导航显示" data-menu_id="2003002" class="iconfont e-jiahao2"></div>
  1000. </div>
  1001. {/notempty}
  1002. </li>
  1003. {/eq}
  1004. {/eq}
  1005. {eq name="'Links@index'|is_check_access" value="1"}
  1006. <li class="more_li" id="li_2003003" {if condition="in_array('2003003',$admin_menu_id_arr) || in_array('2003003',$not_role_menu_id_arr)"}style="display:none"{/if}>
  1007. <div class="flex-dir-row flex-a-center">
  1008. <div class="icon_bg icon_bg_no">
  1009. <i class="iconfont e-youqinglianjie1 f-20 col-848484" ></i>
  1010. </div>
  1011. <div class="ml-8 white-space">
  1012. <a href="javascript:void(0);" data-href="{:url('Links/index')}" onclick="gourl2(this,1);">友情链接</a>
  1013. </div>
  1014. </div>
  1015. {notempty name="$is_founder"}
  1016. <div class="icon-link_add">
  1017. <div title="加入导航显示" data-menu_id="2003003" class="iconfont e-jiahao2"></div>
  1018. </div>
  1019. {/notempty}
  1020. </li>
  1021. {/eq}
  1022. </ul>
  1023. </div>
  1024. </div>
  1025. </div>
  1026. <input type="hidden" name="is_themeusers_exist" id="is_themeusers_exist" value="{$is_themeusers_exist}">
  1027. <input type="hidden" name="is_themeshop_exist" id="is_themeshop_exist" value="{$is_themeshop_exist}">
  1028. </div>
  1029. <script type="text/javascript">
  1030. var all_menu_list = {$all_menu_list|json_encode};
  1031. var module_rele_menu = {$module_rele_menu|json_encode};
  1032. var module_default_menu = {$module_default_menu|json_encode};
  1033. var module_reverse_menu = {$module_reverse_menu|json_encode};
  1034. var not_role_menu_id_arr = {$not_role_menu_id_arr|json_encode};
  1035. var update_admin_menu_url = "{:url('Ajax/update_admin_menu', ['_ajax'=>1])}"; //添加、删除入口地址
  1036. var is_founder = {$is_founder};
  1037. /*
  1038. * 1、给gengduogongneng类第2N个元素加上class,
  1039. * 2、其中一个子元素的高大于100,其他的高也设置为相同
  1040. */
  1041. function add_show2n_class(child,id) {
  1042. var min_height = 100;
  1043. var max_height = 0;
  1044. var childs = 1;
  1045. $(id).find(child).css('min-height',min_height);
  1046. $(id).find(child).each(function (index,element) {
  1047. height = $(element).get(0).offsetHeight; //获取真实高度 height + padding + border
  1048. if(height > max_height){
  1049. max_height = height;
  1050. }
  1051. $(element).removeClass("show_2n");
  1052. if (!$(element).is(":hidden")){
  1053. childs ++;
  1054. if (childs%2){
  1055. $(element).addClass("show_2n");
  1056. }
  1057. }
  1058. });
  1059. if (max_height > min_height){
  1060. $(id).find(child).css('min-height',max_height);
  1061. }
  1062. }
  1063. /*
  1064. * 判断element中是否还有显示的子元素,来控制本元素,以及上级元素的显示和隐藏
  1065. * flag 为true时候,需要先将所有父元素设置未显示状态
  1066. * child 子元素
  1067. * id 当前待检测元素块
  1068. * parent 跟id同时隐藏显示的元素
  1069. */
  1070. function div_visible(flag,child,id,parent) {
  1071. if (flag){
  1072. $(id).show();
  1073. $(parent).show();
  1074. }
  1075. var has_child = false;
  1076. $(id).find(child).each(function (index,element) {
  1077. if (!$(element).is(":hidden")){
  1078. has_child = true;
  1079. }
  1080. });
  1081. if (has_child){ //存在显示子元素
  1082. $(id).show();
  1083. $(parent).show();
  1084. }else{
  1085. $(id).hide();
  1086. $(parent).hide();
  1087. }
  1088. }
  1089. //通过判断模块是否还存在子组件来决定是否显示,flag为true时候,需要先将所有父元素设置未显示状态
  1090. function module_visible(flag) {
  1091. $('#gengduogongneng').show(); //必须先把最顶级设置为显示,下级判断显示隐藏才有效
  1092. div_visible(flag,'.more_li','#mokuaikaiguan');
  1093. div_visible(flag,'.more_li','#gaojixuanxiang_child','#gaojixuanxiang');
  1094. div_visible(flag,'.more_li','#wendangxiagnguan_child','#wendangxiagnguan');
  1095. div_visible(flag,'.more_li','#shangchengmokuai_child','#shangchengmokuai');
  1096. div_visible(flag,'.more_li','#dingdanmokuai_child','#dingdanmokuai');
  1097. div_visible(flag,'.more_li','#seomokuai_child','#seomokuai');
  1098. div_visible(flag,'.more_li','#gengduogongneng');
  1099. add_show2n_class('.on-off_list_bg','#gengduogongneng');
  1100. }
  1101. //添加模块菜单到导航和左侧菜单
  1102. function add_menu(menu_id,controller_name,action_name,param,icon,title) {
  1103. $.ajax({
  1104. type: "POST",
  1105. url: update_admin_menu_url,
  1106. data: {title:title,controller_name:controller_name,action_name:action_name,menu_id:menu_id,icon:icon,param:param,type:1},
  1107. dataType: 'json',
  1108. success:function (res) {
  1109. if(res.code == 1){
  1110. $('#li_'+menu_id).hide();
  1111. // $('#li_'+menu_id).find(".e-jiahao2").removeClass("e-jianhao");
  1112. //添加"我的菜单"
  1113. if(is_founder !== 1){ //没有权限取消
  1114. var my_html = '<li class="more_li" data-id="'+menu_id+'" id="my_menu_'+menu_id+'"> ' +
  1115. '<div class="flex-dir-row flex-a-center"> ' +
  1116. '<div class="icon_bg"> ' +
  1117. '<i class="'+ icon +' f-20 on" ></i> ' +
  1118. ' </div> ' +
  1119. ' <div class="ml-8"> ' +
  1120. ' <a href="javascript:void(0);" data-href="'+res.data.url+'" onclick="gourl2(this,1);">'+title+'</a> ' +
  1121. '</div> ' +
  1122. '</div> ' +
  1123. ' </li>';
  1124. }else{
  1125. var my_html = '<li title="拖动改变排序" class="more_li" data-id="'+menu_id+'" id="my_menu_'+menu_id+'"> ' +
  1126. '<div class="flex-dir-row flex-a-center"> ' +
  1127. '<div class="icon_bg"> ' +
  1128. '<i class="'+ icon +' f-20 on" ></i> ' +
  1129. ' </div> ' +
  1130. ' <div class="ml-8"> ' +
  1131. ' <a href="javascript:void(0);" data-href="'+res.data.url+'" onclick="gourl2(this,1);">'+title+'</a> ' +
  1132. '</div> ' +
  1133. '</div> ' +
  1134. '<div class="icon-link_add"> ' +
  1135. ' <div title="取消导航显示" data-menu_id="'+menu_id+'" class="iconfont e-jiahao2 e-jianhao"></div> ' +
  1136. ' </div> ' +
  1137. ' </li>';
  1138. }
  1139. //添加左侧菜单
  1140. var html = '<a data-child="0" data-id="'+menu_id+ '" class="left_menu_'+menu_id+ ' '+controller_name+'_'+action_name+'_'+menu_id+'" id="'+controller_name+'_'+action_name+'" data-menu_id="' + menu_id + '" href="javascript:void(0);" data-param="'+controller_name+'|'+action_name+param+'" >'
  1141. +'<i class="'+icon+'"></i>'+title+'</a>';
  1142. if ($("#my_menu_2004")){
  1143. $("#my_menu_2004").before(my_html);
  1144. parent.$(".left_menu_2004").before(html);
  1145. }else{
  1146. $("#my_menu").append(my_html);
  1147. parent.$("#sub-menu").append(html);
  1148. }
  1149. module_visible();
  1150. }
  1151. return false;
  1152. }
  1153. });
  1154. }
  1155. $(function(){
  1156. //通过判断模块是否还存在子组件来决定是否显示
  1157. module_visible();
  1158. // 当前导航的拖动排序相关 js
  1159. if(is_founder === 1){
  1160. $( ".sort-list" ).sortable({
  1161. start: function( event, ui) {
  1162. }
  1163. ,stop: function( event, ui ) {
  1164. if(is_founder !== 1){
  1165. return false;
  1166. }
  1167. // 这里ajax实现保存排序逻辑
  1168. var ul =$("<ul></ul>");
  1169. var idarr = [];
  1170. $(".sort-list").children().each(function () {
  1171. var id = $(this).data("id");
  1172. var li = parent.$("#sub-menu").find(".left_menu_"+id);
  1173. ul.append(li);
  1174. idarr.push(id);
  1175. });
  1176. parent.$("#sub-menu").empty().append(ul);
  1177. //保存数据
  1178. $.ajax({
  1179. type: "POST",
  1180. url: "{:url('Ajax/ajax_move_admin_menu', ['_ajax'=>1])}",
  1181. data: {menu_id:idarr},
  1182. dataType: 'json',
  1183. success:function (res) {
  1184. if(res.code == 1){
  1185. console.log("修改完成");
  1186. }
  1187. return false;
  1188. }
  1189. });
  1190. }
  1191. });
  1192. //因为他们要拖动,所以尽量设置他们的文字不能选择。
  1193. $( ".sort-list" ).disableSelection();
  1194. }
  1195. //添加、取消成为栏目
  1196. $(".bodystyle").on('click','.e-jiahao2',function () {
  1197. if(is_founder !== 1){
  1198. return false;
  1199. }
  1200. var menu_id = $(this).data('menu_id');
  1201. var title = all_menu_list[menu_id]['name'] ;
  1202. var controller_name = all_menu_list[menu_id]['controller'] ;
  1203. var action_name = all_menu_list[menu_id]['action'] ;
  1204. var param = all_menu_list[menu_id]['param'] === undefined ? '' : all_menu_list[menu_id]['param'];
  1205. var icon = all_menu_list[menu_id]['icon'] ;
  1206. var url = $(this).data('url');
  1207. if($(this).hasClass('e-jianhao')){ //原本为“已添加”,去除"我的菜单",修改下面块为“未添加”模式,且显示
  1208. $.ajax({
  1209. type: "POST",
  1210. url: update_admin_menu_url,
  1211. data: {title:title,controller_name:controller_name,action_name:action_name,menu_id:menu_id,icon:icon,param:param,type:2},
  1212. dataType: 'json',
  1213. success:function (res) {
  1214. if(res.code == 1){
  1215. $('#li_'+menu_id).show();
  1216. //删除"我的菜单"
  1217. $("#my_menu_"+menu_id).remove();
  1218. //去除左侧菜单
  1219. parent.$("."+controller_name+'_'+action_name+'_'+menu_id).remove();
  1220. module_visible(1);
  1221. }
  1222. return false;
  1223. }
  1224. });
  1225. }else{ //原本为“未添加”,添加;添加到"我的菜单",修改下面块为"添加"模式,且隐藏
  1226. add_menu(menu_id,controller_name,action_name,param,icon,title);
  1227. }
  1228. // $(this).toggleClass("e-jianhao");
  1229. return false;
  1230. })
  1231. });
  1232. layui.use(['form'], function() {
  1233. var form = layui.form,
  1234. layer = layui.layer
  1235. //监听指定开关
  1236. form.on('switch(switchTest)', function(data) {
  1237. var name = $(this).attr('data-name');
  1238. var type = $(this).attr('data-type');
  1239. if (this.checked) {
  1240. $(this).val(1);
  1241. ajax_submit(this, type, name, 1);
  1242. } else {
  1243. $(this).val(0);
  1244. ajax_submit(this, type, name, 0);
  1245. }
  1246. });
  1247. form.on('switch(switchTest2)', function(data) {
  1248. var name = $(this).attr('data-name');
  1249. var type = $(this).attr('data-type');
  1250. if (this.checked) {
  1251. $(this).val(1);
  1252. ajax_submit(this, type, name, 1);
  1253. } else {
  1254. $(this).val(-1);
  1255. ajax_submit(this, type, name, -1);
  1256. }
  1257. });
  1258. });
  1259. /*
  1260. * 开启模块开关
  1261. * name 按钮的name属性 web[web_users_switch]
  1262. */
  1263. function open_module(name) {
  1264. $('input[name="'+name+'"]').attr('checked', 'checked');
  1265. $('input[name="'+name+'"]').val(1);
  1266. $('input[name="'+name+'"]').next().addClass('layui-form-onswitch');
  1267. $('input[name="'+name+'"]').next().html('<em>开启</em><i></i>');
  1268. }
  1269. /*
  1270. * 关闭模块开关
  1271. * name 按钮的name属性 web[web_users_switch]
  1272. */
  1273. function close_module(name) {
  1274. $('input[name="'+name+'"]').removeAttr('checked');
  1275. $('input[name="'+name+'"]').val(0);
  1276. $('input[name="'+name+'"]').next().removeClass('layui-form-onswitch');
  1277. $('input[name="'+name+'"]').next().html('<em>关闭</em><i></i>');
  1278. }
  1279. /*
  1280. * 显示模块关联左边菜单、内页按钮,判断是否已经存在”当前导航“中,如果不存在,才需要显示下方模块中的入口
  1281. * name 数组模块名称[]数组
  1282. */
  1283. function show_module_menu(name){
  1284. for(var i=0;i<name.length;i++){
  1285. //添加默认入口
  1286. var default_menu = module_default_menu[name[i]];
  1287. if (default_menu){
  1288. for (var d=0;d<default_menu.length;d++){
  1289. var menu_id = all_menu_list[default_menu[d]]['id'] ;
  1290. if ($('#my_menu_'+menu_id).length < 1){ // && not_role_menu_id_arr.indexOf(menu_id) === -1
  1291. var title = all_menu_list[menu_id]['name'] ;
  1292. var controller_name = all_menu_list[menu_id]['controller'] ;
  1293. var action_name = all_menu_list[menu_id]['action'] ;
  1294. var param = all_menu_list[menu_id]['param'] === undefined ? '' : all_menu_list[menu_id]['param'];
  1295. var icon = all_menu_list[menu_id]['icon'] ;
  1296. add_menu(menu_id,controller_name,action_name,param,icon,title);
  1297. }
  1298. }
  1299. }
  1300. //显示入口
  1301. var rele_menu = module_rele_menu[name[i]];
  1302. if (rele_menu){
  1303. for (var j=0;j<rele_menu.length;j++){
  1304. if (rele_menu[j] && all_menu_list[rele_menu[j]] && all_menu_list[rele_menu[j]]['id']){ // && not_role_menu_id_arr.indexOf(all_menu_list[rele_menu[j]]['id']) === -1
  1305. var left_menu_class = "left_menu_" + all_menu_list[rele_menu[j]]['id'];
  1306. var my_menu_id = "my_menu_" + all_menu_list[rele_menu[j]]['id'];
  1307. var li_id = "li_" + all_menu_list[rele_menu[j]]['id'];
  1308. if(parent.$('.'+left_menu_class).length > 0){
  1309. $('.'+left_menu_class,window.parent.document).show();
  1310. }
  1311. if ($('#'+my_menu_id).length){
  1312. $('#'+my_menu_id).show(); //在当前导航中显示
  1313. }else{
  1314. $('#'+li_id).show();
  1315. }
  1316. }
  1317. }
  1318. }
  1319. //关闭反关联入口
  1320. var reverse_menu = module_reverse_menu[name[i]];
  1321. if (reverse_menu){
  1322. for (var j=0;j<reverse_menu.length;j++){
  1323. if (reverse_menu[j] && all_menu_list[reverse_menu[j]] && all_menu_list[reverse_menu[j]]['id']){
  1324. var left_menu_class = "left_menu_" + all_menu_list[reverse_menu[j]]['id'];
  1325. var my_menu_id = "my_menu_" + all_menu_list[reverse_menu[j]]['id'];
  1326. var li_id = "li_" + all_menu_list[reverse_menu[j]]['id'];
  1327. if(parent.$('.'+left_menu_class).length > 0){
  1328. $('.'+left_menu_class,window.parent.document).hide();
  1329. }
  1330. $('#'+my_menu_id).hide();
  1331. $('#'+li_id).hide();
  1332. }
  1333. }
  1334. }
  1335. }
  1336. module_visible(1);
  1337. }
  1338. /*
  1339. * 隐藏模块关联左边菜单、内页按钮
  1340. * name 数组模块名称[]数组
  1341. */
  1342. function hide_module_menu(name) {
  1343. for(var i=0;i<name.length;i++){
  1344. var rele_menu = [];
  1345. if (!module_rele_menu[name[i]+'-close'] === false) {
  1346. rele_menu = module_rele_menu[name[i]+'-close'];
  1347. } else {
  1348. rele_menu = module_rele_menu[name[i]];
  1349. }
  1350. if (rele_menu){
  1351. for (var j=0;j<rele_menu.length;j++){
  1352. if (rele_menu[j] && all_menu_list[rele_menu[j]] && all_menu_list[rele_menu[j]]['id']){
  1353. var left_menu_class = "left_menu_" + all_menu_list[rele_menu[j]]['id'];
  1354. var my_menu_id = "my_menu_" + all_menu_list[rele_menu[j]]['id'];
  1355. var li_id = "li_" + all_menu_list[rele_menu[j]]['id'];
  1356. if(parent.$('.'+left_menu_class).length > 0){
  1357. $('.'+left_menu_class,window.parent.document).hide();
  1358. }
  1359. $('#'+my_menu_id).hide();
  1360. $('#'+li_id).hide();
  1361. }
  1362. }
  1363. }
  1364. }
  1365. module_visible();
  1366. }
  1367. /*
  1368. * 提交表单obj
  1369. */
  1370. function ajax_submit(obj, inc_type, name, value){
  1371. var _parent = parent;
  1372. var is_force = $(obj).attr('data-is_force');
  1373. var lmenuid = $(obj).attr('data-lmenuid');
  1374. var url = "{:url('Index/switch_map', ['_ajax'=>1])}";
  1375. var syn_open_users = false; // 是否同步开启会员中心
  1376. var syn_close_users = false; //是否同步关闭会员中心管辖的其他模块(会员投稿、会员升级、商城中心、支付功能)
  1377. var syn_module_menu = [name];
  1378. // 验证权限,且判断同步
  1379. switch (name){
  1380. case 'shop_open':
  1381. case 'pay_open':
  1382. case 'users_open_release':
  1383. case 'level_member_upgrade':
  1384. if (-1 < $.inArray(name, ['shop_open','pay_open']))
  1385. {
  1386. if(false == check_shop_open())
  1387. {
  1388. return false;
  1389. }
  1390. } else if (-1 < $.inArray(name, ['users_open_release','level_member_upgrade']))
  1391. {
  1392. if(false == check_users_open_release())
  1393. {
  1394. return false;
  1395. }
  1396. }
  1397. // 同时开启会员中心
  1398. if (1 == value) {
  1399. syn_open_users = true;
  1400. syn_module_menu.push('web_users_switch');
  1401. }
  1402. break;
  1403. case 'web_users_switch':
  1404. // 同步关闭会员中心管辖的其他模块(会员投稿、会员升级、商城中心、支付功能)
  1405. if (0 == value) {
  1406. syn_close_users = true;
  1407. syn_module_menu.push('shop_open','pay_open','users_open_release','level_member_upgrade');
  1408. }
  1409. break;
  1410. }
  1411. if (1 == $('#is_themeusers_exist').val()) {
  1412. $('#is_themeusers_exist').val(0)
  1413. loadmsg = '初始化中';
  1414. } else if (1 == $('#is_themeshop_exist').val()) {
  1415. $('#is_themeshop_exist').val(0)
  1416. loadmsg = '初始化中';
  1417. } else {
  1418. loadmsg = '正在处理';
  1419. }
  1420. parent_layer_loading(loadmsg);
  1421. $.ajax({
  1422. type: "POST",
  1423. url: url,
  1424. data: {inc_type:inc_type,name:name,value:value,is_force:is_force},
  1425. dataType: 'json',
  1426. success: function (res) {
  1427. if(res.code == 1){
  1428. // 同时开启会员中心
  1429. if (true == syn_open_users) {
  1430. open_module("web[web_users_switch]");
  1431. }
  1432. //关闭会员中心管辖的其他模块(会员投稿、会员升级、商城中心、支付功能)
  1433. if (true == syn_close_users){
  1434. close_module("users[users_open_release]");
  1435. close_module("level[level_member_upgrade]");
  1436. close_module("shop[shop_open]");
  1437. close_module("pay[pay_open]");
  1438. }
  1439. // 控制顶部与左侧菜单的显示与隐藏
  1440. if (value == 1){ //显示
  1441. if(parent.$('#'+lmenuid).length > 0 || ('web_citysite_open' == name && parent.$('#Language_index').length > 0)){
  1442. $('#'+lmenuid, window.parent.document).show();
  1443. if ('web_language_switch' == name) {
  1444. $('#'+lmenuid+'_span', window.parent.document).show();
  1445. }
  1446. if ('web_citysite_open' == name) {
  1447. $('#Language_index', window.parent.document).hide();
  1448. $('#Language_index_span', window.parent.document).hide();
  1449. }
  1450. }
  1451. show_module_menu(syn_module_menu);
  1452. }else{
  1453. if(parent.$('#'+lmenuid).length > 0){
  1454. $('#'+lmenuid, window.parent.document).hide();
  1455. if ('web_language_switch' == name) {
  1456. $('#'+lmenuid+'_span', window.parent.document).hide();
  1457. }
  1458. }
  1459. hide_module_menu(syn_module_menu);
  1460. }
  1461. _parent.layer.closeAll();
  1462. // 根据不同场景进行页面加载的处理
  1463. if ('web_citysite_open' == name && 1 == is_force) {
  1464. _parent.layer.alert(res.msg, {icon: 6, title: false, closeBtn: false}, function(index){
  1465. if (1 == res.data.reload) {
  1466. _parent.layer.close(index);
  1467. window.location.reload();
  1468. }
  1469. });
  1470. } else {
  1471. _parent.layer.msg(res.msg, {icon: 1, time: 800}, function(){
  1472. if (1 == res.data.reload) {
  1473. window.location.reload();
  1474. } else if (2 == res.data.reload) {
  1475. top.window.location.reload();
  1476. }
  1477. });
  1478. }
  1479. }else{
  1480. //数据设置失败,回复按钮
  1481. if (value == 0){ //原来是打开状态
  1482. open_module(inc_type+"["+name+"]");
  1483. }else{
  1484. close_module(inc_type+"["+name+"]");
  1485. }
  1486. if (1 == res.data.code) {
  1487. _parent.layer.closeAll();
  1488. _parent.layer.alert(res.msg, {btn: ['购买授权'], icon: 4, title:false}, function(){
  1489. _parent.layer.closeAll();
  1490. window.location.reload();
  1491. window.open('https://www.eyoucms.com/buy');
  1492. });
  1493. } else {
  1494. if (-1 < $.inArray(name, ['web_citysite_open', 'web_language_switch'])) {
  1495. _parent.layer.closeAll();
  1496. _parent.layer.alert(res.msg, {icon: 7, title:false, closeBtn:false, btn:['强制开启', '取消']}, function(){
  1497. _parent.layer.closeAll();
  1498. $(obj).attr('data-is_force', 1);
  1499. open_module("web["+name+"]");
  1500. if ('web_language_switch' == name) {
  1501. close_module("web[web_citysite_open]");
  1502. } else if ('web_citysite_open' == name) {
  1503. close_module("web[web_language_switch]");
  1504. }
  1505. ajax_submit(obj, inc_type, name, value);
  1506. });
  1507. } else {
  1508. _parent.layer.closeAll();
  1509. _parent.layer.alert(res.msg, {icon: 5, title:false, closeBtn:false}, function(){
  1510. _parent.layer.closeAll();
  1511. window.location.reload();
  1512. });
  1513. }
  1514. }
  1515. }
  1516. },
  1517. error:function(e){
  1518. _parent.layer.closeAll();
  1519. _parent.layer.alert(e.responseText, {icon: 5, title:false, closeBtn: false}, function(){
  1520. _parent.layer.closeAll();
  1521. window.location.reload();
  1522. });
  1523. }
  1524. });
  1525. }
  1526. //打开链接
  1527. function gourl2(obj,type){
  1528. var security_ask_open = {$security_ask_open|default=0};
  1529. var menu_id = $(obj).data('menu_id');
  1530. if (2004003 == menu_id) {
  1531. if (0 == security_ask_open) {
  1532. showConfirm('需要设置密保问题验证才可以继续', {btn:['去设置', '取消']}, function(){
  1533. layer.closeAll();
  1534. var iframes = layer.open({
  1535. type: 2,
  1536. title: '安全验证中心',
  1537. fixed: true, //不固定
  1538. shadeClose: false,
  1539. shade: layer_shade,
  1540. offset: 'auto',
  1541. // maxmin: true, //开启最大化最小化按钮
  1542. area: ['100%', '100%'],
  1543. content: "{:url('Security/second_ask_init', ['gourl'=>url('Filemanager/index')])}",
  1544. success: function(layero, index){
  1545. }
  1546. });
  1547. layer.full(iframes);
  1548. });
  1549. return false;
  1550. }
  1551. }
  1552. var leftmenu = $(obj).data('leftmenu');
  1553. var href = $(obj).data('href');
  1554. $('.eycms_cont_left .sub-menu a', window.parent.document).removeClass('on');
  1555. $('.eycms_cont_left .sub-menu dl.jslist dt', window.parent.document).removeClass('on');
  1556. if (2 == type) {
  1557. $('#'+leftmenu+' dt', window.parent.document).addClass('on');
  1558. } else {
  1559. $('#'+leftmenu, window.parent.document).addClass('on');
  1560. }
  1561. window.location.href = href;
  1562. }
  1563. //检查是否有权限使用商城(是否授权)
  1564. function check_shop_open(){
  1565. var obj = $('input[name="shop[shop_open]"]:checked');
  1566. var is_online = (obj).attr('data-is_online');
  1567. if (1 == is_online) {
  1568. var shop_open = $(obj).val();
  1569. if (1 == shop_open && $(obj).attr('data-authortoken') == -1) {
  1570. close_module("shop[shop_open]");
  1571. var alert1 = layer.alert('订单功能只限于授权域名!', {
  1572. icon: 4,
  1573. shade: layer_shade,
  1574. title:false,
  1575. btn: ['购买授权']
  1576. }, function(){
  1577. window.open('https://www.eyoucms.com/buy');
  1578. layer.close(alert1);
  1579. });
  1580. return false;
  1581. }
  1582. }
  1583. return true;
  1584. }
  1585. //检查是否有权限使用会员投稿功能(是否授权)
  1586. function check_users_open_release(){
  1587. var obj = $('input[name="users[users_open_release]"]:checked');
  1588. var is_online = $(obj).attr('data-is_online');
  1589. if (1 == is_online) {
  1590. var users_open_release = $(obj).val();
  1591. if (1 == users_open_release && $(obj).attr('data-authortoken') == -1) {
  1592. close_module("users[users_open_release]");
  1593. var alert1 = layer.alert('会员投稿功能只限于授权域名!', {
  1594. icon: 4,
  1595. shade: layer_shade,
  1596. title:false,
  1597. btn: ['购买授权']
  1598. }, function(){
  1599. window.open('https://www.eyoucms.com/buy');
  1600. layer.close(alert1);
  1601. });
  1602. return false;
  1603. }
  1604. }
  1605. return true;
  1606. }
  1607. </script>
  1608. </body>
  1609. </html>