post.html 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905
  1. {template 'common/header'}
  2. <ol class="breadcrumb we7-breadcrumb">
  3. <a href="{php echo url('site/multi')}"><i class="wi wi-back-circle"></i> </a>
  4. <li>
  5. <a href="{php echo url('site/multi')}">微官网列表</a>
  6. </li>
  7. <li>
  8. 编辑
  9. </li>
  10. </ol>
  11. <form action="" method="post" class="panel panel-cut" id="js-wesite-post" ng-controller="WesitePost" ng-cloak>
  12. <input type="hidden" name="multiid" value="{$_GPC['multiid']}">
  13. <div class="wesite-post">
  14. <div class="site-view">
  15. <div class="we7-iphone-view">
  16. <div class="template-name" ng-bind="multi.style && multi.style.name">模板名称</div>
  17. <div ng-style="">
  18. <iframe ng-src="{{siteEntrance}}" frameborder="0" width="300" height="553" scrolling="no" id="preview-iframe"></iframe>
  19. <span class="btn btn-primary" ng-style="{'margin-left': '36%'}" onclick="document.getElementById('preview-iframe').contentWindow.location.reload(true);">预览刷新</span> <a href="javascript:;" data-toggle="tooltip" data-placement="bottom" title="预览刷新功能只支持幻灯片、导航菜单、底部菜单功能。其他请点击完成按钮再行查看!"><i class="wi wi-info" ></i></a>
  20. <!-- <div class="help-block">
  21. <span class="color-red">温馨提示:</span>
  22. 预览刷新功能只支持幻灯片、导航菜单、底部菜单功能。其他请点击完成按钮再行查看!
  23. </div> -->
  24. </div>
  25. <div class="nav-menu" ng-hide="1">
  26. <div class="js-quickmenu nav-menu-wx clearfix" ng-class="{0 : 'has-nav-0', 1 : 'has-nav-1', 2: 'has-nav-2', 3: 'has-nav-3', 4 : 'has-nav-3'}[activeItem.menus.length]" ng-if="activeItem.navStyle == 1">
  27. <div class="nav-home text-center">
  28. <a href="{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&j={$_W['acid']}"><i class="fa fa-home"></i></a>
  29. </div>
  30. <ul class="nav-group">
  31. <li class="nav-group-item" ng-if="$index < 3" ng-repeat="menu in activeItem.menus">
  32. <a ng-if="!menu.submenus || menu.submenus.length == 0" href="{{menu.url}}">
  33. {{menu.title}}
  34. </a>
  35. <a ng-if="menu.submenus.length > 0" href="javascript:;" data-toggle="dropdown">
  36. <i class="fa fa-minus-circle"></i>
  37. {{menu.title}}
  38. </a>
  39. <dl ng-if="menu.submenus.length > 0">
  40. <dd>
  41. <a href="{{submenu.url}}" ng-repeat="submenu in menu.submenus">{{submenu.title}}</a>
  42. </dd>
  43. </dl>
  44. </li>
  45. </ul>
  46. </div>
  47. <div class="js-quickmenu nav-menu-app has-nav-0" ng-if="activeItem.navStyle == 2" ng-class="{0 : 'has-nav-0', 1 : 'has-nav-1', 2: 'has-nav-2', 3: 'has-nav-3', 4: 'has-nav-4', 5: 'has-nav-5'}[activeItem.menus.length]" ng-style="{'background-color' : activeItem.bgColor}">
  48. <ul class="nav-group clearfix">
  49. <li class="nav-group-item" ng-repeat="menu in activeItem.menus">
  50. <a href="{{menu.url}}" style="background-position: center 2px" ng-style="{'background-image': menu.image ? 'url('+menu.image+')' : ''}">
  51. <i ng-hide="menu.image" class="fa" ng-style="{'color' : menu.icon.color}" js-onclass-name="{{menu.hovericon.name}}" js-onclass-color="{{menu.hovericon.color}}" ng-class="menu.icon.name"></i>
  52. <span ng-style="{'color' : menu.icon.color}" js-onclass-color="{{menu.hovericon.color}}">{{menu.title}}</span>
  53. </a>
  54. </li>
  55. </ul>
  56. </div>
  57. <div class="js-quickmenu nav-menu-cart" ng-if="activeItem.navStyle == 3" ng-class="{0 : 'has-nav-0', 1 : 'has-nav-1', 2: 'has-nav-2', 3: 'has-nav-3', 4: 'has-nav-4'}[activeItem.menus.length]" ng-style="{'background-color' : activeItem.bgColor}">
  58. <ul class="nav-group clearfix">
  59. <li class="nav-group-item">
  60. <a href="{{activeItem.menus[0].url}}" ng-style="{'background-image': activeItem.menus[0].image ? 'url('+activeItem.menus[0].image+')' : ''}">
  61. <i ng-hide="activeItem.menus[0].image" class="fa" ng-style="{'color' : activeItem.menus[0].icon.color}"
  62. ng-class="activeItem.menus[0].icon.name">
  63. </i>
  64. </a>
  65. </li>
  66. <li ng-if="activeItem.menus[2]" class="nav-group-item">
  67. <a href="{{activeItem.menus[1].url}}" ng-style="{'background-image': activeItem.menus[1].image ? 'url('+activeItem.menus[1].image+')' : ''}">
  68. <i ng-hide="activeItem.menus[1].image" class="fa" ng-style="{'color' : activeItem.menus[1].icon.color}" ng-class="activeItem.menus[1].icon.name"></i>
  69. </a>
  70. </li>
  71. <li class="nav-home nav-group-item">
  72. <a href="{{activeItem.extend[0].url}}" ng-style="{'background-image': activeItem.extend[0].image ? 'url('+activeItem.extend[0].image+')' : ''}">
  73. <i ng-hide="activeItem.extend[0].image" class="fa" ng-style="{'color' : activeItem.extend[0].icon.color}" ng-class="activeItem.extend[0].icon.name"></i>
  74. </a>
  75. </li>
  76. <li class="nav-group-item" ng-if="activeItem.menus[1]">
  77. <a ng-if="!activeItem.menus[2]" href="{{activeItem.menus[1].url}}" ng-style="{'background-image': activeItem.menus[1].image ? 'url('+activeItem.menus[1].image+')' : ''}">
  78. <i ng-hide="activeItem.menus[1].image" class="fa" ng-style="{'color' : activeItem.menus[1].icon.color}" ng-class="activeItem.menus[1].icon.name"></i>
  79. </a>
  80. <a ng-if="activeItem.menus[2]" href="{{activeItem.menus[2].url}}" ng-style="{'background-image': activeItem.menus[2].image ? 'url('+activeItem.menus[2].image+')' : ''}">
  81. <i ng-hide="activeItem.menus[2].image" class="fa" ng-style="{'color' : activeItem.menus[2].icon.color}" ng-class="activeItem.menus[2].icon.name"></i>
  82. </a>
  83. </li>
  84. <li ng-if="activeItem.menus[3]" class="nav-group-item">
  85. <a href="{{activeItem.menus[3].url}}" ng-style="{'background-image': activeItem.menus[3].image ? 'url('+activeItem.menus[3].image+')' : ''}">
  86. <i ng-hide="activeItem.menus[3].image" class="fa" ng-style="{'color' : activeItem.menus[3].icon.color}" ng-class="activeItem.menus[3].icon.name"></i>
  87. </a>
  88. </li>
  89. </ul>
  90. </div>
  91. <div class="js-quickmenu nav-menu-path rotate-nav has-nav-4" ng-if="activeItem.navStyle == 4">
  92. <div class="nav-group">
  93. <div class="nav-group-item on" ng-repeat="menu in activeItem.menus">
  94. <a href="{{menu.url}}" ng-style="{'background-image': menu.image ? 'url('+menu.image+')' : ''}">
  95. <i ng-hide="menu.image" class="fa" ng-style="{'color' : menu.icon.color}" ng-class="menu.icon.name"></i>
  96. </a>
  97. </div>
  98. </div>
  99. <div class="nav-home nav-group-item js-quickmenu-toggle">
  100. <a href="javascript:;" style="background-image:url(./resource/images/app/centerbtn.png);"></a>
  101. </div>
  102. </div>
  103. <div class="js-quickmenu nav-menu-sides rotate-nav has-nav-4" ng-if="activeItem.navStyle == 5">
  104. <div class="nav-group">
  105. <div class="nav-group-item on" ng-repeat="menu in activeItem.menus">
  106. <a href="{{menu.url}}" ng-style="{'background-image': menu.image ? 'url('+menu.image+')' : ''}">
  107. <i ng-hide="menu.image" class="fa" ng-style="{'color' : menu.icon.color}" ng-class="menu.icon.name"></i>
  108. </a>
  109. </div>
  110. </div>
  111. <div class="main-nav">
  112. <div class="nav-group-item pull-left">
  113. <a href="{{activeItem.extend[0].url}}" ng-style="{'background-image': activeItem.extend[0].image ? 'url('+activeItem.extend[0].image+')' : ''}">
  114. <i ng-hide="activeItem.extend[0].image" class="fa" ng-style="{'color' : activeItem.extend[0].icon.color}" ng-class="activeItem.extend[0].icon.name"></i>
  115. </a>
  116. </div>
  117. <div class="nav-home nav-group-item js-quickmenu-toggle">
  118. <a href="javascript:;" style="background-image:url(./resource/images/app/centerbtn.png);"></a>
  119. </div>
  120. <div class="nav-group-item pull-right">
  121. <a href="{{activeItem.extend[1].url}}" ng-style="{'background-image': activeItem.extend[1].image ? 'url('+activeItem.extend[1].image+')' : ''}">
  122. <i ng-hide="activeItem.extend[1].image" class="fa" ng-style="{'color' : activeItem.extend[1].icon.color}" ng-class="activeItem.extend[1].icon.name"></i>
  123. </a>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="site-edit-view">
  131. <div class="site-edit-nav">
  132. <ul>
  133. <li class="site-edit-item active">
  134. <a href="#template" data-toggle="tab">选择模板</a>
  135. </li>
  136. <li class="site-edit-item">
  137. <a href="#entrance" data-toggle="tab">微官网入口</a>
  138. </li>
  139. <li class="site-edit-item">
  140. <a href="#default" data-toggle="tab">基础信息</a>
  141. </li>
  142. <li class="site-edit-item" ng-click="loadSlideInfo()">
  143. <a href="#slide" data-toggle="tab" id="load-slide">幻灯片</a>
  144. </li>
  145. <li class="site-edit-item" ng-click="loadHomemenuInfo()">
  146. <a href="#homemenu" data-toggle="tab" id="load-homemenu">导航菜单</a>
  147. </li>
  148. <li class="site-edit-item" ng-click="loadQuickmenuInfo()">
  149. <a href="#quickmenu" data-toggle="tab" id="load-quickmenu">底部菜单</a>
  150. </li>
  151. </ul>
  152. </div>
  153. <div class="tab-content site-edit-content">
  154. <!--入口-->
  155. <div class="tab-pane active" id="template">
  156. <div class="site-select-tem" >
  157. <div class="select-tem-filter search-box">
  158. <div class="form-group">
  159. <select class="we7-select col-sm-12" ng-model="temtype" ng-options="tem.title for tem in temtypes">
  160. </select>
  161. </div>
  162. <div class="form-group">
  163. <div class="input-group">
  164. <input type="text" class="form-control" placeholder="输入模板名" ng-model="searchedStyleName">
  165. <span class="input-group-btn" ng-click="searchStyle()"><a class="btn btn-default"> <i class="fa fa-search"></i></a></span>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="select-tem-list">
  170. <ul>
  171. <li class="select-tem-item" ng-repeat="style in styles" ng-class="{'active': multi.style.id == style.id}" ng-click="selectStyle(style)" ng-show="temtype.name == 'all' || temtype.name == style.type">
  172. <input type="text" name="styleid" ng-model="multi.style.id" ng-style="{'display': 'none'}">
  173. <img ng-src="../app/themes/{{style.tname}}/preview.jpg" />
  174. <a href="javascript:;" class="cover-dark" ng-style="{'padding': '5px'}">
  175. <i class="fa fa-check cover-selected"></i>
  176. <span ng-bind="style.name" class="text-over" ng-style="{'position': 'absolute', 'bottom': '1px', 'color': 'white'}"></span>
  177. </a>
  178. </li>
  179. </ul>
  180. </div>
  181. </div>
  182. </div>
  183. <div class="we7-form tab-pane " id="entrance">
  184. <div class="entrance-url ">
  185. <div class="form-group">
  186. <label for="" class="control-label col-sm-2">微官网链接</label>
  187. <div class="form-controls col-sm-10 form-control-static">
  188. <a ng-href="{{siteEntrance}}" class="form-control-static color-default" target="_blank" ng-bind="siteEntrance"></a>
  189. </div>
  190. </div>
  191. <div class="form-group">
  192. <label for="" class="control-label col-sm-2"></label>
  193. <div class="form-controls col-sm-10">
  194. <a href="javascript:;" class="btn btn-default" id="copy-{{multi.id}}" clipboard supported="supported" text="siteEntrance" on-copied="success(multi.id)">复制链接</a>
  195. </div>
  196. </div>
  197. </div>
  198. <div class="entrance-edit">
  199. <div class="form-group">
  200. <label class="control-label col-sm-2">触发关键字</label>
  201. <div class="form-controls col-sm-10">
  202. <input type="text" name="keyword" class="form-control" ng-model="multi.site_info.keyword"/>
  203. <div class="help-block">用户触发关键字,系统回复此页面的图文链接</div>
  204. </div>
  205. </div>
  206. <div class="form-group">
  207. <label class="control-label col-sm-2">封面</label>
  208. <div class="form-controls col-sm-10">
  209. <div class="we7-input-img input-more" ng-class="{'active': multi.site_info.thumb}">
  210. <img ng-src="{{multi.site_info.thumb}}" ng-if="multi.site_info.thumb">
  211. <a href="javascript:;" class="input-addon" ng-click="uploadMultiImage()" ng-hide="multi.site_info.thumb"><span>+</span></a>
  212. <input type="text" name="thumb" ng-model="multi.site_info.thumb" ng-style="{'display' : 'none'}">
  213. <div class="cover-dark">
  214. <a href="javascript:;" class="cut" ng-click="uploadMultiImage()">更换</a>
  215. <a href="javascript:;" class="del" ng-click="delMultiImage()"><i class="fa fa-times text-danger"></i></a>
  216. </div>
  217. </div>
  218. <div class="help-block">建议尺寸:900*500 <br>用于用户触发关键字后,系统回复时的封面图片</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. <!--基础信息-->
  224. <div class="tab-pane fade in" id="default">
  225. <div class="we7-form">
  226. <div class="form-group">
  227. <label for="" class="control-label col-sm-2">微站名称</label>
  228. <div class="form-controls col-sm-10">
  229. <input type="text" name="title" class="form-control" ng-model="multi.title"/>
  230. </div>
  231. </div>
  232. <div class="form-group">
  233. <label for="" class="control-label col-sm-2">是否启用</label>
  234. <div class="form-controls col-sm-10">
  235. <label>
  236. <input type="text" name="status" class="form-control" ng-model="multi.status" ng-style="{'display': 'none'}">
  237. <div class="switch" ng-class="{'switchOn' : multi.status == 1}" ng-click="changeMultiStatus()" ng-if='default_site != multi.id'></div>
  238. <div class="switch switchOn" ng-style="{'opacity': '0.3'}" ng-if='default_site == multi.id'>
  239. </div>
  240. <span class="help-block" ng-if="default_site == multi.id">默认微站不可关闭</span>
  241. </label>
  242. </div>
  243. </div>
  244. <div class="form-group">
  245. <label for="" class="control-label col-sm-2">页面描述</label>
  246. <div class="form-controls col-sm-10">
  247. <input type="text" name="description" class="form-control" ng-model="multi.site_info.description">
  248. <span class="help-block">用户通过微信分享给朋友时,会自动显示页 面描述</span>
  249. </div>
  250. </div>
  251. <div class="form-group">
  252. <label for="" class="control-label col-sm-2">绑定域名</label>
  253. <div class="form-controls col-sm-10">
  254. <input type="text" name="bindhost" class="form-control" ng-model="multi.bindhost">
  255. <span class="help-block">绑定时请先将域名解析指向到本服务器,请只填写host部分,不允许为当前系统域名。例如:www.baidu.com</span>
  256. </div>
  257. </div>
  258. <div class="form-group">
  259. <label for="" class="control-label col-sm-2">底部自定义</label>
  260. <div class="form-controls col-sm-10">
  261. <textarea class="form-control" cols="30" name="footer" autocomplete="off">{$multi['site_info']['footer']}</textarea>
  262. <span class="help-block">自定义底部信息</span>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. <!--幻灯片-->
  268. <div class="tab-pane fade" id="slide">
  269. <!--幻灯片列表-->
  270. <div class="site-slide-list">
  271. <ul>
  272. <li ng-repeat="list in slideLists">
  273. <div class="site-slide-item media">
  274. <div class="media-left media-middle slide-sort">
  275. <span ng-style="{'color': '#98999a'}">排序</span>
  276. <input type="text" class="form-control" ng-model="list.displayorder" ng-style="{'padding': '0', 'text-align': 'center'}">
  277. </div>
  278. <div class="media-left media-middle slide-img" ng-class="{'active': list.thumb}">
  279. <div ng-style="{'border': '1px dashed #e7e7eb', 'position': 'relative','text-align': 'center', 'height': '65px'}">
  280. <img ng-src="{{list.thumb}}" ng-if="list.thumb">
  281. <a href="javascript:;" class="input-addon" ng-click="uploadSlideImage(list)" ng-hide="list.thumb" ng-style="{'line-height': '65px'}"><span>+</span></a>
  282. <div class="cover-dark">
  283. <a href="javascript:;" class="cut" ng-click="uploadSlideImage(list)">更换</a>
  284. <a href="javascript:;" class="del" ng-click="delSlideImage(list)"><i class="fa fa-times text-danger"></i></a>
  285. </div>
  286. </div>
  287. </div>
  288. <div class="media-body">
  289. <div class="slide-title">
  290. <input type="text" ng-model="list.title" ng-style="{'width': '168px', 'border': '1px solid #ccc'}">
  291. </div>
  292. <div class="slide-alter">
  293. <input type="text" ng-model="list.url" ng-style="{'width': '168px', 'border': '1px solid #ccc'}">
  294. </div>
  295. <a href="javascript:;" class="slide-del" ng-click="delSlide(list)"><i class="fa fa-times text-danger"></i></a>
  296. </div>
  297. </div>
  298. </li>
  299. <li class="slide-list-more site-slide-item">
  300. <a href="javascript:;" class="slide-add" ng-click="addSlide()">+</a>
  301. </li>
  302. </ul>
  303. <div class="btn btn-primary we7-padding-horizontal site-btn-bottom" ng-click="saveSlide()">保存</div>
  304. </div>
  305. </div>
  306. <!--首页导航菜单-->
  307. <div class="tab-pane fade homemenu" id="homemenu">
  308. <div class="panel panel-warning" ng-show="!addHomemenuStatus">
  309. <div class="panel-body">
  310. <p>当前使用的风格为:<span ng-bind="multi.style.name"></span>;</p>
  311. <p>模板文件为:<span ng-bind="multi.style.title"></span>(/app/themes/<span ng-bind="multi.style.tname"></span>);</p>
  312. <p ng-if="multi.style.sections == 0">此模板未提供导航位置功能</p>
  313. <p ng-if="multi.style.sections != 0">此模板提供 <span ng-bind="multi.style.sections"></span> 个导航位置,您可以指定导航在特定的位置显示,未指位置的导航将无法显示</p>
  314. </div>
  315. </div>
  316. <table class="table we7-table table-hover" ng-show="!addHomemenuStatus">
  317. <col width="100px" />
  318. <col width="70px" />
  319. <col width="85px" />
  320. <col width="180px" />
  321. <tr>
  322. <th>标题</th>
  323. <th>图标</th>
  324. <th>是否显示</th>
  325. <th>操作</th>
  326. </tr>
  327. <tr ng-repeat="menu in homeMenu">
  328. <td class="title" title="{{menu.name}}" ng-bind="menu.name"></td>
  329. <td class="icon">
  330. <img ng-src="{{attachurl + menu.icon}}" width="30px" ng-if="menu.icon">
  331. <i class="fa fa-2x {{menu.css.icon.icon}}" ng-if="menu.icon == ''"></i>
  332. </td>
  333. <td><div class="switch" ng-class="{'switchOn': menu.status == 1}" ng-click="updateMenu(menu, 'switch')"></div></td>
  334. <td class="edit">
  335. <a href="javascript:;" id="copy-{{menu.id}}" clipboard supported="supported" text="menu.url" on-copied="successMenu(menu.id)">复制链接</a>
  336. <a href="javascript:;" ng-click="changeHomemenuStatus(menu)">编辑</a>
  337. <a href="javascript:;" ng-click="updateMenu(menu, 'del')">删除</a>
  338. </td>
  339. </tr>
  340. <tr class="more">
  341. <td colspan="4" ng-click="changeHomemenuStatus()">
  342. <a href="javascript:;" class="color-default">+添加</a>
  343. </td>
  344. </tr>
  345. </table>
  346. <!--首页导航菜单编辑-->
  347. <div class="site-nav-edit" ng-show="addHomemenuStatus">
  348. <div class="edit-heading">
  349. <a href="javascript:;" class="go-back" ng-click="changeHomemenuStatus()"><i class="wi wi-back-circle"></i></a>
  350. <a href="javascript:;" class="color-gray" ng-click="changeHomemenuStatus()">导航菜单列表 / </a>
  351. <span class="color-dark">编辑导航菜单</span>
  352. </div>
  353. <div class="we7-form">
  354. <div class="form-group">
  355. <label for="" class="control-label col-sm-2">导航显示位置</label>
  356. <div class="form-controls col-sm-10">
  357. <select ng-model="menuInfo.section" class="we7-select" ng-options="sec.val for sec in sections"></select>
  358. <span class="help-block">设置位置后可以将导航菜单显示到模板对应的位置中。(可以同时设置多个导航在同一个位置中,会根据排序大小依次显示),显示的位置必须要有模板支持。</span>
  359. <strong class="text-danger">注意:如果您添加了模板未设置的位置时,该链接将不会显示,您可以在导航列表中查看。</strong>
  360. </div>
  361. </div>
  362. <div class="form-group">
  363. <label for="" class="control-label col-sm-2">名称</label>
  364. <div class="form-controls col-sm-10">
  365. <input type="text" value="1" ng-model="menuInfo.position" ng-style="{'display': 'none'}"/>
  366. <input type="text" class="form-control" ng-model="menuInfo.name"/>
  367. </div>
  368. </div>
  369. <div class="form-group">
  370. <label for="" class="control-label col-sm-2">描述</label>
  371. <div class="form-controls col-sm-10">
  372. <textarea rows="4" cols="" class="form-control" ng-model="menuInfo.description"></textarea>
  373. </div>
  374. </div>
  375. <div class="form-group">
  376. <label for="" class="control-label col-sm-2">链接</label>
  377. <div class="form-controls col-sm-10">
  378. <div we7-linker we7-my-url="menuInfo.url" we7-my-title="menuInfo.url"></div>
  379. </div>
  380. </div>
  381. <div class="form-group">
  382. <label for="" class="control-label col-sm-2">状态</label>
  383. <div class="col-sm-10">
  384. <input id='radio-1' type="radio" value="1" name="" ng-model="menuInfo.status" ng-checked="menuInfo.status == 1">
  385. <label for="radio-1">显示 </label>
  386. <input id='radio-2' type="radio" value="0" name="" ng-model="menuInfo.status" ng-checked="menuInfo.status == 0">
  387. <label for="radio-2">隐藏</label>
  388. <span class="help-block">设置导航菜单的显示状态</span>
  389. </div>
  390. </div>
  391. <div class="form-group">
  392. <label for="" class="control-label col-sm-2">排序</label>
  393. <div class="form-controls col-sm-10">
  394. <input type="text" class="form-control" ng-model="menuInfo.displayorder">
  395. <span class="help-block">导航排序,越大越靠前</span>
  396. </div>
  397. </div>
  398. <div class="penel we7-panel panel-new">
  399. <div class="panel-heading">
  400. 导航样式
  401. </div>
  402. <div class="panel-body we7-padding-top">
  403. <div class="we7-form">
  404. <div class="form-group">
  405. <label for="" class="control-label col-sm-2">图标类型</label>
  406. <div class="form-controls col-sm-10">
  407. <div class="form-control-static">
  408. <input id='icontype-1' type="radio" value="1" name="" ng-model="menuInfo.icontype" ng-checked="menuInfo.icontype == 1">
  409. <label for="icontype-1">系统内置</label>
  410. <input id='icontype-2' type="radio" value="2" name="" ng-model="menuInfo.icontype" ng-checked="menuInfo.icontype == 2"/>
  411. <label for="icontype-2">自定义上传</label>
  412. </div>
  413. </div>
  414. </div>
  415. <div class="form-group" ng-if="menuInfo.icontype == 2">
  416. <label for="" class="control-label col-sm-2">上传图标</label>
  417. <div class="form-controls col-sm-10">
  418. <div class="we7-input-img input-more input-img" ng-class="{'active': menuInfo.icon}" ng-style="{'width': '100px', 'height': '100px'}">
  419. <img ng-src="{{attachurl + menuInfo.icon}}" width="150px" ng-if="menuInfo.icon">
  420. <a href="javascript:;" class="input-addon" ng-click="uploadHomemenuImage(menuInfo)" ng-hide="menuInfo.icon">
  421. <span>+</span>
  422. </a>
  423. <div class="cover-dark">
  424. <a href="javascript:;" class="cut" ng-click="uploadHomemenuImage(menuInfo)">更换</a>
  425. <a href="javascript:;" class="del" ng-click="delHomemenuImage(menuInfo)"><i class="fa fa-times text-danger"></i></a>
  426. </div>
  427. </div>
  428. </div>
  429. </div>
  430. <div class="form-group" ng-if="menuInfo.icontype != 2">
  431. <label for="" class="control-label col-sm-2">系统图标</label>
  432. <div class="form-controls col-sm-10" >
  433. <div class="input-group">
  434. <input type="text" class="form-control" ng-model="menuInfo.css.icon.icon"/>
  435. <span class="input-group-addon" ng-click="selectHomemenuIcon()"><i class="{{menuInfo.css.icon.icon}}" ng-init="menuInfo.css.icon.icon = 'fa fa-external-link'"></i></span>
  436. <span class="input-group-btn" ng-click="selectHomemenuIcon()"><a class="btn btn-default">&nbsp;选择图标</a></span>
  437. </div>
  438. <span class="help-block">导航的背景图标,系统提供了丰富的图标ICON。</span>
  439. </div>
  440. </div>
  441. <div class="form-group" ng-if="menuInfo.icontype != 2">
  442. <label for="" class="control-label col-sm-2">图标颜色</label>
  443. <div class="form-controls col-sm-10">
  444. <div class="input-group">
  445. <input type="text" class="form-control" ng-model="menuInfo.css.icon.color" ng-style="{'display' : 'none'}">
  446. <div we7-colorpicker we7-my-color="menuInfo.css.icon.color" we7-my-default-color="'#2B2D30'"></div>
  447. </div>
  448. </div>
  449. </div>
  450. <div class="form-group" ng-if="menuInfo.icontype != 2">
  451. <label for="" class="control-label col-sm-2">图标大小</label>
  452. <div class="form-controls col-sm-10" >
  453. <div class="input-group col-sm-4">
  454. <input class="form-control" type="text" ng-model="menuInfo.css.icon.width" ng-init="menuInfo.css.icon.width = menuInfo.css.icon.width ? menuInfo.css.icon.width : 35">
  455. <span class="input-group-addon">PX</span>
  456. </div>
  457. <span class="help-block">图标的尺寸大小,单位为像素,上传图标时此设置项无效</span>
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. <div class="btn btn-primary we7-padding-horizontal site-btn-bottom col-sm-offset-2" ng-click="saveMenu()">保存</div>
  464. </div>
  465. </div>
  466. </div>
  467. <!--底部菜单-->
  468. <div class="tab-pane fade shopNav" id="quickmenu">
  469. <div class="we7-form app-side">
  470. <div class="form-group">
  471. <label for="" class="control-label col-sm-2">是否开启</label>
  472. <div class="form-controls col-sm-10">
  473. <label>
  474. <div class="switch" ng-class="{'switchOn': quickMenuStatus}" ng-click="quickMenuSwitch()"></div>
  475. </label>
  476. <span class="help-block">微站的各个页面可以通过底部菜单串联起来。通过精心设置的底部菜单,方便访问者在页面或是栏目间快速切换,引导访问者前往您期望的页面。</span>
  477. </div>
  478. </div>
  479. <div class="form-group">
  480. <label for="" class="control-label col-sm-2">导航应用:</label>
  481. <div class="form-controls col-sm-10 form-control-static">
  482. <input id='check-1' type="checkbox" ng-model="activeItem.position.homepage"/>
  483. <label for="check-1">微站主页</label>
  484. <input id='check-2' type="checkbox" ng-model="activeItem.position.page" />
  485. <label for="check-2">微页面</label>
  486. <input id='check-3' type="checkbox" ng-model="activeItem.position.article" />
  487. <label for="check-3">文章及分类</label>
  488. <span class="help-block">将导航应用在以上页面</span>
  489. </div>
  490. </div>
  491. {if $_W['role'] != 'operator'}
  492. <div class="form-group">
  493. <label for="" class="control-label col-sm-2">导航隐藏:</label>
  494. <div class="form-controls col-sm-10">
  495. <a href="javascript:;" class="color-default" ng-click="showSearchModules()">选择模块</a>
  496. <div class="form-control-static">
  497. <label class="label label-warning" ng-show="!hasIgnoreModules">未设置,将在全部模块中显示</label>
  498. <label style="margin-right:5px; display: inline-block;" class="label label-success" ng-show="hasIgnoreModules" ng-repeat="module in activeItem.ignoreModules">{{module.title}}</label>
  499. </div>
  500. <span class="help-block">将导航隐藏在以上模块</span>
  501. </div>
  502. </div>
  503. {/if}
  504. <div class="panel we7-panel app-shopNav-edit">
  505. <div class="panel-heading">
  506. 当前模板: 微信公众号自定义菜单模板
  507. <div class="pull-right">
  508. <span class="btn btn-primary" data-toggle="modal" data-target="#shop-nav-modal">修改模板</span>
  509. </div>
  510. </div>
  511. <div class="panel-body">
  512. <!--微信公众号自定义菜单模板:shopNav-wx-->
  513. <div class="shopNav-wx" ng-show="activeItem.navStyle == 1">
  514. <div class="card" ng-init="$parentIndex = $index" ng-repeat="menu in activeItem.menus">
  515. <div class="btns">
  516. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  517. </div>
  518. <div class="nav-region">
  519. <div class="first-nav">
  520. <h3>一级导航</h3>
  521. <div>
  522. <div class="form-group">
  523. <label class="control-label col-sm-2 text-center" >标题</label>
  524. <div class="form-controls col-sm-10">
  525. <input type="text" class="form-control" name="" value="" ng-model="menu.title" />
  526. </div>
  527. </div>
  528. <div class="form-group">
  529. <label class="control-label col-sm-2 text-center" >链接到</label>
  530. <div class="form-controls col-sm-10">
  531. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. <div class="second-nav">
  537. <h4>二级导航</h4>
  538. <div ng-repeat="submenu in menu.submenus" class="alert">
  539. <div class="del">
  540. <a href="javascript:;" ng-click="removeSubMenu($parentIndex, submenu)"><i class="fa fa-times"></i></a>
  541. </div>
  542. <div class="form-group">
  543. <label class="control-label col-sm-2 text-center">标题</label>
  544. <div class="form-controls col-sm-10">
  545. <input type="text" class="form-control" name="" ng-model="submenu.title">
  546. </div>
  547. </div>
  548. <div class="form-group">
  549. <label class="control-label col-sm-2 text-center" >链接到</label>
  550. <div class="form-controls col-sm-10">
  551. <div we7-linker we7-my-url="submenu.url" we7-my-title="submenu.title"></div>
  552. </div>
  553. </div>
  554. </div>
  555. <div ng-show="!menu.submenus || menu.submenus.length < 5" ng-click="menu.submenus.length >= 5 ? '' : addSubMenu(menu);" class="add-shopNav">+ 添加二级导航</div>
  556. <!--最多可添加5个-->
  557. </div>
  558. </div>
  559. </div>
  560. <div ng-show="!activeItem.menus || activeItem.menus.length < 3" class="add-shopNav text-center" ng-click="activeItem.menus.length >= 3 ? '' : addMenu();">+添加一级导航</div>
  561. <!--最多添加三个导航-->
  562. </div>
  563. <!--end微信公众号自定义菜单模板-->
  564. <!--APP导航样式:shopNav-app-->
  565. <div class="shopNav-app" ng-show="activeItem.navStyle == 2">
  566. <div class="form-group we7-padding-top">
  567. <label for="" class="control-label col-sm-2" >页面颜色</label>
  568. <div class="form-controls col-sm-10 input-group">
  569. <div we7-colorpicker we7-my-color="activeItem.bgColor" we7-my-default-color="'#2B2D30'"></div>
  570. </div>
  571. </div>
  572. <div class="card" ng-repeat="menu in activeItem.menus">
  573. <div class="btns">
  574. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  575. </div>
  576. <div class="nav-img-group">
  577. <div class="clearfix">
  578. <div class="nav-img-normal pull-left">
  579. <label class="control-label col-sm-2">普通:</label>
  580. <div class="form-controls col-sm-10">
  581. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  582. </div>
  583. </div>
  584. <div class="nav-img-highlight pull-left">
  585. <label class="control-label col-sm-2">高亮:</label>
  586. <div class="form-controls col-sm-10">
  587. <div we7-iconer we7-my-image="menu.hoverimage" we7-my-icon="menu.hovericon">选择</div>
  588. </div>
  589. </div>
  590. <div class="help-block" ng-style="{'margin-left': '90px'}">尺寸要求:不大于82*82像素,支持PNG格式</div>
  591. </div>
  592. </div>
  593. <div class="form-group">
  594. <label class="control-label col-sm-2" >标题</label>
  595. <div class="form-controls col-sm-10">
  596. <input type="text" class="form-control" name="" ng-model="menu.title">
  597. </div>
  598. </div>
  599. <div class="form-group">
  600. <label class="control-label col-sm-2" >链接到</label>
  601. <div class="form-controls col-sm-10 ">
  602. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  603. </div>
  604. </div>
  605. </div>
  606. <div class="add-shopNav text-center" ng-show="!activeItem.menus || activeItem.menus.length < 5" ng-click="activeItem.menus.length >= 5 ? '' : addMenu();">+添加导航</div>
  607. </div>
  608. <!--end APP导航样式-->
  609. <!--带购物车导航模板-->
  610. <div class="shopNav-cart" ng-show="activeItem.navStyle == 3">
  611. <div class="form-group we7-padding-top" style="border-bottom:1px solid #e5e5e5;">
  612. <label class="control-label col-sm-2" >页面颜色</label>
  613. <div class="form-controls col-sm-10 input-group">
  614. <div we7-colorpicker we7-my-color="activeItem.bgColor" we7-my-default-color="'#2B2D30'"></div>
  615. </div>
  616. </div>
  617. <p>添加中间主图标</p>
  618. <div class="card">
  619. <div class="nav-img-group">
  620. <div class="clearfix">
  621. <div class="nav-img-normal pull-left">
  622. <label class="control-label col-sm-6">普通:</label>
  623. <div class="form-controls col-sm-6">
  624. <div we7-iconer we7-my-image="activeItem.extend[0].image" we7-my-icon="activeItem.extend[0].icon" we7-my-icon-color="activeItem.extend[0].icon.color">选择</div>
  625. </div>
  626. </div>
  627. <div class="nav-img-highlight pull-left">
  628. <label class="control-label col-sm-6">高亮:</label>
  629. <div class="form-controls col-sm-6">
  630. <div we7-iconer we7-my-image="activeItem.extend[0].hoverimage" we7-my-icon="activeItem.extend[0].hovericon">选择</div>
  631. </div>
  632. </div>
  633. </div>
  634. <div class="help-block" ng-style="{'margin-left': '90px'}">尺寸要求:不大于82*82像素,支持PNG格式</div>
  635. </div>
  636. <div class="form-group">
  637. <label class="control-label col-sm-2" >链接到</label>
  638. <div class="form-controls col-sm-10 ">
  639. <div we7-linker we7-my-url="activeItem.extend[0].url" we7-my-title="activeItem.extend[0].title"></div>
  640. </div>
  641. </div>
  642. </div>
  643. <p>添加两侧图标</p>
  644. <div class="help-block">此导航模板建议您用两个或者四个自定义图标效果图最佳哦!</div>
  645. <div class="card" ng-repeat="menu in activeItem.menus">
  646. <div class="nav-img-group">
  647. <div class="btns">
  648. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  649. </div>
  650. <div class="clearfix">
  651. <div class="nav-img-normal pull-left">
  652. <label class="control-label col-sm-2">普通:</label>
  653. <div class="form-controls col-sm-10">
  654. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  655. </div>
  656. </div>
  657. <div class="nav-img-highlight pull-left">
  658. <label class="control-label col-sm-2">高亮:</label>
  659. <div class="form-controls col-sm-10">
  660. <div we7-iconer we7-my-image="menu.hoverimage" we7-my-icon="menu.hovericon">选择</div>
  661. </div>
  662. </div>
  663. </div>
  664. <div class="help-block" ng-style="{'margin-left': '90px'}">尺寸要求:建议82*82像素</div>
  665. </div>
  666. <div class="form-group">
  667. <label class="control-label col-sm-2" >链接到</label>
  668. <div class="form-controls col-sm-10 ">
  669. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  670. </div>
  671. </div>
  672. </div>
  673. <div class="add-shopNav text-center" ng-show="!activeItem.menus || activeItem.menus.length < 4" ng-click="activeItem.menus.length >= 4 ? '' : addMenu();">+添加导航</div>
  674. </div>
  675. <!--end 带购物车导航模板-->
  676. <!--Path展开形式导航模板-->
  677. <div class="shopNav-path" ng-show="activeItem.navStyle == 4">
  678. <p class="help-block">此导航模板建议您用三个自定义图标效果最佳哦1!</p>
  679. <div class="card" ng-repeat="menu in activeItem.menus">
  680. <div class="btns">
  681. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  682. </div>
  683. <div class="nav-img-group">
  684. <div class="clearfix">
  685. <div class="nav-img-normal pull-left">
  686. <label class="control-label col-sm-2">普通:</label>
  687. <div class="form-controls col-sm-10">
  688. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  689. </div>
  690. </div>
  691. </div>
  692. <div class="help-block" ng-style="{'margin-left': '90px'}">尺寸要求:建议82*82像素</div>
  693. </div>
  694. <div class="form-group">
  695. <label class="control-label col-sm-2" >链接到</label>
  696. <div class="form-controls col-sm-10 ">
  697. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  698. </div>
  699. </div>
  700. </div>
  701. <div class="add-shopNav text-center" ng-show="!activeItem.menus || activeItem.menus.length < 4" ng-click="activeItem.menus.length >= 4 ? '' : addMenu();">+添加导航</div>
  702. <!--最多可添加4个-->
  703. </div>
  704. <!--end Path展开形式导航模板-->
  705. <!--两侧展开导航模板-->
  706. <div class="shopNav-sides" ng-show="activeItem.navStyle == 5">
  707. <p>添加两侧一级图标</p>
  708. <div class="card">
  709. <div class="nav-img-group">
  710. <div class="clearfix">
  711. <div class="nav-img-normal pull-left">
  712. <label class="control-label col-sm-2">普通:</label>
  713. <div class="form-controls col-sm-10">
  714. <div we7-iconer we7-my-image="activeItem.extend[0].image" we7-my-icon="activeItem.extend[0].icon" we7-my-icon-color="activeItem.extend[0].icon.color">选择</div>
  715. </div>
  716. </div>
  717. </div>
  718. <div class="help-block" ng-style="{'margin-left': '90px'}">尺寸要求:建议82*82像素</div>
  719. </div>
  720. <div class="form-group">
  721. <label class="control-label col-sm-2" >链接到</label>
  722. <div class="form-controls col-sm-10 ">
  723. <div we7-linker we7-my-url="activeItem.extend[0].url" we7-my-title="activeItem.extend[0].title"></div>
  724. </div>
  725. </div>
  726. </div>
  727. <div class="card">
  728. <div class="nav-img-group">
  729. <div class="clearfix">
  730. <div class="nav-img-normal pull-left">
  731. <label class="control-label col-sm-2">普通:</label>
  732. <div class="form-controls col-sm-10">
  733. <div we7-iconer we7-my-image="activeItem.extend[1].image" we7-my-icon="activeItem.extend[1].icon" we7-my-icon-color="activeItem.extend[1].icon.color">选择</div>
  734. </div>
  735. </div>
  736. </div>
  737. <div class="help-block" ng-style="{'margin-left': '90px'}">尺寸要求:建议82*82像素</div>
  738. </div>
  739. <div class="form-group">
  740. <label class="control-label col-sm-2" >链接到</label>
  741. <div class="form-controls col-sm-10 ">
  742. <div we7-linker we7-my-url="activeItem.extend[1].url" we7-my-title="activeItem.extend[1].title"></div>
  743. </div>
  744. </div>
  745. </div>
  746. <p>添加中间二级标题</p>
  747. <p class="help-block">此导航模板建议您用四个自定义图标效果最佳哦!</p>
  748. <div class="card" ng-repeat="menu in activeItem.menus">
  749. <div class="btns">
  750. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  751. </div>
  752. <div class="nav-img-group">
  753. <div class="clearfix">
  754. <div class="nav-img-normal pull-left">
  755. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  756. </div>
  757. </div>
  758. <div class="help-block" ng-style="{'margin-left': '90px'}">尺寸要求:建议86*82像素</div>
  759. </div>
  760. <div class="form-group">
  761. <label class="control-label col-sm-2" >链接到</label>
  762. <div class="form-controls col-sm-10 ">
  763. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  764. </div>
  765. </div>
  766. </div>
  767. <div class="add-shopNav text-center" ng-show="!activeItem.menus || activeItem.menus.length < 4" ng-click="activeItem.menus.length >= 4 ? '' : addMenu();">+添加导航</div>
  768. <!--最多可添加4个-->
  769. </div>
  770. <!--end 两侧展开导航模板-->
  771. </div>
  772. </div>
  773. <!--选择导航模板模态框-->
  774. <div class="modal fade" id="shop-nav-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  775. <div class="modal-dialog">
  776. <div class="modal-content">
  777. <div class="modal-header">
  778. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  779. <h4 class="modal-title" id="myModalLabel">选择导航模板</h4>
  780. </div>
  781. <div class="modal-body clearfix overflow-auto">
  782. <div class="alert">
  783. <input id="wx-radio" type="radio" value="1" ng-model="activeItem.navStyle" ng-checked="activeItem.navStyle == 1">
  784. <label for="wx-radio">微信公众号自定义菜单样式</label>
  785. <div class="wx-example"></div>
  786. </div>
  787. <div class="alert">
  788. <input id="app-radio" type="radio" value="2" ng-model="activeItem.navStyle" ng-checked="activeItem.navStyle == 2">
  789. <label for="app-radio">APP导航模板1(图标及底色都可配置)</label>
  790. <div class="app-example"></div>
  791. </div>
  792. <div class="alert">
  793. <input id="cart-radio" type="radio" value="3" ng-model="activeItem.navStyle" ng-checked="activeItem.navStyle == 3">
  794. <label for="cart-radio">APP导航模板2</label>
  795. <div class="cart-example"></div>
  796. </div>
  797. <div class="col-xs-6" style="padding-left:0;">
  798. <div class="alert">
  799. <input id="path-radio" type="radio" value="4" ng-model="activeItem.navStyle" ng-checked="activeItem.navStyle == 4">
  800. <label for="path-radio">Path展开形式导航</label>
  801. <div class="path-example"></div>
  802. </div>
  803. </div>
  804. <div class="col-xs-6" style="padding-right:0;">
  805. <div class="alert">
  806. <input id="sides-radio" type="radio" value="5" ng-model="activeItem.navStyle" ng-checked="activeItem.navStyle == 5">
  807. <label for="sides-radio">两侧展开形式导航</label>
  808. <div class="sides-example"></div>
  809. </div>
  810. </div>
  811. </div>
  812. <div class="modal-footer">
  813. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  814. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="selectNavStyle()">确定</button>
  815. </div>
  816. </div>
  817. </div>
  818. </div>
  819. <!--选择模块模态框-->
  820. <div class="modal fade" id="shop-modules-modal" tabindex="-1" role="dialog" aria-hidden="true">
  821. <div class="modal-dialog">
  822. <div class="modal-content">
  823. <div class="modal-header">
  824. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  825. <h4 class="modal-title">选择忽略模块</h4>
  826. </div>
  827. <div class="modal-body clearfix overflow-auto">
  828. <table class="table table-hover">
  829. <thead class="navbar-inner">
  830. <tr>
  831. <th style="width:70%;">标题</th>
  832. <th style="width:30%; text-align:right"></th>
  833. </tr>
  834. </thead>
  835. <tbody>
  836. <tr ng-repeat="m in modules">
  837. <td><span ng-bind="m.title"></span>(<span ng-bind="m.name"></span>)</td>
  838. <td>
  839. <a class="btn btn-default js-btn-select" ng-class="{'btn-primary' : activeItem.ignoreModules[m.name]}" js-name="{{m.name}}" js-title="{{m.title}}" onclick="$(this).toggleClass('btn-primary');$(this).html($(this).hasClass('btn-primary') ? '取消' : '选取')">选取</a>
  840. </td>
  841. </tr>
  842. </tbody>
  843. </table>
  844. </div>
  845. <div class="modal-footer">
  846. <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
  847. </div>
  848. </div>
  849. </div>
  850. </div>
  851. <div class="btn btn-primary we7-padding-horizontal site-btn-bottom col-sm-offset-2 " ng-click="saveQucikMenu()">保存</div>
  852. </div>
  853. </div>
  854. </div>
  855. </div>
  856. </div>
  857. <div class="text-center we7-padding">
  858. <input type="submit" name="submit" value="完成" class="btn btn-primary">
  859. <input type="hidden" name="token" value="{$_W['token']}">
  860. </div>
  861. </form>
  862. <script>
  863. require(['underscore'], function(){
  864. angular.module('wesiteApp').value('config', {
  865. default_site: {php echo !empty($default_site) ? json_encode($default_site) : '0'},
  866. multiid: {php echo !empty($id) ? json_encode($id) : '0'},
  867. multi: {php echo !empty($multi) ? json_encode($multi) : 'null'},
  868. styles: {php echo !empty($styles) ? json_encode($styles) : 'null'},
  869. temtypes: {php echo !empty($temtypes) ? json_encode($temtypes) : 'null'},
  870. attachurl: {php echo !empty($_W['attachurl']) ? json_encode($_W['attachurl']) : 'null'},
  871. links: {
  872. murl: "{php echo murl('home', array(), true, true)}",
  873. searchStyleLink: "{php echo url('site/multi/post')}",
  874. slideDisplay: "{php echo url('site/slide/display')}",
  875. slidePost: "{php echo url('site/slide/post')}",
  876. slideDel: "{php echo url('site/slide/del')}",
  877. homeMenuDisplay: "{php echo url('site/nav/homemenu_display')}",
  878. homeMenuPost: "{php echo url('site/nav/homemenu_post')}",
  879. homeMenuSwith: "{php echo url('site/nav/homemenu_switch')}",
  880. homeMenuDel: "{php echo url('site/nav/homemenu_del')}",
  881. quickMenuDisplay: "{php echo url('site/multi/quickmenu_display')}",
  882. quickMenuPost: "{php echo url('site/multi/quickmenu_post')}",
  883. }
  884. });
  885. angular.bootstrap($('#js-wesite-post'), ['wesiteApp']);
  886. var clickType = "{php echo trim($_GPC['clicktype'])}";
  887. var index = $.inArray(clickType, ['slide', 'homemenu', 'quickmenu']);
  888. if(index > -1) {
  889. $('#load-'+clickType).click();
  890. };
  891. });
  892. </script>