|
|
@ -6,11 +6,10 @@ $(document).ready(function () { |
|
|
|
|
|
|
|
$('.radio-wrap').on('click', '.radio_box input', function () { |
|
|
|
var radio_val = $(this).attr('value') |
|
|
|
$('.edit-input').val('') |
|
|
|
if (radio_val == '1') { |
|
|
|
$('.normal-form').hide() |
|
|
|
$('.common-input').html('录入信息') |
|
|
|
$('.normal-input').removeClass('h74') |
|
|
|
$('.normal-input').removeClass('h74').val('') |
|
|
|
} else { |
|
|
|
$('.common-input').html('回答信息') |
|
|
|
$('.normal-input').addClass('h74') |
|
|
@ -37,10 +36,19 @@ $(document).ready(function () { |
|
|
|
} |
|
|
|
|
|
|
|
$('.edit-input').val('') |
|
|
|
$('.radio-form').hide(); |
|
|
|
$('.normal-form').hide(); |
|
|
|
// $('.radio-form').hide();
|
|
|
|
// $('.normal-form').hide();
|
|
|
|
|
|
|
|
$('.normal-input').val(res.data.refer); |
|
|
|
$('.char-count').text(res.data.refer.length + '/100'); |
|
|
|
if(res.data.refer.length>0){ |
|
|
|
$('.normal-form').show(); |
|
|
|
$('.normal-input').addClass('h74') |
|
|
|
$('#edu2').click(); |
|
|
|
} |
|
|
|
|
|
|
|
$('.answer-input').val(res.data.text); |
|
|
|
$('.char-count').text(res.data.text.length + '/100'); |
|
|
|
$('.char-count1').text(res.data.text.length + '/100'); |
|
|
|
|
|
|
|
if ($('.modal').hasClass('addmodal')) { |
|
|
|
$('.modal').removeClass('addmodal') |
|
|
|