admin-sms.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html lang=zh-cn>
  3. <head>
  4. <meta charset=utf-8>
  5. <title>纵横计量支付系统</title>
  6. <meta name=description content=计量支付>
  7. <meta name=copyright content=smartcost.com.cn>
  8. <link rel=stylesheet href={{rootUrl}}global/css/bootstrap.css>
  9. <link rel=stylesheet href={{rootUrl}}global/css/style.css>
  10. <script src={{rootUrl}}global/js/jquery-1.9.1.min.js></script>
  11. <script src={{rootUrl}}global/js/bootstrap.js></script>
  12. <script src={{rootUrl}}global/js/jl.js></script>
  13. </head>
  14. <body>
  15. <div class="wrapHeader">
  16. <h1 class="mainLogo" title="纵横计量支付"></h1>
  17. <div class="sysTools"><a title="返回首页" href="index.html"><i class="icon-circle-arrow-left icon-white"></i></a>&nbsp;&nbsp;&nbsp;<a
  18. title="纵横官网" target="_blank" href="http://smartcost.com.cn"><i class="icon-home icon-white"></i></a></div>
  19. </div>
  20. <!-- include "top" -->
  21. <div class="warpAdmin">
  22. <!-- include "menu" -->
  23. <div class="adminContent">
  24. <div class="adminMain">
  25. <form class="form-horizontal">
  26. <fieldset>
  27. <legend>短信通知</legend>
  28. <div id="switchon" class="control-group <!-- if {{smsSwitch}}=='1' --> hide <!-- endif -->">
  29. <label class="control-label">开启短信通知功能</label>
  30. <div class="controls">
  31. <div class="btn-group">
  32. <input type="button" class="btn" id="smsOn" title="开启短信通知" value="开启"/>
  33. <button class="btn btn-danger disabled" disabled="disabled">已关闭</button>
  34. </div>
  35. </div>
  36. </div>
  37. <div id="switchoff" class="control-group <!-- if {{smsSwitch}}=='0' --> hide <!-- endif -->">
  38. <label class="control-label">开启短信通知功能</label>
  39. <div class="controls">
  40. <div class="btn-group">
  41. <button class="btn btn-success disabled" disabled="disabled">已开启</button>
  42. <input type="button" class="btn" id="smsOff" title="关闭短信通知" value="关闭"/>
  43. </div>
  44. </div>
  45. </div>
  46. <div id="alert-open" class="alert alert-info hide">
  47. 初次开启,所有用户都必须进行手机验证才能正常接收短信通知。
  48. </div>
  49. <div id="alert-close" class="alert alert-error hide">
  50. 短信通知已关闭,所有用户都将不会再接收短信通知。
  51. </div>
  52. </fieldset>
  53. </form>
  54. </div>
  55. </div>
  56. </div>
  57. <script type="text/javascript">autoFlashHeight();</script>
  58. <script type="text/javascript">
  59. $(document).ready(function () {
  60. $("#smsOff").click(function () {
  61. $.ajax({
  62. type: "POST",
  63. dataType: "json",
  64. cache: false,
  65. data: {"switch": 'off'},
  66. url: "{{rootUrl}}manage/sys/sms/switch"
  67. }).done(function (data) {
  68. if (data['switch'] == 'off') {
  69. $("#switchoff").fadeOut();
  70. $("#switchon").fadeIn();
  71. $("#alert-open").fadeOut();
  72. $("#alert-close").fadeIn();
  73. }
  74. });
  75. });
  76. $("#smsOn").click(function () {
  77. $.ajax({
  78. type: "POST",
  79. dataType: "json",
  80. cache: false,
  81. data: {"switch": 'on'},
  82. url: "{{rootUrl}}manage/sys/sms/switch",
  83. }).done(function (data) {
  84. if (data['switch'] == 'on') {
  85. $("#switchon").fadeOut();
  86. $("#switchoff").fadeIn();
  87. $("#alert-close").fadeOut();
  88. $("#alert-open").fadeIn();
  89. }
  90. });
  91. });
  92. });
  93. </script>
  94. </body>