人人商城

sms-sign.html 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {template 'common/header'}
  2. {template 'user/user-header'}
  3. <form action="" method="post" class="we7-form" id="js-sms-sign" ng-controller="SmsSignCtrl" 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. <select class="we7-select" ng-model="site_sms_sign.sign">
  8. <option value="0" selected>请选择短信签名</option>
  9. <option ng-repeat="row in all_signatures" value="{{row}}" ng-bind="row" ng-selected="site_sms_sign.sign == row"></option>
  10. </select>
  11. <span class="help-block">请选择短信签名。未审核签名可以通过云短信审核签名</span>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label for="" class="control-label col-sm-2" style="width: 150px;">提前天数</label>
  16. <div class="form-controls col-sm-8">
  17. <input type="text" ng-model = "site_sms_sign.day">
  18. <span class="help-block">请填写天数,如果不填写,会在用户到期前一天发信息。</span>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label for="" class="control-label col-sm-2" style="width: 150px;">是否启用</label>
  23. <div class="form-controls col-sm-8">
  24. <div class="switch" ng-class="{'switchOn' : site_sms_sign.status}" ng-click="httpChange()"></div>
  25. <span class="help-block">默认为关闭状态,如果想对过期用户发送短信,需要开启。</span>
  26. </div>
  27. </div>
  28. <button type="button" class="btn btn-primary" ng-click="saveSms()" ng-style="{'padding': '6px 50px'}">确定</button>
  29. </form>
  30. <script>
  31. angular.module('userManageApp').value('config', {
  32. 'all_signatures' : {php echo !empty($cloud_sms_signs) ? json_encode($cloud_sms_signs) : 'null'},
  33. 'site_sms_sign' : {php echo !empty($setting_sms_sign) ? json_encode($setting_sms_sign) : 'null'},
  34. 'links' : {
  35. 'site_sms_sign_link' : "{php echo url('user/sms-sign/save_sms_sign')}",
  36. 'site_sms_status_link' : "{php echo url('user/sms-sign/change_status')}"
  37. }
  38. });
  39. angular.bootstrap($('#js-sms-sign'), ['userManageApp']);
  40. </script>
  41. {template 'common/footer'}