人人商城

mass-post.html 3.0KB

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