123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700 |
- {template 'common/header'}
- {if $do == 'display'}
- <div class="we7-page-title">
- 应用权限套餐
- </div>
-
- <ul class="we7-page-tab">
- <li class="active"><a href="{php echo url('module/group/display') }">应用权限套餐列表 </a></li>
- </ul>
- <div class="js-system-module_group" ng-controller="moduleGroupCtrl" ng-cloak>
- <div class="combo-list">
- <div class="we7-page-search clearfix">
- {if permission_check_account_user('see_module_manage_system_group_add')}
- <div class="pull-right">
- <a href="{php echo url('module/group/post')}" class="btn btn-primary">+添加应用权限套餐</a>
- </div>
- {/if}
- <form action="" method="get" class="we7-form row">
- <div class="form-group we7-padding-none col-sm-4">
- <input type="hidden" name="c" value="module">
- <input type="hidden" name="a" value="group">
- <input type="hidden" name="do" value="display">
- <div class="input-group">
- <input class="form-control" name="name" value="{$_GPC['name']}" type="text" placeholder="名称" >
- <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
- </div>
- </div>
- </form>
- </div>
- <table class="table we7-table table-hover vertical-middle">
-
- <col width="180px" />
- <col width="70px"/>
- <col width="70px" />
- <col width="70px" />
- <col width="70px" />
- <col width="70px" />
- <col width="70px" />
- <col width="70px" />
- <col width="350px" />
- <tr>
- <th class="text-left">套餐名称</th>
- <th class="text-center"><i class="wi wi-wx-apply" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-wxapp-apply" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-wx-template" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-pc-apply" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-app-apply" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-xzapp-apply" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-aliapp-apply" style="font-size: 24px"></i></th>
- <th class="text-right">操作</th>
- </tr>
- {loop $modules_group_list $module_group}
- <tr >
- <td class="text-left">{$module_group['name']}</td>
- <td class="text-center"><span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="公众号应用个数">{php echo intval($module_group['account_num'])}</span></td>
- <td class="text-center"><span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="微信小程序应用个数">{php echo intval($module_group['wxapp_num'])}</span></td>
- <td class="text-center"><span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="模版个数">{php echo intval($module_group['template_num'])}</span></td>
- <td class="text-center"><span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="PC应用个数">{php echo intval($module_group['webapp_num'])}</span></td>
- <td class="text-center"><span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="APP应用个数">{php echo intval($module_group['phoneapp_num'])}</span></td>
- <td class="text-center"><span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="熊掌号应用个数">{php echo intval($module_group['xzapp_num'])}</span></td>
- <td class="text-center"><span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="支付宝小程序应用个数">{php echo intval($module_group['aliapp_num'])}</span></td>
- <td>
- <div class="link-group">
- <a href="javascript:;" class="color-default js-unfold" data-toggle="table-collapse" data-target="toggle-{$module_group['id']}" ng-click="changeText($event)">展开</a>
-
- {if $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER}
- <a href="{php echo url('module/group/post', array('id' => $module_group['id']))}">编辑套餐</a>
- <a href="{php echo url('module/group/delete', array('id' => $module_group['id']))}" class="del" onclick="return confirm('确定要删除套餐吗?')">删除</a>
- {/if}
-
-
-
- </div>
- </td>
- </tr>
- <tr class="collapse bg-light-gray" aria-expanded="true" data-id="toggle-{$module_group['id']}">
- <td colspan="10">
- <div class="col-sm-1 color-gray text-left we7-padding-none">公众号应用</div>
- <div class="col-sm-11">
- {loop $module_group['account_modules'] $module}
- <div class="col-sm-3 text-left text-over">
- <!--<img src="{$module['logo']}" style="width:50px;height:50px;">-->
- <!--<a href="">{$module['title']}</a>-->
- {if empty($module['main_module'])}
- <img src="{$module['logo']}" alt="">
- {$module['title']}
- {else}
- <span class="img">
- <img src="{$module['logo']}" alt="子应用icon" class="plugin-img"/>
- <img src="{$modules[$module['main_module']]['logo']}" alt="主应用icon" class="module-img"/>
- </span>
- {/if}
- </div>
- {/loop}
- </div>
- </td>
- </tr>
- <tr class="collapse bg-light-gray" aria-expanded="true" data-id="toggle-{$module_group['id']}">
- <td colspan="10">
- <div class="col-sm-1 color-gray text-left we7-padding-none">微信小程序应用</div>
- <div class="col-sm-11">
- {loop $module_group['wxapp_modules'] $wxapp}
- <div class="col-sm-3 text-left text-over">
- <img src="{$wxapp['logo']}">
- <a href="">{$wxapp['title']}</a>
- </div>
- {/loop}
- </div>
- </td>
- </tr>
- <tr class="collapse bg-light-gray" aria-expanded="true" data-id="toggle-{$module_group['id']}">
- <td colspan="10">
- <div class="col-sm-1 color-gray text-left we7-padding-none">PC应用</div>
- <div class="col-sm-11">
- {loop $module_group['webapp_modules'] $webapp}
- <div class="col-sm-3 text-left text-over">
- <img src="{$webapp['logo']}">
- <a href="">{$webapp['title']}</a>
- </div>
- {/loop}
- </div>
- </td>
- </tr>
-
- <tr class="collapse bg-light-gray" aria-expanded="true" data-id="toggle-{$module_group['id']}">
- <td colspan="10">
- <div class="col-sm-1 color-gray text-left we7-padding-none">APP应用</div>
- <div class="col-sm-11">
- {loop $module_group['phoneapp_modules'] $phoneapp}
- <div class="col-sm-3 text-left text-over">
- <img src="{$phoneapp['logo']}">
- <a href="">{$phoneapp['title']}</a>
- </div>
- {/loop}
- </div>
- </td>
- </tr>
-
- <tr class="collapse bg-light-gray" aria-expanded="true" data-id="toggle-{$module_group['id']}">
- <td colspan="10">
- <div class="col-sm-1 color-gray text-left we7-padding-none">熊掌号应用</div>
- <div class="col-sm-11">
- {loop $module_group['xzapp_modules'] $xzapp}
- <div class="col-sm-3 text-left text-over">
- <img src="{$xzapp['logo']}">
- <a href="">{$xzapp['title']}</a>
- </div>
- {/loop}
- </div>
- </td>
- </tr>
-
- <tr class="collapse bg-light-gray" aria-expanded="true" data-id="toggle-{$module_group['id']}">
- <td colspan="10">
- <div class="col-sm-1 color-gray text-left we7-padding-none">支付宝小程序应用</div>
- <div class="col-sm-11">
- {loop $module_group['aliapp_modules'] $aliapp}
- <div class="col-sm-3 text-left text-over">
- <img src="{$aliapp['logo']}">
- <a href="">{$aliapp['title']}</a>
- </div>
- {/loop}
- </div>
- </td>
- </tr>
-
- <tr class="collapse bg-light-gray" aria-expanded="true" data-id="toggle-{$module_group['id']}">
- <td colspan="10">
- <div class="col-sm-1 color-gray text-left we7-padding-none">模板</div>
- <div class="col-sm-11">
- {loop $module_group['templates'] $template}
- <div class="col-sm-3 text-left text-over">
- <i class="glyphicon glyphicon-th-large"></i>
- <a href="">{$template['title']}</a>
- </div>
- {/loop}
- </div>
- </td>
- </tr>
- {/loop}
- </table>
- </div>
- </div>
- <div class="pull-right">
- {$pager}
- </div>
- <script>
- angular.bootstrap($('.js-system-module_group'), ['moduleApp']);
- $('[data-toggle="table-collapse"]').on('click',function(){
- var id = '[data-id="'+$(this).data('target')+'"]';
- $(id).collapse('toggle');
- });
- </script>
- {elseif $do == 'post'}
- <div class="js-modulegroup-post" ng-controller="moduleGroupPostCtrl" ng-cloak>
- <div class="combo-list-add">
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{php echo url('module/group')}"><i class="wi wi-back-circle"></i> </a>
- <li>
- <a href="{php echo url('module/group') }">套餐应用列表</a>
- </li>
- <li>
- 添加套餐应用列表
- </li>
- </ol>
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-3">应用套餐名称</label>
- <div class="form-controls col-sm-8">
- <input type="text" ng-model="moduleGroup.name" class="form-control"/>
- </div>
- </div>
- </div>
- <div class="panel we7-panel">
- <div class="panel-heading">
- 选择公众号应用
- </div>
- <div class="panel-body we7-padding">
- <div class="row">
- <div class="col-sm-2 text-left" ng-repeat="module in groupHaveModuleApp" style="overflow: hidden">
- <img ng-src="{{ module.logo }}" alt="" style="width:33px;height:33px;" ng-if="module.main_module == ''">
- <span class="img" ng-if="module.main_module != ''">
- <img ng-src="{{ module.logo }}" alt="子应用icon" class="plugin-img"/>
- <img ng-src="{{ groupHaveModuleApp[module.main_module].main_module_logo || groupNotHaveModuleApp[module.main_module].main_module_logo }}" alt="主应用icon" class="module-img"/>
- </span>
- <span class="name">{{ module.title }}</span>
- <span class="del bg-default" ng-click="delHaveModule(module)">删除</span>
- </div>
- <div class="col-sm-2 add-more">
- <div class="we7-input-img input-more input-img">
- <a href="" class="input-addon" ng-click="addModule()">
- <span class="color-gray"></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="panel we7-panel">
- <div class="panel-heading">
- 选择微信小程序应用
- </div>
- <div class="panel-body we7-padding">
- <div class="row">
- <div class="col-sm-2 text-left" ng-repeat="module in groupHaveModuleWxapp" style="overflow: hidden">
- <img ng-src="{{ module.logo }}" alt="" class="img">{{ module.title }}
- <span class="del bg-default" ng-click="delHaveModuleWxapp(module)">删除</span>
- </div>
- <div class="col-sm-2 add-more">
- <div class="we7-input-img input-more input-img">
- <a href="" class="input-addon" ng-click="addModuleWxapp()">
- <span class="color-gray"></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="panel we7-panel">
- <div class="panel-heading">
- 选择模板
- </div>
- <div class="panel-body we7-padding">
- <div class="row">
- <div class="col-sm-2 text-left text-over" ng-repeat="template in groupHaveTemplate">
- <i class="wi wi-home"></i>
- <a href="">{{ template.title }}</a>
- <span class="del bg-default" ng-click="delHaveTemplate(template)">删除</span>
- </div>
- <div class="col-sm-2 add-more">
- <div class="we7-input-img input-more input-img">
- <a href="" class="input-addon" ng-click="adTemplate()">
- <span class="color-gray"></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="panel we7-panel">
- <div class="panel-heading">
- 选择PC应用
- </div>
- <div class="panel-body we7-padding">
- <div class="row">
- <div class="col-sm-2 text-left" ng-repeat="module in groupHaveModuleWebapp" style="overflow: hidden">
- <img ng-src="{{ module.logo }}" alt="" class="img">{{ module.title }}
- <span class="del bg-default" ng-click="delHaveModuleWebapp(module)">删除</span>
- </div>
- <div class="col-sm-2 add-more">
- <div class="we7-input-img input-more input-img">
- <a href="" class="input-addon" ng-click="addModuleWebapp()">
- <span class="color-gray"></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="panel we7-panel">
- <div class="panel-heading">
- 选择APP应用
- </div>
- <div class="panel-body we7-padding">
- <div class="row">
- <div class="col-sm-2 text-left" ng-repeat="module in groupHaveModulePhoneapp" style="overflow: hidden">
- <img ng-src="{{ module.logo }}" alt="" class="img">{{ module.title }}
- <span class="del bg-default" ng-click="delHaveModulePhoneapp(module)">删除</span>
- </div>
- <div class="col-sm-2 add-more">
- <div class="we7-input-img input-more input-img">
- <a href="" class="input-addon" ng-click="addModulePhoneapp()">
- <span class="color-gray"></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="panel we7-panel">
- <div class="panel-heading">
- 选择熊掌号应用
- </div>
- <div class="panel-body we7-padding">
- <div class="row">
- <div class="col-sm-2 text-left" ng-repeat="module in groupHaveModuleXzapp" style="overflow: hidden">
- <img ng-src="{{ module.logo }}" alt="" class="img">{{ module.title }}
- <span class="del bg-default" ng-click="delHaveModuleXzapp(module)">删除</span>
- </div>
- <div class="col-sm-2 add-more">
- <div class="we7-input-img input-more input-img">
- <a href="" class="input-addon" ng-click="addModuleXzapp()">
- <span class="color-gray"></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="panel we7-panel">
- <div class="panel-heading">
- 选择支付宝小程序应用
- </div>
- <div class="panel-body we7-padding">
- <div class="row">
- <div class="col-sm-2 text-left" ng-repeat="module in groupHaveModuleAliapp" style="overflow: hidden">
- <img ng-src="{{ module.logo }}" alt="" class="img">{{ module.title }}
- <span class="del bg-default" ng-click="delHaveModuleAliapp(module)">删除</span>
- </div>
- <div class="col-sm-2 add-more">
- <div class="we7-input-img input-more input-img">
- <a href="" class="input-addon" ng-click="addModuleAliapp()">
- <span class="color-gray"></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="uploader-modal modal fade module" id="add_template" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" style="width:800px">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">添加模板(点击添加)</h4>
- </div>
-
- <div class="modal-body material-content clearfix">
- <div class="material-body">
- <div class="row">
- <div class="col-sm-2 select-module" ng-repeat="template in groupNotHaveTemplate" ng-click="selectOrCancelModule(template, 'template')">
- <div class="item" ng-class="{true:'active',false:''}[template.selected]">
- <i class="wi wi-home" style="color: #ddd;font-size: 48px;position:relative; top:-15px; margin: 0;"></i>
- <div class="name">{{ template.title }}</div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--注意全部有分页-->
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all2" ng-change= 'selecteAllTemplate(alltemplatesel)' ng-model='alltemplatesel'>
- <label for="selected-all2">全选</label>
- </div>
- <ul class="pagination">
-
- </ul>
- </div>
- </div>
-
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="addHaveTemplate()">确定</button>
- <button type="button" class="btn btn-default" ng-click="cancel('add_template')">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="uploader-modal modal fade module" id="add_module" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog modal-lg we7-modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">添加模块(点击添加)</h4>
- </div>
-
- <div class="modal-body material-content clearfix">
- <div class="material-head">
- <form action="" method="get" class="form-horizontal clearfix form-inline" role="form">
- <div class="input-group pull-left col-sm-4">
- <input type="text" name="keyword" id="" ng-model='keyword' ng-change="filterKeyword(keyword)" class="form-control" placeholder="搜索关键字"/>
- <span class="input-group-btn"><button type="button" class="btn btn-default"><i class="wi wi-search"></i></button></span>
- </div>
- </form>
- </div>
- <div class="material-body">
- <div class="row">
- <div class="col-sm-2 select-module" ng-show="!module.hide" ng-repeat="module in groupNotHaveModuleApp" ng-click="selectOrCancelModule(module, 'module')">
- <div class="item" ng-class="{true:'active',false:''}[module.selected]">
- <img ng-src="{{ module.logo }}" alt="" class="icon" ng-if="module.main_module == ''"/>
- <span class="img" ng-if="module.main_module != ''">
- <img ng-src="{{ module.logo }}" alt="子应用icon" class="plugin-img"/>
- <img ng-src="{{ module.main_module_logo }}" alt="主应用icon" class="module-img"/>
- </span>
- <div class="name">{{ module.title }}</div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--注意全部有分页-->
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all" ng-change= 'selecteAllModule(allmodulesel)' ng-model='allmodulesel'>
- <label for="selected-all">全选</label>
- </div>
- <ul class="pagination">
-
- </ul>
- </div>
- </div>
-
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="addHaveModule()">确定</button>
- <button type="button" class="btn btn-default" ng-click="cancel('add_module')">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="uploader-modal modal fade module" id="add_module_wxapp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">添加微信小程序(点击添加)</h4>
- </div>
-
- <div class="modal-body material-content clearfix">
- <div class="material-body">
- <div class="row">
- <div class="col-sm-2 select-module" ng-repeat="module in groupNotHaveModuleWxapp" ng-click="selectOrCancelModule(module, 'module_wxapp')">
- <div class="item" ng-class="{true:'active',false:''}[module.selected]">
- <img ng-src="{{ module.logo }}" alt="" class="icon" ng-if="module.main_module == ''"/>
- <div class="name">{{ module.title }}</div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--注意全部有分页-->
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all1" ng-change="selecteAllWxapp(allwxappsel)" ng-model="allwxappsel">
- <label for="selected-all1">全选</label>
- </div>
- <ul class="pagination">
-
- </ul>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="addHaveModuleWxapp()">确定</button>
- <button type="button" class="btn btn-default" ng-click="cancel('add_module_wxapp')">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="uploader-modal modal fade module" id="add_module_webapp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">添加PC应用(点击添加)</h4>
- </div>
-
- <div class="modal-body material-content clearfix">
- <div class="material-body">
- <div class="row">
- <div class="col-sm-2 select-module" ng-repeat="module in groupNotHaveModuleWebapp" ng-click="selectOrCancelModule(module, 'module_webapp')">
- <div class="item" ng-class="{true:'active',false:''}[module.selected]">
- <img ng-src="{{ module.logo }}" alt="" class="icon"/>
- <div class="name">{{ module.title }}</div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--注意全部有分页-->
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all3" ng-change="selecteAllWebapp(allwebappsel)" ng-model="allwebappsel">
- <label for="selected-all3">全选</label>
- </div>
- <ul class="pagination">
-
- </ul>
- </div>
-
- </div>
- <div class="modal-footer">
-
- <button type="button" class="btn btn-primary" ng-click="addHaveModuleWebapp()">确定</button>
- <button type="button" class="btn btn-default" ng-click="cancel('add_module_webapp')">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="uploader-modal modal fade module" id="add_module_phoneapp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">添加APP应用(点击添加)</h4>
- </div>
-
- <div class="modal-body material-content clearfix">
- <div class="material-body">
- <div class="row">
- <div class="col-sm-2 select-module" ng-repeat="module in groupNotHaveModulePhoneapp" ng-click="selectOrCancelModule(module, 'module_phoneapp')">
- <div class="item" ng-class="{true:'active',false:''}[module.selected]">
- <img ng-src="{{ module.logo }}" alt="" class="icon"/>
- <div class="name">{{ module.title }}</div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--注意全部有分页-->
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all4" ng-change="selecteAllPhoneapp(allphoneappsel)" ng-model="allphoneappsel">
- <label for="selected-all4">全选</label>
- </div>
- <ul class="pagination">
-
- </ul>
- </div>
-
- </div>
- <div class="modal-footer">
-
- <button type="button" class="btn btn-primary" ng-click="addHaveModulePhoneapp()">确定</button>
- <button type="button" class="btn btn-default" ng-click="cancel('add_module_phoneapp')">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="uploader-modal modal fade module" id="add_module_xzapp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">添加熊掌号应用(点击添加)</h4>
- </div>
-
- <div class="modal-body material-content clearfix">
- <div class="material-body">
- <div class="row">
- <div class="col-sm-2 select-module" ng-repeat="module in groupNotHaveModuleXzapp" ng-click="selectOrCancelModule(module, 'module_xzapp')">
- <div class="item" ng-class="{true:'active',false:''}[module.selected]">
- <img ng-src="{{ module.logo }}" alt="" class="icon"/>
- <div class="name">{{ module.title }}</div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--注意全部有分页-->
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all5" ng-change="selecteAllXzapp(allxzappsel)" ng-model="allxzappsel">
- <label for="selected-all5">全选</label>
- </div>
- <ul class="pagination">
- </ul>
- </div>
-
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="addHaveModuleXzapp()">确定</button>
- <button type="button" class="btn btn-default" ng-click="cancel('add_module_xzapp')">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="uploader-modal modal fade module" id="add_module_aliapp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">添加支付宝小程序应用(点击添加)</h4>
- </div>
-
- <div class="modal-body material-content clearfix">
- <div class="material-body">
- <div class="row">
- <div class="col-sm-2 select-module" ng-repeat="module in groupNotHaveModuleAliapp" ng-click="selectOrCancelModule(module, 'module_aliapp')">
- <div class="item" ng-class="{true:'active',false:''}[module.selected]">
- <img ng-src="{{ module.logo }}" alt="" class="icon"/>
- <div class="name">{{ module.title }}</div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--注意全部有分页-->
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all6" ng-change="selecteAllAliapp(allaliappsel)" ng-model="allaliappsel">
- <label for="selected-all6">全选</label>
- </div>
- <ul class="pagination">
- </ul>
- </div>
-
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="addHaveModuleAliapp()">确定</button>
- <button type="button" class="btn btn-default" ng-click="cancel('add_module_aliapp')">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <span class="btn btn-primary we7-padding-horizontal" ng-click="saveGroup()">提交</span>
- </div>
- <script>
- require(['underscore'], function() {
- angular.module('moduleApp').value('config', {
- 'moduleGroup' : {php echo json_encode($module_group)},
- 'groupHaveModuleApp' : {php echo json_encode($group_have_module_app)},
- 'groupHaveModuleWxapp' : {php echo json_encode($group_have_module_wxapp)},
- 'groupHaveModuleWebapp' : {php echo json_encode($group_have_module_webapp)},
- 'groupHaveModulePhoneapp' : {php echo json_encode($group_have_module_phoneapp)},
- 'groupHaveModuleXzapp' : {php echo json_encode($group_have_module_xzapp)},
- 'groupHaveModuleAliapp' : {php echo json_encode($group_have_module_aliapp)},
- 'groupNotHaveModuleApp' : {php echo json_encode($group_not_have_module_app)},
- 'groupNotHaveModuleWebapp' : {php echo json_encode($group_not_have_module_webapp)}, // angular filter 只能数组
- 'groupNotHaveModulePhoneapp' : {php echo json_encode($group_not_have_module_phoneapp)},
- 'groupNotHaveModuleWxapp' : {php echo json_encode($group_not_have_module_wxapp)},
- 'groupNotHaveModuleXzapp' : {php echo json_encode($group_not_have_module_xzapp)},
- 'groupNotHaveModuleAliapp' : {php echo json_encode($group_not_have_module_aliapp)},
- 'groupHaveTemplate' : {php echo json_encode($group_have_template)},
- 'groupNotHaveTemplate' : {php echo json_encode($group_not_have_template)},
- 'url' : "{php echo url('module/group/save')}"
- });
- angular.bootstrap($('.js-modulegroup-post'), ['moduleApp']);
-
- $('[data-toggle="table-collapse"]').on('click',function(){
- var id = '[data-id="'+$(this).data('target')+'"]';
- $(id).collapse('toggle');
- });
- });
- </script>
- {/if}
- {template 'common/footer'}
|