expire.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {template 'common/header'}
  2. {template 'user/user-header'}
  3. <div id="js-expire" ng-controller="UserExpireCtrl">
  4. {if $do == 'display'}
  5. <form action="" method="post" class="we7-form" ng-cloak>
  6. <table class="table we7-table table-hover vertical-middle">
  7. <col width="100px"/>
  8. <col />
  9. <col />
  10. <col />
  11. <col />
  12. <col />
  13. <tr>
  14. <th >字段名</th>
  15. <th class="text-left">值</th>
  16. <th class="text-left">说明</th>
  17. <th class="text-left">是否启用</th>
  18. <th class="text-right">操作</th>
  19. </tr>
  20. <tr>
  21. <td >提前天数</td>
  22. <td ng-bind="user_expire.day"></td>
  23. <td>请填写天数,如果不填写,会在用户到期前一天发信息。</td>
  24. <td>
  25. <div ng-class="user_expire.status == 1 ? 'switch switchOn' : 'switch'" ng-click="changeStatus('status', user_expire)"></div>
  26. </td>
  27. <td>
  28. <div class="link-group">
  29. <a href="javascript:;" data-toggle="modal" data-target="#name">修改</a>
  30. </div>
  31. </td>
  32. </tr>
  33. </table>
  34. <div class="form-group">
  35. <a href="{php echo url('cloud/sms-sign');}" class="btn btn-primary">短信签名设置</a>
  36. </div>
  37. <!-- 编辑弹出框 start-->
  38. <div class="modal fade" id="name" role="dialog">
  39. <div class="we7-modal-dialog modal-dialog">
  40. <div class="modal-content">
  41. <div class="modal-header">
  42. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  43. <div class="modal-title">修改提前天数</div>
  44. </div>
  45. <div class="modal-body">
  46. <div class="form-group">
  47. <span class="col-md-2 control-label">提前天数</span>
  48. <div class="col-md-10">
  49. <input type="text" ng-model="user_expire.day" class="form-control" placeholder="" />
  50. </div>
  51. </div>
  52. </div>
  53. <div class="modal-footer">
  54. <button type="button" class="btn btn-primary" ng-click="saveExpire('day')">确定</button>
  55. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <!-- 编辑弹出框 end-->
  61. </form>
  62. {else}
  63. <form action="" method="post" class="we7-form" ng-cloak>
  64. <table class="table we7-table table-hover vertical-middle">
  65. <col width="150px"/>
  66. <col />
  67. <col />
  68. <col />
  69. <col />
  70. <col />
  71. <tr>
  72. <th >自定义到期提示</th>
  73. <th></th>
  74. <th class="text-right">操作</th>
  75. </tr>
  76. <tr>
  77. <td >提示语</td>
  78. <td ng-bind="user_expire.notice"></td>
  79. <td>
  80. <div class="link-group">
  81. <a href="javascript:;" data-toggle="modal" data-target="#notice">修改</a>
  82. </div>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td >跳转商城按钮</td>
  87. <td >显示商城续费的按钮</td>
  88. <td>
  89. <div class="link-group">
  90. <div ng-class="user_expire.status_store_button == 1 ? 'switch switchOn' : 'switch'" ng-click="changeStatus('status_store_button', user_expire)"></div>
  91. </div>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td >自动跳转商城</td>
  96. <td >再提示页面无操作, 5秒后自动跳转至商城续费</td>
  97. <td>
  98. <div class="link-group">
  99. <div ng-class="user_expire.status_store_redirect == 1 ? 'switch switchOn' : 'switch'" ng-click="changeStatus('status_store_redirect', user_expire)"></div>
  100. </div>
  101. </td>
  102. </tr>
  103. </table>
  104. <!-- 编辑弹出框 start-->
  105. <div class="modal fade" id="notice" role="dialog">
  106. <div class="we7-modal-dialog modal-dialog">
  107. <div class="modal-content">
  108. <div class="modal-header">
  109. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  110. <div class="modal-title">修改提示语</div>
  111. </div>
  112. <div class="modal-body">
  113. <div class="form-group">
  114. <span class="col-md-2 control-label">提示语</span>
  115. <div class="col-md-10">
  116. <input type="text" ng-model="user_expire.notice" class="form-control" placeholder="" />
  117. </div>
  118. </div>
  119. </div>
  120. <div class="modal-footer">
  121. <button type="button" class="btn btn-primary" ng-click="saveExpire('notice')">确定</button>
  122. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <!-- 编辑弹出框 end-->
  128. </form>
  129. {/if}
  130. </div>
  131. <script>
  132. angular.module('userManageApp').value('config', {
  133. 'user_expire' : {php echo !empty($user_expire) ? json_encode($user_expire) : 'null'},
  134. 'links' : {
  135. 'user_expire_link' : "{php echo url('user/expire/save_expire')}",
  136. 'user_expire_status_link' : "{php echo url('user/expire/change_status')}"
  137. }
  138. });
  139. angular.bootstrap($('#js-expire'), ['userManageApp']);
  140. </script>
  141. {template 'common/footer'}