人人商城

fans.html 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. {template 'common/header'}
  2. <div class="we7-page-title">
  3. 粉丝管理
  4. </div>
  5. <ul class="we7-page-tab">
  6. {loop $active_sub_permission $active_menu}
  7. {if permission_check_account_user($active_menu['permission_name'], false) && (empty($active_menu['is_display']) || is_array($active_menu['is_display']) && in_array($_W['account']['type'], $active_menu['is_display']))}
  8. <li {if $do == $active_menu['active']}class="active"{/if}><a href="{$active_menu['url']}">{$active_menu['title']}</a></li>
  9. {/if}
  10. {/loop}
  11. </ul>
  12. {if $do == 'fans_sync_set'}
  13. <div class="alert alert-info">
  14. <p><i class="fa fa-exclamation-circle"></i> 此同步设置是指系统后台自动同步系统数据中已关注粉丝的基本信息,并非该公众号全部粉丝数据;</p>
  15. <p><i class="fa fa-exclamation-circle"></i> 如若想同步全部粉丝信息,请到菜单“粉丝”->“全部粉丝”,点击“同步全部粉丝信息”按钮!</p>
  16. </div>
  17. <div id="js-profile-sync" ng-controller="syncCtrl" ng-cloak>
  18. <table class="table we7-table table-hover table-form">
  19. <col width="140px " />
  20. <col />
  21. <col width="140px" />
  22. <tr>
  23. <th class="text-left" colspan="3">粉丝同步</th>
  24. </tr>
  25. <tr>
  26. <td >是否开启</td>
  27. <td>
  28. {{ syncSetting == 1 ? '开启' : '关闭' }}
  29. </td>
  30. <td class="text-center">
  31. <label>
  32. <input name="" class="form-control" type="checkbox" style="display: none;">
  33. <div ng-class="syncSetting == 1 ? 'switch switchOn' : 'switch'" ng-click="setSync()"></div>
  34. </label>
  35. </td>
  36. </tr>
  37. </table>
  38. </div>
  39. <script>
  40. angular.module('profileApp').value('config', {
  41. 'syncSetting' : "{$sync_setting}",
  42. 'saveSyncSetting' : "{php echo url('mc/fans/fans_sync_set', array('operate' => 'save_setting'))}"
  43. });
  44. angular.bootstrap($('#js-profile-sync'), ['profileApp']);
  45. </script>
  46. {else}
  47. <div id="main" ng-controller="DisplayCtrl" ng-cloak>
  48. <div class="we7-page-search we7-padding-bottom clearfix">
  49. <div class="pull-right">
  50. <button class="btn btn-primary we7-padding-horizontal add-group" data-show="popover">+添加分组</button>
  51. </div>
  52. <form action="" method="get" class="form-inline" role="form">
  53. <input type="hidden" name="c" value="mc">
  54. <input type="hidden" name="a" value="fans">
  55. <div class="form-group">
  56. <div class="form-controls">
  57. <select name="follow" class="we7-select" >
  58. <option value="1" {if $follow == 1}selected{/if}>已关注</option>
  59. <option value="2" {if $follow == 2}selected{/if}>取消关注</option>
  60. </select>
  61. </div>
  62. </div>
  63. <div class="form-group we7-margin-left-sm">
  64. <div class="input-group col-sm-12" >
  65. <div class="input-group-btn">
  66. <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button" aria-expanded="false"> {{ searchMod == 1 ? '精确' : '模糊'}}
  67. <span class="caret"></span>
  68. </button>
  69. <ul role="menu" class="dropdown-menu">
  70. <li>
  71. <a href="javascript:;" ng-click="switchSearchMod(1)">精确</a>
  72. </li>
  73. <li>
  74. <a href="javascript:;" ng-click="switchSearchMod(2)">模糊</a>
  75. </li>
  76. </ul>
  77. </div>
  78. <input name="search_mod" type="text" style="display:none;" ng-model="searchMod">
  79. <input name="nickname" value="{$nickname}" class="form-control" placeholder="" type="text">
  80. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  81. </div>
  82. </div>
  83. <input name="tag" value="{$tag}" type="hidden">
  84. </form>
  85. </div>
  86. <div class="popover-add-group" style="display: none;">
  87. <div class="input-group" style="width: 250px;">
  88. <p>标签名称</p>
  89. <input name="addtag" value="" class="form-control" placeholder="分组名称" type="text">
  90. </div>
  91. <div class="popover-btn we7-margin-top-sm">
  92. <a href="javascript:;" class="btn btn-primary we7-margin-right-sm" onclick="addTag()">确定</a>
  93. <a href="javascript:;" class="btn btn-default popover-hide">取消</a>
  94. </div>
  95. </div>
  96. <div class="fans-content">
  97. <div class="fans-list">
  98. <div class="panel we7-panel">
  99. <div class="panel-heading">
  100. {if empty($tag)}全部{else}{$fans_tag[$tag]['name']}
  101. <a href="javascript:;" class="color-default fans-group-edit we7-margin-left-sm edit-group" data-show='popover'>重命名</a>
  102. <a href="javascript:;" class="color-default fans-group-del we7-margin-left-sm" data-show='popover'>删除</a>
  103. {/if}
  104. <div class="pull-right we7-form">
  105. <input id='credit1' type="radio" name='1' {if $type == ''}checked='checked'{/if} onclick="changetype('')" />
  106. <label for="credit1">全部</label>
  107. <input id='credit3' type="radio" name='1' {if $type == 'bind'}checked='checked'{/if} onclick="changetype('bind')"/>
  108. <label for="credit3">
  109. 会员
  110. </label>
  111. <script>
  112. changetype = function(type) {
  113. if (type == '') {
  114. url = "{php echo url('mc/fans', array('follow' => $follow, 'nickname' => $nickname, 'tag' => $tag, 'type' => ''))}"
  115. } else {
  116. url = "{php echo url('mc/fans', array('follow' => $follow, 'nickname' => $nickname, 'tag' => $tag, 'type' => 'bind'))}"
  117. }
  118. location.href = url;
  119. }
  120. </script>
  121. </div>
  122. </div>
  123. <div class="panel-body">
  124. <table class="table we7-table table-hover fans-info vertical-middle">
  125. <col width="20px" />
  126. <col width="60px"/>
  127. <col />
  128. <col />
  129. <tr>
  130. <th class="text-left" colspan="5">
  131. <div class="we7-form">
  132. <input id='checkall' type="checkbox" we7-check-all="1" name='openid[]' onclick="checkall()"/>
  133. <label for="checkall">全选 </label>
  134. <script>
  135. checkall = function() {
  136. check = $('#checkall').prop('checked') == true ? 'checked' : '';
  137. $('.openid').prop('checked', check);
  138. }
  139. </script>
  140. <a href="javascript:;" class="btn btn-primary test we7-margin-left-sm batch-group" data-show='popover' >打标签</a>
  141. <a href="javascript:;" class="btn btn-default we7-margin-left-sm" ng-click="sync('check')">同步选中信息</a>
  142. <a href="javascript:;" class="btn btn-default we7-margin-left-sm" ng-click="downloadFans()">同步全部信息</a>
  143. <span class="pull-right color-gray" data-toggle="modal" data-target="#sync-setting" style="cursor:pointer;position: relative;top:4px">
  144. <i class="wi wi-appsetting"></i> 同步设置
  145. </span>
  146. <div class="modal fade" id="sync-setting" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  147. <div class="modal-dialog">
  148. <div class="modal-content">
  149. <div class="modal-header">
  150. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  151. <h4 class="modal-title" id="myModalLabel">同步设置</h4>
  152. </div>
  153. <div class="modal-body">
  154. <div class="form-group">
  155. <label class="col-sm-2 control-label" style="text-align:left;">同步信息设置</label>
  156. <div class="col-sm-8 form-control-static" ng-init="sync_member = {$sync_member}">
  157. <input type="radio" name="sync_member" id="status-0" value="0" ng-checked="sync_member == 0" ng-click="sync_member=0">
  158. <label class="radio-inline" for="status-0">
  159. 仅同步粉丝信息
  160. </label>
  161. <input type="radio" name="sync_member" id="status-1" value="1" ng-checked="sync_member == 1" ng-click="sync_member=1">
  162. <label class="radio-inline" for="status-1">
  163. 同步粉丝,会员信息
  164. </label>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="modal-footer">
  169. <button type="button" class="btn btn-default" data-dismiss="modal">取 消</button>
  170. <button type="button" class="btn btn-primary" ng-click="syncMember()">保 存</button>
  171. </div>
  172. </div><!-- /.modal-content -->
  173. </div><!-- /.modal -->
  174. </div>
  175. </div>
  176. </th>
  177. </tr>
  178. {loop $fans_list $fan}
  179. <tr>
  180. <td>
  181. <div class="we7-form">
  182. <input id='option[{$fan['fanid']}]' type="checkbox" we7-check-all="1" class="openid" name='openid[]' value="{$fan['openid']}"/>
  183. <label for="option[{$fan['fanid']}]"> </label>
  184. </div>
  185. </td>
  186. <td style="overflow-x: hidden;">
  187. <a href="{php echo url('mc/chats', array('openid' => $fan['openid']))}" target="_blank" class="avatar">
  188. <img src="{php echo tomedia($fan['tag']['headimgurl'])}" width="48" />
  189. </a>
  190. </td>
  191. <td>
  192. <p><a href="{php echo url('mc/chats', array('openid' => $fan['openid']))}" target="_blank" class="nick-name" data-fanid="{$fan['fanid']}" data-group="{$fan['groupid']}">{$fan['nickname']}</a></p>
  193. {if !empty($fan['uid'])}
  194. <p class="remark-name"><a href="{php echo url('mc/member/base_information', array('uid' => $fan['uid']));}">
  195. {if !empty($fan['member']['realname'])}
  196. {$fan['member']['realname']}
  197. {else}
  198. {$fan['uid']}
  199. {/if}
  200. </a> {if !empty($fan['member']['mobile'])}<i class="wi wi-iphone fans-tel"></i>{/if}</p>
  201. {/if}
  202. <div class="fans-tag-area">
  203. <span class="tag-list get-fans-tag js-group" data-id="{$fan['fanid']}" data-show='popover'>
  204. {loop $fan['tag_show'] $k $tag_show}
  205. {if $k == 0 && $tag_show == '无标签'}
  206. 无标签
  207. {else}
  208. <a href="javascript:;" class="label label-primary">{$tag_show}</a>
  209. {/if}
  210. {/loop}
  211. <span class="tag-btn put-group" >
  212. <i class="caret"></i>
  213. </span>
  214. </span>
  215. </div>
  216. </td>
  217. <td class="text-right">
  218. <div class="send-message">
  219. {if empty($fan['uid'])}
  220. <a href="javascript:;" class="color-default" data-toggle="modal" data-target="#register_member" ng-click="registerMember('{$fan['openid']}')">注册为会员</a>
  221. {/if}
  222. <a href="{php echo url('mc/chats', array('openid' => $fan['openid']))}" target="_blank" class="color-default">
  223. 发送消息<span class="wi wi-angle-right"></span>
  224. </a>
  225. </div>
  226. {if empty($fan['follow'])}
  227. <p>取消关注:{if $fan['unfollowtime'] == 0}无{else}{php echo date('Y-m-d H:i:s', $fan['unfollowtime'])}{/if}
  228. {else}
  229. <p>关注:{php echo date('Y-m-d H:i:s', $fan['followtime'])}</p>
  230. {/if}
  231. </td>
  232. </tr>
  233. {/loop}
  234. </table>
  235. </div>
  236. </div>
  237. </div>
  238. <input type="hidden" name="fanid" />
  239. <div class="fans-group-list">
  240. <dl>
  241. <dt class="fans-group-item">
  242. <a href="{php echo url('mc/fans', array('follow' => $follow, 'nickname' => $nickname, 'tag' => 0))}">全部用户({$fans['total']})</a>
  243. </dt>
  244. {loop $fans_tag $tag_info}
  245. <dd class="fans-group-item {if $tag == $tag_info['id']}active{/if}">
  246. <a href="{php echo url('mc/fans', array('follow' => $follow, 'nickname' => $nickname, 'tag' => $tag_info['id']))}">{$tag_info['name']}({$tag_info['count']})</a>
  247. </dd>
  248. {/loop}
  249. </dl>
  250. </div>
  251. <div class="modal fade" id="register_member" tabindex="1" role="dialog" aria-labelledby="myModalLabel">
  252. <div class="we7-modal-dialog modal-dialog we7-form" role="document">
  253. <div class="modal-content">
  254. <div class="modal-header">
  255. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  256. <h4 class="modal-title" id="address-add">注册为会员</h4>
  257. </div>
  258. <div class="modal-body">
  259. <div class="form-group">
  260. <label class="col-sm-2 control-label">新密码</label>
  261. <div class="col-sm-9 col-xs-12">
  262. <input class="form-control" type="password" ng-model="register.password">
  263. </div>
  264. </div>
  265. <div class="form-group">
  266. <label class="col-sm-2 control-label">确认密码</label>
  267. <div class="col-sm-9 col-xs-12">
  268. <input class="form-control" type="password" ng-model="register.repassword">
  269. </div>
  270. </div>
  271. <input class="form-control" type="hidden" ng-model="register.openid">
  272. <div class="modal-footer">
  273. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="register()">注册</button>
  274. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. <div class="popover-edit-group" style="display: none;">
  282. <div class="input-group" style="width: 250px;">
  283. <p>标签名称</p>
  284. <input name="edittag" value="" class="form-control" placeholder="分组名称" type="text">
  285. </div>
  286. <div class="popover-btn we7-margin-top-sm">
  287. <a href="javascript:;" class="btn btn-primary we7-margin-right-sm" onclick="editTagName()">确定</a>
  288. <a href="javascript:;" class="btn btn-default popover-hide">取消</a>
  289. </div>
  290. </div>
  291. <div class="popover-del-group" style="display: none;">
  292. <div class="input-group" style="width: 250px;">
  293. <p>删除标签后,该标签下的所有用户将失去该标签属性。是否确定删除?</p>
  294. </div>
  295. <div class="popover-btn we7-margin-top-sm">
  296. <a href="javascript:;" class="btn btn-primary we7-margin-right-sm" onclick="delTag()">确定</a>
  297. <a href="javascript:;" class="btn btn-default popover-hide">取消</a>
  298. </div>
  299. </div>
  300. <div class="popover-group-list" >
  301. </div>
  302. <div class="text-right we7-margin-top">
  303. {$pager}
  304. </div>
  305. </div>
  306. <script>
  307. $("[data-show='popover']").on('show.bs.popover', function () {
  308. $("[aria-describedby]").click();
  309. });
  310. $(function(){
  311. var uid = '';
  312. $(".add-group").popover({
  313. placement : 'bottom',
  314. html : true,
  315. template : '<div class="popover we7-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',
  316. content : $('.popover-add-group').html(),
  317. });
  318. $(".edit-group").popover({
  319. placement : 'bottom',
  320. html : true,
  321. template : '<div class="popover we7-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',
  322. content : $('.popover-edit-group').html(),
  323. });
  324. $(".fans-group-del").popover({
  325. placement : 'bottom',
  326. html : true,
  327. template : '<div class="popover we7-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',
  328. content : $('.popover-del-group').html(),
  329. });
  330. $(".put-group").popover({
  331. placement : 'bottom',
  332. html : true,
  333. template : '<div class="popover we7-popover" role="tooltip" data-show="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content" ></div></div>',
  334. content : '' +
  335. '<div class="we7-form">' +
  336. '<div class="form-group row">'+
  337. {loop $fans_tag $tags}
  338. '<div class="col-sm-4" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"><input id="option{$tags['id']}" data-tag="{$tags['id']}" type="checkbox" name="tagname" value="{$tags['id']}" />' +
  339. '<label for="option{$tags['id']}">{$tags['name']} </label>' +
  340. '</div>' +
  341. {/loop}
  342. '</div>' +
  343. '</div>' +
  344. '<div class="popover-btn we7-margin-top-sm">' +
  345. '<a href="javascript:;" class="btn btn-primary we7-margin-right-sm" onclick="editFansTag()">确定</a>' +
  346. '<a href="javascript:;" class="btn btn-default popover-hide">取消</a>' +
  347. '</div>',
  348. });
  349. $(".batch-group").popover({
  350. placement : 'bottom',
  351. html : true,
  352. template : '<div class="popover we7-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',
  353. content : '' +
  354. '<div class="we7-form">' +
  355. '<div class="form-group">'+
  356. {loop $fans_tag $tags}
  357. '<input id="option{$tags['id']}" data-tag="{$tags['id']}" type="checkbox" name="tagname" value="{$tags['id']}" />' +
  358. '<label for="option{$tags['id']}">{$tags['name']} </label>' +
  359. {/loop}
  360. '</div>' +
  361. '</div>' +
  362. '<div class="popover-btn we7-margin-top-sm">' +
  363. '<a href="javascript:;" class="btn btn-primary we7-margin-right-sm" onclick="batchEditFansTag()">确定</a>' +
  364. '<a href="javascript:;" class="btn btn-default popover-hide">取消</a>' +
  365. '</div>',
  366. });
  367. $('body').on('click', '.popover-hide', function(){
  368. $("[data-show='popover']").popover('hide');
  369. });
  370. });
  371. $('.get-fans-tag').click(function() {
  372. fanid = $(this).data('id');
  373. groupid = $('[data-fanid="'+fanid+'"]').data('group');
  374. group = [];
  375. groupid = groupid.toString();
  376. group = groupid.split(',');
  377. $('.check-tag').attr('checked', '');
  378. for (var i = 0; i < group.length; i++) {
  379. $('[data-tag="'+group[i]+'"]').attr("checked",'checked');
  380. }
  381. $('[name="fanid"]').val(fanid);
  382. });
  383. batchEditFansTag = function() {
  384. $("[data-show='popover']").popover('hide');
  385. openids = $('.openid');
  386. openid = [];
  387. for(k in openids) {
  388. if (openids[k].checked) {
  389. openid.push(openids[k].value);
  390. }
  391. }
  392. tags = $('[name="tagname"]:checked');
  393. checktags = [];
  394. for(k in tags) {
  395. if (tags[k].checked) {
  396. checktags.push(tags[k].value);
  397. }
  398. }
  399. if (checktags.length > 3) {
  400. util.message('每个粉丝最多打3个标签', '', 'info');
  401. return false;
  402. }
  403. if (openid.length < 1) {
  404. util.message('请选择粉丝', '', 'info');
  405. return false;
  406. }
  407. if (checktags.length < 1) {
  408. util.message('请选择标签', '', 'info');
  409. return false;
  410. }
  411. $.post("{php echo url('mc/fans/batch_edit_fans_tag')}", {'openid' : openid, 'tag' : checktags}, function(data) {
  412. data = $.parseJSON(data);
  413. if (data.message.errno == 0) {
  414. util.message('修改成功', "{php echo url('mc/fans')}", 'success');
  415. } else {
  416. util.message(data.message.message.message, '', 'info');
  417. }
  418. });
  419. }
  420. editFansTag = function() {
  421. $("[data-show='popover']").popover('hide');
  422. tags = $('[name="tagname"]:checked');
  423. checktags = [];
  424. for(k in tags) {
  425. if (tags[k].checked) {
  426. checktags.push(tags[k].value);
  427. }
  428. }
  429. fanid = $('[name="fanid"]').val();
  430. $.post("{php echo url('mc/fans/edit_fans_tag')}", {'tags' : checktags, 'fanid' : fanid}, function(data) {
  431. data = $.parseJSON(data);
  432. if (data.message.errno == 0) {
  433. util.message('设置成功', "{php echo url('mc/fans', array('follow' => $follow, 'nickname' => $nickname, 'tag' => $tag, 'page' => $pageindex, 'search_mod' => $search_mod))}", 'success');
  434. } else {
  435. util.message(data.message.message, "", 'info');
  436. }
  437. });
  438. }
  439. editTagName = function() {
  440. $("[data-show='popover']").popover('hide');
  441. tag = "{$fans_tag[$tag]['id']}";
  442. tag_name = $('[name="edittag"]').val();
  443. $.post("{php echo url('mc/fans/edit_tagname')}", {'tag' : tag, 'tag_name' : tag_name}, function(data) {
  444. data = $.parseJSON(data);
  445. if (data.message.errno == 0){
  446. util.message('修改成功', "{php echo url('mc/fans')}", 'success');
  447. } else {
  448. util.message(data.message.message, '', 'info');
  449. }
  450. });
  451. }
  452. delTag = function() {
  453. $("[data-show='popover']").popover('hide');
  454. tag = "{$fans_tag[$tag]['id']}";
  455. $.post("{php echo url('mc/fans/del_tag')}", {'tag' : tag}, function(data) {
  456. data = $.parseJSON(data);
  457. if (data.message.errno == 0) {
  458. util.message('删除成功', "{php echo url('mc/fans')}", 'success');
  459. } else {
  460. util.message(data.message.message, "", 'info');
  461. }
  462. });
  463. $("[data-show='popover']").popover('hide');
  464. };
  465. addTag = function() {
  466. $("[data-show='popover']").popover('hide');
  467. tag = $('[name="addtag"]').val();
  468. $.post("{php echo url('mc/fans/add_tag')}", {'tag' : tag}, function(data) {
  469. data = $.parseJSON(data);
  470. if (data.message.errno != 0) {
  471. util.message(data.message.message, '', 'info');
  472. return false;
  473. } else {
  474. util.message('添加成功', "{php echo url('mc/fans', array('follow' => $follow, 'nickname' => $nickname, 'tag' => $tag, 'page' => $pageindex, 'search_mod' => $search_mod))}", 'ajax');
  475. return false;
  476. }
  477. });
  478. }
  479. window.onbeforeunload = function(e) {
  480. if(running) {
  481. return (e || window.event).returnValue = '正在进行微信素材数据同步,确定离开页面吗.';
  482. }
  483. }
  484. angular.module('fansApp').value('config', {
  485. 'addTagUrl' : "{php echo url('mc/fans/add_tag')}",
  486. 'syncAllUrl' : "{php echo url('mc/fans/download_fans')}",
  487. 'syncUrl' : "{php echo url('mc/fans/sync')}",
  488. 'syncMember' : "{php echo url('mc/fans/sync_member')}",
  489. 'msgUrl' : "{php echo url('mc/fans')}",
  490. 'searchMod' : "{$search_mod}",
  491. 'registerUrl' : "{php echo url('mc/fans/register')}"
  492. });
  493. angular.bootstrap($('#main'), ['fansApp']);
  494. </script>
  495. {/if}
  496. {template 'common/footer'}