editor.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. {template 'common/header'}
  2. <link href="./resource/css/app.css" rel="stylesheet">
  3. {template 'mc/common'}
  4. {if $do == 'uc'}
  5. <div id="ng_userCenterApp" class="site-box">
  6. {php echo tpl_ueditor('')}
  7. <form action="" method="post" class="form-horizontal">
  8. <input type="hidden" name="multiid" value="{$multiid}" />
  9. <input type="hidden" name="id" value="{$id}" />
  10. <div class="usercenter" ng-controller="MainCtrl" ng-cloak>
  11. <div class="app clearfix">
  12. <input type="hidden" name="wapeditor[params]" id="wapeditor-params" value="{{submit.params}}" />
  13. <input type="hidden" name="wapeditor[html]" id="wapeditor-html" value="{{submit.html}}" />
  14. <input type="hidden" name="wapeditor[nav]" id="wapeditor-nav" value="{{activeMenus}}" />
  15. <div class="app-region">
  16. <div class="panel">
  17. <div class="panel-body">
  18. <label class="text-center col-sm-1">基础</label>
  19. <ul class="app-add-filed clearfix">
  20. <li ng-repeat="m in modules" ng-if="m.isbase == true" ng-click="addItem(m['id'])"><a id="{{m['id']}}" class="btn btn-default" href="#" ng-bind="m['name']"></a></li>
  21. </ul>
  22. <label class="text-center col-sm-1">组件</label>
  23. <ul class="app-add-filed clearfix">
  24. <li ng-repeat="m in modules" ng-if="!m.issystem && !m.isbase" ng-click="addItem(m['id'])"><a id="{{m['id']}}" class="btn btn-default" href="#" ng-bind="m['name']"></a></li>
  25. </ul>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="app-header"><div class="app-header-content" ></div></div>
  30. <div class="app-preview">
  31. <div class="app-content">
  32. <div class="app-usercenter">
  33. <div class="inner">
  34. <div>
  35. <div ng-if="module['id'] == 'UCheader'" id="module-{{module.index}}" name="{{module.id}}" index="{{module.index}}" ng-class="{'js-sorttable' : !module.issystem}" ng-repeat="module in activeModules | orderBy:'displayorder'" ng-style="{'border' : module.issystem ? 'none' : ''}">
  36. <div ng-init="displayPanel = ('widget-'+(module['id'].toLowerCase())+'-display.html')" ng-include="displayPanel" ng-click="editItem(module.index)"></div>
  37. </div>
  38. </div>
  39. <div class="clearfix">
  40. <div class="nav-action">
  41. <a class="nav-action-list" href="javascript:;">
  42. <img src="{php echo $_W['siteroot']}/web/resource/images/app/sum-recharge.png" alt=""/>
  43. <span>余额充值</span>
  44. </a>
  45. <a class="nav-action-list" href="javascript:;">
  46. <img src="{php echo $_W['siteroot']}/web/resource/images/app/scan-pay.png" alt=""/>
  47. <span>扫码付款</span>
  48. </a>
  49. </div>
  50. <div class="mnav-box">
  51. <ul ng-show="activeMenus.length > 0" class="mnav-box-ul">
  52. <li ng-repeat="menu in activeMenus" ng-if="menu.status != 0">
  53. <a class="mnav-box-list" ng-href="{{menu.url}}">
  54. <!--<i ng-class="menu.css.icon.icon"></i>-->
  55. {{menu.name}}
  56. <span class="pull-right"><i class="fa fa-angle-right"></i></span>
  57. </a>
  58. </li>
  59. </ul>
  60. <ul class="mnav-box-ul">
  61. {if isset($setting['uc']['status']) && $setting['uc']['status'] == '1'}
  62. {if !empty($ucUser)}
  63. <li>
  64. <a class="mnav-box-list" href="{php echo url('mc/uc', array('foo' => 'unbind'))}">
  65. 已绑定{$setting['uc']['title']}账号({$ucUser['username']}), 点击解除绑定
  66. </a>
  67. </li>
  68. {else}
  69. <li>
  70. <a class="mnav-box-list" href="{php echo url('mc/uc', array('foo' => 'bind'))}">
  71. 绑定{$setting['uc']['title']}账号
  72. </a>
  73. </li>
  74. {/if}
  75. {/if}
  76. {if $reregister}
  77. <li class="alert-li">
  78. <a class="mnav-box-list" href="{php echo url('mc/bond/email')}">
  79. <span class="">重置重要资料</span>
  80. <span class="pull-right"><span class="btn btn-default">重置</span></span>
  81. </a>
  82. </li>
  83. {/if}
  84. </ul>
  85. <div class="modules" we7-edit-key-map>
  86. <div ng-if="module['id'] && module['id'] != 'UCheader'" id="module-{{module.index}}" name="{{module.id}}" index="{{module.index}}" ng-class="{'js-sorttable' : !module.issystem}" ng-repeat="module in activeModules" ng-style="{'border' : module.issystem ? 'none' : ''}">
  87. <div ng-init="displayPanel = ('widget-'+(module['id'].toLowerCase())+'-display.html')" ng-include="displayPanel" ng-click="editItem(module.index)"></div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="app-side">
  97. <div class="editor ng-scope">
  98. <div class="ng-scope">
  99. <div class="app-header-setting">
  100. <div class="app-header-setting-inner">
  101. <div class="panel panel-default">
  102. <div class="panel-body form-horizontal">
  103. <div data-toggle="tooltip" title="微信扫描,在手机上预览" data-placement="bottom" style="width:30px;height:30px;line-height:30px;position:absolute;right:0px;top:0px;z-index:100"><a class="text-over" href="javascript:void(0);" id="ucQrcode"><i class="wi wi-qrcode"></i></a></div>
  104. <p><img id="qrcode" style="width:100px;display:none" src="{php echo url('site/editor/qrcode',array('text' =>murl('mc', array(), true, true)))}"/></p>
  105. <p>会员中心入口链接</p>
  106. <p><span><a>{{siteEntrance}}</a></span></p>
  107. <p><a href="javascript:;" on-copied="success(2)" id="copy-2" clipboard supported="supported" text="siteEntrance" type="button" class="btn btn-primary">复制链接</a></p>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div ng-init="editorPanel = ('widget-'+(activeItem['id'].toLowerCase())+'-editor.html'.toLowerCase())" ng-show="activeItem.id == editorid" ng-repeat="editorid in editors" ng-include="editorPanel" id="editor{{editorid}}" class="editor"></div>
  115. <div ng-show="activeItem['id'] && activeItem['id'] != 'UCheader'" we7-style></div>
  116. </div>
  117. <div class="app-footer"><div we7-pagelength></div></div>
  118. </div>
  119. </div>
  120. <nav class="navbar navbar-default navbar-uc" role="navigation">
  121. <div class=" text-center we7-margin-vertical-sm">
  122. <div class="js-editor-submit-div">
  123. <button type="button" class="btn btn-primary btn-submit js-editor-submit single-submit">上架</button>
  124. </div>
  125. </div>
  126. </nav>
  127. </form>
  128. <script type="text/javascript">
  129. $(function(){
  130. $('.app-preview').click(function(){
  131. return false;
  132. });
  133. $("#ucQrcode").click(function(){
  134. if ($("#qrcode").is(":hidden")) {
  135. $("#qrcode").show();
  136. } else {
  137. $("#qrcode").hide();
  138. }
  139. })
  140. });
  141. require(['underscore', 'jquery.ui', 'hammer', 'datetimepicker'], function(_) {
  142. var activeModules = {php echo !empty($page['params']) ? $page['params'] : 'null'};
  143. var activeMenus = {php echo !empty($navs) ? json_encode($navs) : 'null'};
  144. var siteroot = "{php echo $_W['siteroot']}";
  145. angular.module('userCenterApp').value('config',{
  146. 'activeModules' : activeModules,
  147. 'activeMenus' : activeMenus,
  148. 'siteroot' : siteroot,
  149. 'links' :{
  150. 'murl':"{php echo murl('mc', array(), true, true)}"
  151. }
  152. });
  153. angular.bootstrap($('#ng_userCenterApp'), ['userCenterApp']);
  154. });
  155. </script>
  156. </div>
  157. {elseif $do == 'quickmenu'}
  158. <div id="ng_quickmenu">
  159. <form action="" method="post">
  160. <div class="shopNav" id="quickmenu" ng-controller="MainCtrl">
  161. <div class="well clearfix">
  162. <div class="shopNav-info col-sm-8">
  163. <h3>快捷导航</h3>
  164. <div>微站的各个页面可以通过导航串联起来。通过精心设置的导航,方便访问者在页面或是栏目间快速切换,引导访问者前往您期望的页面。</div>
  165. </div>
  166. <div class="shopNav-switch col-sm-4 text-right">
  167. <input name="status" class="form-control" value="{$page['status']}" style="display: none;">
  168. <div class="{if !empty($page['status'])}switch switchOn{else}switch{/if}" id="switch" onclick="changeSwitch()"></div>
  169. </div>
  170. </div>
  171. <input type="hidden" name="multiid" value="{$multiid}" />
  172. <input type="hidden" name="type" value="{$type}" />
  173. <input type="hidden" name="wapeditor[params]" id="wapeditor-params" value="{{submit.params}}"/>
  174. <input type="hidden" name="wapeditor[html]" id="wapeditor-html" value="{{submit.html}}"/>
  175. <div class="app clearfix">
  176. <div class="app-preview">
  177. <div class="app-header" ></div>
  178. <div class="app-content">
  179. <div class="modules">
  180. <div class="title">
  181. <h1><span>[页面标题]</span></h1>
  182. </div>
  183. </div>
  184. <div class="nav-menu" style="display:none;">
  185. <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">
  186. <div class="nav-home text-center">
  187. <a href="{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&j={$_W['acid']}"><i class="fa fa-home"></i></a>
  188. </div>
  189. <ul class="nav-group">
  190. <li class="nav-group-item" ng-if="$index < 3" ng-repeat="menu in activeItem.menus">
  191. <a ng-if="menu.submenus.length == 0" href="{{menu.url}}">
  192. {{menu.title}}
  193. </a>
  194. <a ng-if="menu.submenus.length > 0" href="javascript:void();" data-toggle="dropdown">
  195. <i class="fa fa-minus-circle"></i>
  196. {{menu.title}}
  197. </a>
  198. <dl ng-if="menu.submenus.length > 0">
  199. <dd>
  200. <a href="{{submenu.url}}" ng-repeat="submenu in menu.submenus">{{submenu.title}}</a>
  201. </dd>
  202. </dl>
  203. </li>
  204. </ul>
  205. </div>
  206. <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}">
  207. <ul class="nav-group clearfix">
  208. <li class="nav-group-item" ng-repeat="menu in activeItem.menus">
  209. <a href="{{menu.url}}" style="background-position: center 2px" ng-style="{'background-image': menu.image ? 'url('+menu.image+')' : ''}">
  210. <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>
  211. <span ng-style="{'color' : menu.icon.color}" js-onclass-color="{{menu.hovericon.color}}">{{menu.title}}</span>
  212. </a>
  213. </li>
  214. </ul>
  215. </div>
  216. <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}">
  217. <ul class="nav-group clearfix">
  218. <li class="nav-group-item">
  219. <a href="{{activeItem.menus[0].url}}" ng-style="{'background-image': activeItem.menus[0].image ? 'url('+activeItem.menus[0].image+')' : ''}">
  220. <i ng-hide="activeItem.menus[0].image" class="fa" ng-style="{'color' : activeItem.menus[0].icon.color}"
  221. ng-class="activeItem.menus[0].icon.name">
  222. </i>
  223. </a>
  224. </li>
  225. <li ng-if="activeItem.menus[2]" class="nav-group-item">
  226. <a href="{{activeItem.menus[1].url}}" ng-style="{'background-image': activeItem.menus[1].image ? 'url('+activeItem.menus[1].image+')' : ''}">
  227. <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>
  228. </a>
  229. </li>
  230. <li class="nav-home nav-group-item">
  231. <a href="{{activeItem.extend[0].url}}" ng-style="{'background-image': activeItem.extend[0].image ? 'url('+activeItem.extend[0].image+')' : ''}">
  232. <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>
  233. </a>
  234. </li>
  235. <li class="nav-group-item" ng-if="activeItem.menus[1]">
  236. <a ng-if="!activeItem.menus[2]" href="{{activeItem.menus[1].url}}" ng-style="{'background-image': activeItem.menus[1].image ? 'url('+activeItem.menus[1].image+')' : ''}">
  237. <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>
  238. </a>
  239. <a ng-if="activeItem.menus[2]" href="{{activeItem.menus[2].url}}" ng-style="{'background-image': activeItem.menus[2].image ? 'url('+activeItem.menus[2].image+')' : ''}">
  240. <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>
  241. </a>
  242. </li>
  243. <li ng-if="activeItem.menus[3]" class="nav-group-item">
  244. <a href="{{activeItem.menus[3].url}}" ng-style="{'background-image': activeItem.menus[3].image ? 'url('+activeItem.menus[3].image+')' : ''}">
  245. <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>
  246. </a>
  247. </li>
  248. </ul>
  249. </div>
  250. <div class="js-quickmenu nav-menu-path rotate-nav has-nav-4" ng-if="activeItem.navStyle == 4">
  251. <div class="nav-group">
  252. <div class="nav-group-item on" ng-repeat="menu in activeItem.menus">
  253. <a href="{{menu.url}}" ng-style="{'background-image': menu.image ? 'url('+menu.image+')' : ''}">
  254. <i ng-hide="menu.image" class="fa" ng-style="{'color' : menu.icon.color}" ng-class="menu.icon.name"></i>
  255. </a>
  256. </div>
  257. </div>
  258. <div class="nav-home nav-group-item js-quickmenu-toggle">
  259. <a href="javascript:;" style="background-image:url(./resource/images/app/centerbtn.png);"></a>
  260. </div>
  261. </div>
  262. <div class="js-quickmenu nav-menu-sides rotate-nav has-nav-4" ng-if="activeItem.navStyle == 5">
  263. <div class="nav-group">
  264. <div class="nav-group-item on" ng-repeat="menu in activeItem.menus">
  265. <a href="{{menu.url}}" ng-style="{'background-image': menu.image ? 'url('+menu.image+')' : ''}">
  266. <i ng-hide="menu.image" class="fa" ng-style="{'color' : menu.icon.color}" ng-class="menu.icon.name"></i>
  267. </a>
  268. </div>
  269. </div>
  270. <div class="main-nav">
  271. <div class="nav-group-item pull-left">
  272. <a href="{{activeItem.extend[0].url}}" ng-style="{'background-image': activeItem.extend[0].image ? 'url('+activeItem.extend[0].image+')' : ''}">
  273. <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>
  274. </a>
  275. </div>
  276. <div class="nav-home nav-group-item js-quickmenu-toggle">
  277. <a href="javascript:;" style="background-image:url(./resource/images/app/centerbtn.png);"></a>
  278. </div>
  279. <div class="nav-group-item pull-right">
  280. <a href="{{activeItem.extend[1].url}}" ng-style="{'background-image': activeItem.extend[1].image ? 'url('+activeItem.extend[1].image+')' : ''}">
  281. <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>
  282. </a>
  283. </div>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. <div class="app-side">
  290. {if $type == '2'}
  291. <div class="panel we7-panel" style="margin-bottom:15px; padding-bottom:0;">
  292. <div class="panel-body">
  293. <div>将导航应用在以下页面:</div>
  294. <div style="margin:10px 0;">
  295. <input type="checkbox" id="position-1" name="position" ng-model="activeItem.position.homepage" />
  296. <label class="checkbox-inline" for="position-1">微站主页</label>
  297. <input type="checkbox" id="position-2" name="position" ng-model="activeItem.position.page" />
  298. <label class="checkbox-inline" for="position-2">微页面</label>
  299. <input type="checkbox" id="position-3" name="position" ng-model="activeItem.position.article" />
  300. <label class="checkbox-inline" for="position-3"> 文章及分类</label>
  301. </div>
  302. <div>将导航隐藏在以下模块: <a ng-click="showSearchModules()" href="javascript:;">选择模块</a></div>
  303. <div>
  304. <div class="form-control-static">
  305. <label class="label label-warning" ng-show="!hasIgnoreModules">未设置,将在全部模块中显示</label>
  306. <label style="margin-right:5px;" class="label label-success" ng-show="hasIgnoreModules" ng-repeat="module in activeItem.ignoreModules">{{module.title}}</label>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. {/if}
  312. <div class="app-shopNav-edit" style="display:none;">
  313. <div class="arrow-left"></div>
  314. <div class="inner">
  315. <div class="panel we7-panel form-horizontal">
  316. <div class="panel-body">
  317. <div class="shopNav-edit-header clearfix">
  318. <div class="pull-right">
  319. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#shop-nav-modal">修改模板</button>
  320. </div>
  321. <div>当前模板: 微信公众号自定义菜单模板</div>
  322. </div>
  323. <!--微信公众号自定义菜单模板:shopNav-wx-->
  324. <div class="shopNav-wx" ng-show="activeItem.navStyle == 1">
  325. <div class="card" ng-init="$parentIndex = $index" ng-repeat="menu in activeItem.menus">
  326. <div class="btns">
  327. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  328. </div>
  329. <div class="nav-region">
  330. <div class="first-nav">
  331. <h3>一级导航</h3>
  332. <div class="alert">
  333. <div class="form-group">
  334. <label class="control-label col-xs-3">标题</label>
  335. <div class="col-xs-9">
  336. <input type="text" class="form-control" name="" value="" ng-model="menu.title" />
  337. </div>
  338. </div>
  339. <div class="form-group">
  340. <label class="control-label col-xs-3">链接到</label>
  341. <div class="col-xs-9 ">
  342. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  343. </div>
  344. </div>
  345. </div>
  346. </div>
  347. <div class="second-nav">
  348. <h4>二级导航</h4>
  349. <div class="alert" ng-repeat="submenu in menu.submenus">
  350. <div class="del">
  351. <a href="javascript:;" ng-click="removeSubMenu($parentIndex, submenu)"><i class="fa fa-times"></i></a>
  352. </div>
  353. <div class="form-group">
  354. <label class="control-label col-xs-3">标题</label>
  355. <div class="col-xs-9">
  356. <input type="text" class="form-control" name="" ng-model="submenu.title">
  357. </div>
  358. </div>
  359. <div class="form-group">
  360. <label class="control-label col-xs-3">链接到</label>
  361. <div class="col-xs-9 ">
  362. <div we7-linker we7-my-url="submenu.url" we7-my-title="submenu.title"></div>
  363. </div>
  364. </div>
  365. </div>
  366. <div ng-show="menu.submenus.length < 5" ng-click="menu.submenus.length >= 5 ? '' : addSubMenu(menu);" class="add-shopNav">+ 添加二级导航</div>
  367. <!--最多可添加5个-->
  368. </div>
  369. </div>
  370. </div>
  371. <div ng-show="activeItem.menus.length < 3" class="add-shopNav text-center" ng-click="activeItem.menus.length >= 3 ? '' : addMenu();">+添加一级导航</div>
  372. <!--最多添加三个导航-->
  373. </div>
  374. <!--end微信公众号自定义菜单模板-->
  375. <!--APP导航样式:shopNav-app-->
  376. <div class="shopNav-app" ng-show="activeItem.navStyle == 2">
  377. <div class="form-group" style="border-bottom:1px solid #e5e5e5; padding:0 0 15px 0; margin:10px 0 0 0;">
  378. <label class="col-xs-3 control-label">页面颜色</label>
  379. <div class="col-xs-9 ">
  380. <div we7-colorpicker we7-my-color="activeItem.bgColor" we7-my-default-color="'#2B2D30'"></div>
  381. </div>
  382. </div>
  383. <div class="card" ng-repeat="menu in activeItem.menus">
  384. <div class="btns">
  385. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  386. </div>
  387. <div class="nav-img-group">
  388. <div class="clearfix">
  389. <div class="nav-img-normal pull-left">
  390. <p>普通:</p>
  391. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  392. </div>
  393. <div class="nav-img-highlight pull-left">
  394. <p>高亮:</p>
  395. <div we7-iconer we7-my-image="menu.hoverimage" we7-my-icon="menu.hovericon">选择</div>
  396. </div>
  397. </div>
  398. <div class="help-block">图片尺寸要求:不大于128*100像素,支持PNG格式</div>
  399. </div>
  400. <div class="form-group">
  401. <label class="control-label col-xs-3">标题</label>
  402. <div class="col-xs-9">
  403. <input type="text" class="form-control" name="" ng-model="menu.title">
  404. </div>
  405. </div>
  406. <div class="form-group">
  407. <label class="control-label col-xs-3">链接到</label>
  408. <div class="col-xs-9 ">
  409. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  410. </div>
  411. </div>
  412. </div>
  413. <div class="add-shopNav text-center" ng-show="activeItem.menus.length < 5" ng-click="activeItem.menus.length >= 5 ? '' : addMenu();">+添加导航</div>
  414. </div>
  415. <!--end APP导航样式-->
  416. <!--带购物车导航模板-->
  417. <div class="shopNav-cart" ng-show="activeItem.navStyle == 3">
  418. <div class="form-group" style="border-bottom:1px solid #e5e5e5; padding:0 0 15px 0; margin:0 0 10px 0;">
  419. <label class="col-xs-3 control-label">页面颜色</label>
  420. <div class="col-xs-9">
  421. <div we7-colorpicker we7-my-color="activeItem.bgColor" we7-my-default-color="'#2B2D30'"></div>
  422. </div>
  423. </div>
  424. <p>添加中间主图标</p>
  425. <div class="card">
  426. <div class="nav-img-group">
  427. <div class="clearfix">
  428. <div class="nav-img-normal pull-left">
  429. <p>普通:</p>
  430. <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>
  431. </div>
  432. <div class="nav-img-highlight pull-left">
  433. <p>高亮:</p>
  434. <div we7-iconer we7-my-image="activeItem.extend[0].hoverimage" we7-my-icon="activeItem.extend[0].hovericon">选择</div>
  435. </div>
  436. </div>
  437. <div class="help-block">图片尺寸要求:不大于128*100像素,支持PNG格式</div>
  438. </div>
  439. <div class="form-group">
  440. <label class="control-label col-xs-3">链接到</label>
  441. <div class="col-xs-9 "><div we7-linker we7-my-url="activeItem.extend[0].url" we7-my-title="activeItem.extend[0].title"></div></div>
  442. </div>
  443. </div>
  444. <p>添加两侧图标</p>
  445. <div class="help-block">此导航模板建议您用两个或者四个自定义图标效果图最佳哦!</div>
  446. <div class="card" ng-repeat="menu in activeItem.menus">
  447. <div class="nav-img-group">
  448. <div class="btns">
  449. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  450. </div>
  451. <div class="clearfix">
  452. <div class="nav-img-normal pull-left">
  453. <p>普通:</p>
  454. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  455. </div>
  456. <div class="nav-img-highlight pull-left">
  457. <p>高亮:</p>
  458. <div we7-iconer we7-my-image="menu.hoverimage" we7-my-icon="menu.hovericon">选择</div>
  459. </div>
  460. </div>
  461. <div class="help-block">图片尺寸要求:不大于128*100像素,支持PNG格式</div>
  462. </div>
  463. <div class="form-group">
  464. <label class="control-label col-xs-3">链接到</label>
  465. <div class="col-xs-9 ">
  466. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  467. </div>
  468. </div>
  469. </div>
  470. <div class="add-shopNav text-center" ng-show="activeItem.menus.length < 4" ng-click="activeItem.menus.length >= 4 ? '' : addMenu();">+添加导航</div>
  471. </div>
  472. <!--end 带购物车导航模板-->
  473. <!--Path展开形式导航模板-->
  474. <div class="shopNav-path" ng-show="activeItem.navStyle == 4">
  475. <form class="form-horizontal" action="" method="post">
  476. <p class="help-block">此导航模板建议您用三个自定义图标效果最佳哦!</p>
  477. <div class="card" ng-repeat="menu in activeItem.menus">
  478. <div class="btns"><a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a></div>
  479. <div class="nav-img-group">
  480. <div class="clearfix">
  481. <div class="nav-img-normal pull-left">
  482. <p>普通:</p>
  483. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  484. </div>
  485. </div>
  486. <div class="help-block">图片尺寸要求:不大于128*100像素,支持PNG格式</div>
  487. </div>
  488. <div class="form-group">
  489. <label class="control-label col-xs-3">链接到</label>
  490. <div class="col-xs-9 "><div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div></div>
  491. </div>
  492. </div>
  493. <div class="add-shopNav text-center" ng-show="activeItem.menus.length < 4" ng-click="activeItem.menus.length >= 4 ? '' : addMenu();">+添加导航</div>
  494. <!--最多可添加4个-->
  495. </form>
  496. </div>
  497. <!--end Path展开形式导航模板-->
  498. <!--两侧展开导航模板-->
  499. <div class="shopNav-sides" ng-show="activeItem.navStyle == 5">
  500. <form class="form-horizontal" action="" method="post">
  501. <p>添加两侧一级图标</p>
  502. <div class="card">
  503. <div class="nav-img-group">
  504. <div class="clearfix">
  505. <div class="nav-img-normal pull-left">
  506. <p>普通:</p>
  507. <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>
  508. </div>
  509. </div>
  510. <div class="help-block">图片尺寸要求:不大于128*100像素,支持PNG格式</div>
  511. </div>
  512. <div class="form-group">
  513. <label class="control-label col-xs-3">链接到</label>
  514. <div class="col-xs-9 ">
  515. <div we7-linker we7-my-url="activeItem.extend[0].url" we7-my-title="activeItem.extend[0].title"></div>
  516. </div>
  517. </div>
  518. </div>
  519. <div class="card">
  520. <div class="nav-img-group">
  521. <div class="clearfix">
  522. <div class="nav-img-normal pull-left">
  523. <p>普通:</p>
  524. <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>
  525. </div>
  526. </div>
  527. <div class="help-block">图片尺寸要求:不大于128*100像素,支持PNG格式</div>
  528. </div>
  529. <div class="form-group">
  530. <label class="control-label col-xs-3">链接到</label>
  531. <div class="col-xs-9 ">
  532. <div we7-linker we7-my-url="activeItem.extend[1].url" we7-my-title="activeItem.extend[1].title"></div>
  533. </div>
  534. </div>
  535. </div>
  536. <p>添加中间二级标题</p>
  537. <p class="help-block">此导航模板建议您用四个自定义图标效果最佳哦!</p>
  538. <div class="card" ng-repeat="menu in activeItem.menus">
  539. <div class="btns">
  540. <a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
  541. </div>
  542. <div class="nav-img-group">
  543. <div class="clearfix">
  544. <div class="nav-img-normal pull-left">
  545. <p>普通:</p>
  546. <div we7-iconer we7-my-image="menu.image" we7-my-icon="menu.icon" we7-my-icon-color="menu.icon.color">选择</div>
  547. </div>
  548. </div>
  549. <div class="help-block">图片尺寸要求:不大于128*100像素,支持PNG格式</div>
  550. </div>
  551. <div class="form-group">
  552. <label class="control-label col-xs-3">链接到</label>
  553. <div class="col-xs-9 ">
  554. <div we7-linker we7-my-url="menu.url" we7-my-title="menu.title"></div>
  555. </div>
  556. </div>
  557. </div>
  558. <div class="add-shopNav text-center" ng-show="activeItem.menus.length < 4" ng-click="activeItem.menus.length >= 4 ? '' : addMenu();">+添加导航</div>
  559. <!--最多可添加4个-->
  560. </form>
  561. </div>
  562. <!--end 两侧展开导航模板-->
  563. </div>
  564. </div>
  565. </div>
  566. </div>
  567. </div>
  568. <nav class="navbar navbar-default navbar-uc" role="navigation">
  569. <div class=" text-center we7-margin-vertical-sm">
  570. <a class="btn btn-primary js-editor-submit btn-submit" href="javascript:;">保存</a>
  571. </div>
  572. </nav>
  573. <!-- <div class="shop-preview col-sm-12">
  574. <div class="text-center alert alert-warning">
  575. <a class="btn btn-primary js-editor-submit" href="javascript:;">保存</a>
  576. </div>
  577. </div>-->
  578. <!--选择导航模板模态框-->
  579. <div class="modal fade" id="shop-nav-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  580. <div class="modal-dialog">
  581. <div class="modal-content">
  582. <div class="modal-header">
  583. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  584. <h4 class="modal-title" id="myModalLabel">选择导航模板</h4>
  585. </div>
  586. <div class="modal-body clearfix">
  587. <div class="alert">
  588. <input type="radio" id="nav_style" name="nav_style" value="1" ng-checked="activeItem.navStyle == 1">
  589. <label class="radio-inline" for="nav_style">微信公众号自定义菜单样式</label>
  590. <div class="wx-example"></div>
  591. </div>
  592. <div class="alert">
  593. <input type="radio" id="nav_style-1" name="nav_style" value="2" ng-checked="activeItem.navStyle == 2">
  594. <label class="radio-inline" for="nav_style-1">APP导航模板1(图标及底色都可配置)</label>
  595. <div class="app-example"></div>
  596. </div>
  597. <div class="alert">
  598. <input type="radio" id="nav_style-2" name="nav_style" value="3" ng-checked="activeItem.navStyle == 3">
  599. <label class="radio-inline" for="nav_style-2">APP导航模板2</label>
  600. <div class="cart-example"></div>
  601. </div>
  602. <div class="col-xs-6" style="padding-left:0;">
  603. <div class="alert">
  604. <input type="radio" id="nav_style-3" name="nav_style" value="4" ng-checked="activeItem.navStyle == 4">
  605. <label class="radio-inline" for="nav_style-3">Path展开形式导航</label>
  606. <div class="path-example"></div>
  607. </div>
  608. </div>
  609. <div class="col-xs-6" style="padding-right:0;">
  610. <div class="alert">
  611. <input type="radio" id="nav_style-4" name="nav_style" value="5">
  612. <label class="radio-inline" for="nav_style-4">两侧展开形式导航</label>
  613. <div class="sides-example"></div>
  614. </div>
  615. </div>
  616. </div>
  617. <div class="modal-footer">
  618. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  619. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="selectNavStyle()">确定</button>
  620. </div>
  621. </div>
  622. </div>
  623. </div>
  624. <!--选择模块模态框-->
  625. <div class="modal fade" id="shop-modules-modal" tabindex="-1" role="dialog" aria-hidden="true">
  626. <div class="modal-dialog">
  627. <div class="modal-content">
  628. <div class="modal-header">
  629. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  630. <h4 class="modal-title">选择忽略模块</h4>
  631. </div>
  632. <div class="modal-body clearfix">
  633. <table class="table table-hover">
  634. <thead class="navbar-inner">
  635. <tr>
  636. <th style="width:70%;">标题</th>
  637. <th style="width:30%; text-align:right"></th>
  638. </tr>
  639. </thead>
  640. <tbody>
  641. {loop $modules $m}
  642. <tr>
  643. <td>{$m['title']}({$m['name']})</td>
  644. <td>
  645. <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>
  646. </td>
  647. </tr>
  648. {/loop}
  649. </tbody>
  650. </table>
  651. </div>
  652. <div class="modal-footer">
  653. <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
  654. </div>
  655. </div>
  656. </div>
  657. </div>
  658. </div>
  659. </div>
  660. </form>
  661. <script type="text/javascript">
  662. $(function(){
  663. require(['underscore'], function() {
  664. changeSwitch = function() {
  665. var clas = $('#switch').attr('class') == 'switch'? 'switch switchOn' : 'switch';
  666. $('#switch').attr('class', clas);
  667. status = clas == 'switch' ? 0 : 1;
  668. $('[name="status"]').val(status);
  669. }
  670. var activeItem = {php echo !empty($page['params']) ? $page['params'] : 'null'};
  671. angular.module('quickMenuApp').value('config', {
  672. 'activeItem' : activeItem,
  673. });
  674. angular.bootstrap($('#ng_quickmenu'), ['quickMenuApp']);
  675. $('.app-content').click(function(){
  676. return false;
  677. });
  678. });
  679. });
  680. </script>
  681. </div>
  682. {/if}
  683. {template 'common/footer'}