mass-post.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {template 'common/header'}
  2. {if empty($id)}
  3. <div class="we7-page-title">
  4. 素材定时群发
  5. </div>
  6. <ul class="we7-page-tab">
  7. <li {if $_GPC['a'] == 'mass' && $do == 'post'}class="active"{/if}>
  8. <a href="{php echo url('platform/mass/post')}" >素材编辑</a>
  9. </li>
  10. <li {if $_GPC['a'] == 'mass' && $do == 'send'}class="active"{/if}>
  11. <a href="{php echo url('platform/mass/send')}">群发记录</a>
  12. </li>
  13. </ul>
  14. {/if}
  15. <div class="">
  16. {if !empty($id)}
  17. <ol class="breadcrumb we7-breadcrumb">
  18. <a href="{php echo url('platform/mass/send')}"><i class="wi wi-back-circle"></i> </a>
  19. <li><a href="{php echo url('platform/mass/')}">素材定时群发</a></li>
  20. <li><a href="{php echo url('platform/mass/post')}">编辑</a></li>
  21. </ol>
  22. {/if}
  23. <div class="we7-form" id="js-mass-post" ng-controller="MassPost" ng-cloak>
  24. <form action="" method="post" ng-submit="checkSubmit($event)">
  25. <input type="hidden" name="token" value="{$_W['token']}">
  26. <div class="form-group">
  27. <label class="control-label col-sm-2">群发对象</label>
  28. <div class="form-controls col-sm-8">
  29. <input type="hidden" name="group" value="">
  30. <select class="we7-select mass-group">
  31. <option value="-1">全部粉丝</option>
  32. <option ng-repeat="group in groups" ng-selected="group.name == massdata.groupname" ng-bind="group.name" ng-value="group.id"></option>
  33. </select>
  34. <span class="help-block"> 根据条件对群发对象进行筛选</span>
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label class="control-label col-sm-2">发送时间</label>
  39. <div class="form-controls col-sm-8">
  40. <select class="col-sm-3 mass-type" name="type">
  41. <option ng-selected="massdata.type==0" ng-value="0" >实时发送</option>
  42. <option ng-selected="massdata.type==1" ng-value="1" >定时发送</option>
  43. </select>
  44. <div class="col-sm-6 sendtime">
  45. {php echo tpl_form_field_date('sendtime',$mass_info['sendtime'],true)}
  46. </div>
  47. </div>
  48. <div class="form-controls col-sm-8 hide">
  49. <div class="input-group clockpicker">
  50. <span class="input-group-addon"><i class="fa fa-clock-o"></i></span>
  51. <input type="text" readonly name="clock" ng-model="clock" class="form-control">
  52. </div>
  53. <span class="help-block text-danger">特别注意:发送时间不能小于当前时间.不要超过晚上11点</span>
  54. </div>
  55. </div>
  56. {php echo module_build_form('core', $mass_info['id'], array('news'=> false, 'image'=> false,'voice'=> false,'video'=> false))}
  57. <input type="submit" name="submit" value="发布" class="btn btn-primary btn-submit"/>
  58. </form>
  59. </div>
  60. </div>
  61. <script>
  62. require(['underscore', 'clockpicker'], function() {
  63. angular.module('massApp').value('config', {
  64. massdata: {php echo json_encode($mass_info)},
  65. groups: {php echo json_encode($groups)},
  66. day: {php echo json_encode($_GPC['day'])}
  67. });
  68. angular.bootstrap($('#js-mass-post'), ['massApp']);
  69. });
  70. </script>
  71. {template 'common/footer'}