人人商城

post.html 47KB

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