|
@ -8,13 +8,13 @@ $(document).ready(function () { |
|
|
var radio_val = $(this).attr('value') |
|
|
var radio_val = $(this).attr('value') |
|
|
$('.edit-input').val('') |
|
|
$('.edit-input').val('') |
|
|
if (radio_val == '1') { |
|
|
if (radio_val == '1') { |
|
|
$('.answer-form').hide() |
|
|
$('.normal-form').hide() |
|
|
$('.common-input').html('录入信息') |
|
|
$('.common-input').html('录入信息') |
|
|
$('.normal-input').removeClass('h74') |
|
|
$('.normal-input').removeClass('h74') |
|
|
} else { |
|
|
} else { |
|
|
$('.common-input').html('提问信息') |
|
|
$('.common-input').html('回答信息') |
|
|
$('.normal-input').addClass('h74') |
|
|
$('.normal-input').addClass('h74') |
|
|
$('.answer-form').show() |
|
|
$('.normal-form').show() |
|
|
} |
|
|
} |
|
|
$('.radio-wrap .radio_box').removeClass('radio_box_active'); |
|
|
$('.radio-wrap .radio_box').removeClass('radio_box_active'); |
|
|
$(this).parent().addClass('radio_box_active'); |
|
|
$(this).parent().addClass('radio_box_active'); |
|
@ -38,8 +38,8 @@ $(document).ready(function () { |
|
|
|
|
|
|
|
|
$('.edit-input').val('') |
|
|
$('.edit-input').val('') |
|
|
$('.radio-form').hide(); |
|
|
$('.radio-form').hide(); |
|
|
$('.answer-form').hide(); |
|
|
$('.normal-form').hide(); |
|
|
$('.normal-input').val(res.data.text); |
|
|
$('.answer-input').val(res.data.text); |
|
|
$('.char-count').text(res.data.text.length + '/100'); |
|
|
$('.char-count').text(res.data.text.length + '/100'); |
|
|
|
|
|
|
|
|
if ($('.modal').hasClass('addmodal')) { |
|
|
if ($('.modal').hasClass('addmodal')) { |
|
@ -497,7 +497,7 @@ $(document).ready(function () { |
|
|
<div class="list_item_top_l"> |
|
|
<div class="list_item_top_l"> |
|
|
<span class="${item.wid != '' ? 'green' : 'blue'}">${item.wid != '' ? '微博' :'自录入'}</span> |
|
|
<span class="${item.wid != '' ? 'green' : 'blue'}">${item.wid != '' ? '微博' :'自录入'}</span> |
|
|
${item.refer ? `<b>${item.refer}</b>` :''} |
|
|
${item.refer ? `<b>${item.refer}</b>` :''} |
|
|
<span class="name">` + item.wid + `</span> |
|
|
<span class="name">` + item.name + `</span> |
|
|
<span>录入:` + item.created_at + `</span> |
|
|
<span>录入:` + item.created_at + `</span> |
|
|
</div> |
|
|
</div> |
|
|
${ |
|
|
${ |
|
|