diff --git a/src/views/firstpage/RecommendResourceAdminView.vue b/src/views/firstpage/RecommendResourceAdminView.vue index 32e22cf..be1b6e3 100644 --- a/src/views/firstpage/RecommendResourceAdminView.vue +++ b/src/views/firstpage/RecommendResourceAdminView.vue @@ -852,7 +852,11 @@ export default { }) $("#resourceA").change(function () { var optVal = $(this).val(); - if (optVal != undefined && optVal == 5) { + window.changeContent('A'); + if (optVal != undefined && optVal == 4) { + $('#contentA').val(''); + $("#boxA").show(); + } else if (optVal != undefined && optVal == 5) { $('#contentA').val(''); $('#contentLabA').html('网址链接*:'); $("#boxA").show(); @@ -867,6 +871,7 @@ export default { }); $("#resourceB").change(function () { var optVal = $(this).val(); + window.changeContent('B'); if (optVal != undefined && optVal == 4) { $('#contentB').val(''); $("#boxB").show(); @@ -885,6 +890,7 @@ export default { }); $("#resourceC").change(function () { var optVal = $(this).val(); + window.changeContent('C'); if (optVal != undefined && optVal == 4) { $('#contentC').val(''); $("#boxC").show(); @@ -903,6 +909,7 @@ export default { }); $("#resourceD").change(function () { var optVal = $(this).val(); + window.changeContent('D'); if (optVal != undefined && optVal == 4) { $('#contentD').val(''); $("#boxD").show(); @@ -921,6 +928,7 @@ export default { }); $("#resourceE").change(function () { var optVal = $(this).val(); + window.changeContent('E'); if (optVal != undefined && optVal == 4) { $('#contentE').val(''); $("#boxE").show();