人人商城

mass-send.html 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <div class="mass-send" id="js-mass-send" ng-controller="MassSend" ng-cloak>
  13. <table class="table we7-table table-hover vertical-middle">
  14. <col />
  15. <tr>
  16. <th>消息类型</th>
  17. <th>接收用户组</th>
  18. <th>预计发送时间</th>
  19. <th>发送人数</th>
  20. <th>状态</th>
  21. <th>操作</th>
  22. </tr>
  23. {loop $lists $list}
  24. <tr>
  25. <td>
  26. <a href="{php echo url('platform/material/list', array('type' => $list['msgtype'], 'id' => $list['attach_id']));}" target="_blank">
  27. {$types[$list['msgtype']]}
  28. </a>
  29. </td>
  30. <td>{$list['groupname']}</td>
  31. <td>{php echo date('Y-m-d H:i', $list['sendtime']);}</td>
  32. <td>{if $list['group'] == '-1'}全部粉丝{else}{$list['fansnum']}{/if}</td>
  33. <td>
  34. {if !$list['status']}
  35. <span class="label label-success">已发送</span>
  36. {elseif $list['status'] == 1}
  37. <span class="label label-warning">未发送</span>
  38. {elseif $list['status'] == 2}
  39. <span class="label label-danger">发送失败</span>
  40. {/if}
  41. </td>
  42. <td>
  43. {if $list['type'] == 1}
  44. {if !$list['cron_id'] && $list['sendtime'] > TIMESTAMP}
  45. <a href="{php echo url('platform/mass/cron', array('id' => $list['id']));}" class="btn btn-danger btn-sm">同步到云服务</a>
  46. {/if}
  47. <a href="{php echo url('platform/mass/post', array('id' => $list['id']));}" data-toggle="tooltip" data-placement="bottom">编辑</a>
  48. <a href="{php echo url('platform/mass/del', array('id' => $list['id']));}" data-toggle="tooltip" data-placement="bottom">删除</a>
  49. {/if}
  50. </td>
  51. </tr>
  52. {/loop}
  53. </table>
  54. <div class="text-right">
  55. {$pager}
  56. </div>
  57. </div>
  58. <script>
  59. angular.module('massApp').value('config', {
  60. logUrl: "{php echo url('cron/manager/log');}"
  61. });
  62. angular.bootstrap($('#js-mass-send'), ['massApp']);
  63. </script>
  64. {template 'common/footer'}