Browse Source

图片集合样式调整

pull/1/head
zq 2 months ago
parent
commit
6c5495b1f2
  1. 13
      view/css/index.css
  2. 13
      view/js/index.js

13
view/css/index.css

@ -5,6 +5,9 @@
.hide,.hidden{ .hide,.hidden{
display: none !important; display: none !important;
} }
.pd84{
padding-left: 84px;
}
.radio-wrap{} .radio-wrap{}
.radio_box,.check_Box{ .radio_box,.check_Box{
display: flex; display: flex;
@ -356,13 +359,13 @@
height: 107px; height: 107px;
border-radius: 5px; border-radius: 5px;
position: relative; position: relative;
margin-right: 8px; margin-left: 8px;
} }
.small-image-desc { .small-image-desc {
position: absolute; position: absolute;
left: 6px; left: 6px;
bottom: 8px; bottom: 12px;
border-radius: 2px; border-radius: 2px;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
padding: 4px 10px 5px 10px; padding: 4px 10px 5px 10px;
@ -546,7 +549,7 @@ button:hover {
} }
.img_list ,.img_list2{ .img_list ,.img_list2{
margin: 8px 0; margin: 8px 0 0 -8px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
@ -624,8 +627,10 @@ button:hover {
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 660px; width: calc(660px - 48px);
padding: 0 24px 32px; padding: 0 24px 32px;
max-height: 650px;
overflow-y: auto;
background: #fff; background: #fff;
border-radius: 6px; border-radius: 6px;
opacity: 1; opacity: 1;

13
view/js/index.js

@ -38,6 +38,7 @@ $(document).ready(function () {
$('.edit-input').val('') $('.edit-input').val('')
// $('.radio-form').hide(); // $('.radio-form').hide();
// $('.normal-form').hide(); // $('.normal-form').hide();
$('.img_list2').removeClass('pd84')
$('.normal-input').val(res.data.refer); $('.normal-input').val(res.data.refer);
$('.char-count').text(res.data.refer.length + '/100'); $('.char-count').text(res.data.refer.length + '/100');
@ -45,6 +46,18 @@ $(document).ready(function () {
$('.normal-form').show(); $('.normal-form').show();
$('.normal-input').addClass('h74') $('.normal-input').addClass('h74')
$('#edu2').click(); $('#edu2').click();
$('.img_list2').addClass('pd84')
}else{
$('.normal-form').hide();
$('.normal-input').removeClass('h74')
$('#edu1').click();
}
if(res.data.wid && !res.data.refer){
$('.radio-form').hide();
$('.common-input').hide()
}else{
$('.radio-form').show();
$('.common-input').show()
} }
$('.answer-input').val(res.data.text); $('.answer-input').val(res.data.text);

Loading…
Cancel
Save