registerset.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {template 'common/header'}
  2. {template 'system/user-setting-header'}
  3. <div id="js-registerset" ng-controller="RegistersetCtrl" ng-cloak>
  4. {if $do == 'display'}
  5. <div class="form-files-box">
  6. <div class="form-files we7-margin-bottom">
  7. <div class="form-file header">注册设置</div>
  8. <div class="form-file">
  9. <div class="form-label">用户注册</div>
  10. <div class="form-value">开启后,登录页面显示立即注册入口</div>
  11. <div class="form-edit">
  12. <div ng-class="!settings.open ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('open', settings.open)"></div>
  13. </div>
  14. </div>
  15. <div class="form-file">
  16. <div class="form-label">手机注册</div>
  17. <div class="form-value">开启后,用户可以通过手机号注册/登录</div>
  18. <div class="form-edit">
  19. <div ng-class="!settings.mobile_status ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('mobile_status', settings.mobile_status)"></div>
  20. </div>
  21. </div>
  22. <div class="form-file">
  23. <div class="form-label">审核新用户</div>
  24. <div class="form-value">开启后,注册新用户需要管理员要手动审核通过/拒绝</div>
  25. <div class="form-edit">
  26. <div ng-class="!settings.verify ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('verify', settings.verify)"></div>
  27. </div>
  28. </div>
  29. <div class="form-file">
  30. <div class="form-label">用户协议</div>
  31. <div class="form-value">
  32. {if !empty($settings['agreement_info'])} 已添加协议 {else} 未添加协议 {/if}
  33. </div>
  34. <div class="form-edit">
  35. <a href="{php echo url('user/agreement')}">去修改</a>&nbsp;&nbsp;&nbsp;
  36. </div>
  37. <div class="form-edit">
  38. <div ng-class="!settings.agreement_status ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('agreement_status', settings.agreement_status)"></div>
  39. </div>
  40. </div>
  41. <div class="form-file">
  42. <div class="form-label">图形验证码</div>
  43. <div class="form-value">开启后,用户注册需要输入图形验证码</div>
  44. <div class="form-edit">
  45. <div ng-class="!settings.code ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('code', settings.code)"></div>
  46. </div>
  47. </div>
  48. <div class="form-file">
  49. <div class="form-label">密码强度校验</div>
  50. <div class="form-value">开启后,用户注册时强制输入安全等级较高的密码</div>
  51. <div class="form-edit">
  52. <div ng-class="!settings.safe ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('safe', settings.safe)"></div>
  53. </div>
  54. </div>
  55. <div class="form-file">
  56. <div class="form-label">默认所属用户组</div>
  57. <div class="form-value" ng-if="group.id" ng-bind="group.name"></div>
  58. <div class="form-value" ng-if="!group.id">当开启用户注册后,新注册用户将会分配到该用户组里,且拥有该组的模块操作权限</div>
  59. <div class="form-edit">
  60. <we7-modal-form type="'select'" label="'默认所属用户组'" key="'name'" value="group" on-confirm="saveSetting(formValue, 'groupid')" options="groups"></we7-modal-form>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="form-files">
  65. <div class="form-file header">登录设置</div>
  66. <div class="form-file">
  67. <div class="form-label">图形验证码</div>
  68. <div class="form-value">开启后,用户登录需要输入图形验证码</div>
  69. <div class="form-edit">
  70. <div ng-class="!copyright.verifycode ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('verifycode', copyright.verifycode)"></div>
  71. </div>
  72. </div>
  73. <div class="form-file">
  74. <div class="form-label">登陆限制时间</div>
  75. <div class="form-value" ng-if="copyright.refused_login_limit">{{copyright.refused_login_limit}}分钟</div>
  76. <div class="form-value" ng-if="!copyright.refused_login_limit">登陆失败超出限定次数后的限制登陆时间,单位为分钟</div>
  77. <div class="form-edit">
  78. <we7-modal-form type="'number'" label="'登陆限制时间'" value="copyright.refused_login_limit" on-confirm="saveSetting(formValue, 'refused_login_limit')"></we7-modal-form>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. {elseif $do == 'clerk'}
  84. <div class="form-files-box">
  85. <div class="form-files we7-margin-bottom">
  86. <div class="form-file header">注册设置</div>
  87. <div class="form-file">
  88. <div class="form-label">审核新应用操作员</div>
  89. <div class="form-value">开启后,注册审核新应用操作员需要管理员要手动审核通过/拒绝</div>
  90. <div class="form-edit">
  91. <div ng-class="!settings.clerk.verify ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('clerk_verify', settings.clerk.verify)"></div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="form-files">
  96. <div class="form-file header">绑定设置</div>
  97. <div class="form-file">
  98. <div class="form-label">强制绑定信息</div>
  99. <div class="form-value" ng-if="bind.id == 'null'">选择后,应用操作员登录后,将强制绑定所选方式</div>
  100. <div class="form-value" ng-if="bind.id != 'null'" ng-bind="bind.name"></div>
  101. <div class="form-edit">
  102. <we7-modal-form type="'select'" label="'强制绑定信息'" key="'name'" value="bind" on-confirm="saveSetting(formValue, 'clerk_bind')" options="binds"></we7-modal-form>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. {/if}
  108. </div>
  109. <script>
  110. angular.module('userManageApp').value('config', {
  111. settings: {php echo !empty($settings) ? json_encode($settings) : 'null'},
  112. copyright: {php echo !empty($copyright) ? json_encode($copyright) : 'null'},
  113. saveSettingUrl: "{php echo url('user/registerset')}",
  114. token: "{$_W['token']}",
  115. groups: {php echo !empty($groups) ? json_encode($groups) : 'null'},
  116. binds: {php echo !empty($binds) ? json_encode($binds) : 'null'},
  117. bind: {php echo !empty($bind) ? json_encode($bind) : 'null'},
  118. group: {php echo !empty($group) ? json_encode($group) : 'null'},
  119. });
  120. angular.bootstrap($('#js-registerset'), ['userManageApp']);
  121. </script>
  122. {template 'common/footer'}