manage-sms.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {template 'common/header'}
  2. {template 'account/account-header'}
  3. <div id="js-account-manage-sms" ng-controller="AccountManageSms" ng-cloak>
  4. <table class="table we7-table table-hover">
  5. <col width="200px"/>
  6. <col width="230px"/>
  7. <tr>
  8. <th>剩余条数</th>
  9. <th class="text-right">操作</th>
  10. </tr>
  11. <tr>
  12. <td ng-if="notify.sms"><span ng-bind="notify.sms.balance"></span>条</td>
  13. <td ng-if="!notify.sms">0条</td>
  14. <td class="text-right">
  15. <div class="link-group">
  16. {if permission_check_account_user('see_account_manage_sms_blance')}
  17. <a href="javascript:;" data-toggle="modal" data-target="#balance" ng-click="editSms('balance', notify.sms.balance)">分配短信</a>
  18. {/if}
  19. <a href="javascript:;" data-toggle="modal" data-target="#signature" ng-click="editSms('signature', notify.sms.signature)">设置短信签名</a>
  20. </div>
  21. </td>
  22. </tr>
  23. </table>
  24. <div class="modal fade" id="balance" tabindex="-1" role="dialog" aria-hidden="true">
  25. <div class="we7-modal-dialog modal-dialog">
  26. <div class="modal-content">
  27. <div class="modal-header">
  28. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  29. <div class="modal-title">分配短信</div>
  30. </div>
  31. <div class="modal-body we7-form">
  32. <div class="form-group">
  33. <input type="number" min="0" ng-model="middleSms.balance" class="form-control" placeholder="请填写短信剩余条数,必须为整数。" />
  34. </div>
  35. </div>
  36. <div class="modal-footer">
  37. <button type="button" class="btn btn-primary" ng-click="httpChange('balance')">确定</button>
  38. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="modal fade" id="signature" tabindex="-1" role="dialog" aria-hidden="true">
  44. <div class="we7-modal-dialog modal-dialog">
  45. <div class="modal-content">
  46. <div class="modal-header">
  47. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  48. <div class="modal-title">修改短信签名</div>
  49. </div>
  50. <div class="modal-body">
  51. <div class="form-group">
  52. <select name="signature" class="we7-select" ng-model="middleSms.signature">
  53. <option value="{{item}}" ng-repeat="item in signatures">{{item}}</option>
  54. <option value="">涛盛微擎团队</option>
  55. </select>
  56. <span class="help-block">请填写短信签名。未审核签名可以通过云短信审核签名</span>
  57. </div>
  58. </div>
  59. <div class="modal-footer">
  60. <button type="button" class="btn btn-primary" ng-click="httpChange('signature')">确定</button>
  61. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <script>
  68. angular.module('accountApp').value('config', {
  69. notify: {php echo !empty($notify) ? json_encode($notify) : 'null'},
  70. signatures: {php echo !empty($signatures) ? json_encode($signatures) : 'null'},
  71. links: {
  72. postSms: "{php echo url('account/post/sms', array('acid' => $acid, 'uniacid' => $uniacid))}",
  73. },
  74. });
  75. angular.bootstrap($('#js-account-manage-sms'), ['accountApp']);
  76. </script>
  77. {template 'common/footer'}