sys_message.blade.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div class="row">
  2. <div class="col-md-12">
  3. <div class="box box-info">
  4. <div class="box-header with-border">
  5. 创建
  6. </div>
  7. <div class="box-body">
  8. {!! $custom_form !!}
  9. </div>
  10. </div>
  11. </div>
  12. </div>
  13. {!! $temp !!}
  14. <script>
  15. $(function () {
  16. if ($('input[name="news_type"]:checked').val() == 2) {
  17. init_div_content('pop_div');
  18. } else {
  19. init_div_content('sys_div');
  20. }
  21. $('input[name="news_type"]').on('ifChecked', function(event){
  22. if($(this).val()=='1'){
  23. init_div_content('sys_div');
  24. }else if($(this).val()=='2'){
  25. init_div_content('pop_div');
  26. }
  27. });
  28. $('label.radio-inline').on('click',function () {
  29. if ($(this).find('input').val()==1) {
  30. }else{
  31. }
  32. });
  33. });
  34. function init_div_content(id){
  35. template=$('#'+id).html();
  36. $('#change_field').html(template);
  37. render_fields(id);
  38. }
  39. </script>