人人商城

expire.html 1.5KB

123456789101112131415161718192021222324252627282930313233
  1. {template 'common/header'}
  2. {template 'user/user-header'}
  3. <form action="" method="post" class="we7-form" id="js-expire" ng-controller="UserExpireCtrl" ng-cloak>
  4. <div class="form-group">
  5. <label for="" class="control-label col-sm-2" style="width: 150px;">提前天数</label>
  6. <div class="form-controls col-sm-8">
  7. <input type="text" ng-model = "user_expire.day">
  8. <span class="help-block">请填写天数,如果不填写,会在用户到期前一天发信息。</span>
  9. </div>
  10. </div>
  11. <div class="form-group">
  12. <label for="" class="control-label col-sm-2" style="width: 150px;">是否启用</label>
  13. <div class="form-controls col-sm-8">
  14. <div class="switch" ng-class="{'switchOn' : user_expire.status}" ng-click="httpChange()"></div>
  15. <span class="help-block">默认为关闭状态,如果想对过期用户发送短信,需要开启。</span>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <a href="{php echo url('cloud/sms-sign');}" class="btn btn-primary">短信签名设置</a>
  20. </div>
  21. <button type="button" class="btn btn-primary" ng-click="saveExpire()" ng-style="{'padding': '6px 50px'}">确定</button>
  22. </form>
  23. <script>
  24. angular.module('userManageApp').value('config', {
  25. 'user_expire' : {php echo !empty($user_expire) ? json_encode($user_expire) : 'null'},
  26. 'links' : {
  27. 'user_expire_link' : "{php echo url('user/expire/save_expire')}",
  28. 'user_expire_status_link' : "{php echo url('user/expire/change_status')}"
  29. }
  30. });
  31. angular.bootstrap($('#js-expire'), ['userManageApp']);
  32. </script>
  33. {template 'common/footer'}