123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <div class="row">
- <div class="col-md-12">
- <div class="box box-info">
- <div class="box-header with-border">
- 创建
- </div>
- <div class="box-body">
- {!! $custom_form !!}
- </div>
- </div>
- </div>
- </div>
- {!! $temp !!}
- <script>
- $(function () {
- if ($('input[name="news_type"]:checked').val() == 2) {
- init_div_content('pop_div');
- } else {
- init_div_content('sys_div');
- }
- $('input[name="news_type"]').on('ifChecked', function(event){
- if($(this).val()=='1'){
- init_div_content('sys_div');
- }else if($(this).val()=='2'){
- init_div_content('pop_div');
- }
- });
- $('label.radio-inline').on('click',function () {
- if ($(this).find('input').val()==1) {
- }else{
- }
- });
- });
- function init_div_content(id){
- template=$('#'+id).html();
- $('#change_field').html(template);
- render_fields(id);
- }
- </script>
|