diff --git a/src/views/firstpage/RecommendResourceAdminView.vue b/src/views/firstpage/RecommendResourceAdminView.vue
index a8c8b1a..32e22cf 100644
--- a/src/views/firstpage/RecommendResourceAdminView.vue
+++ b/src/views/firstpage/RecommendResourceAdminView.vue
@@ -867,7 +867,10 @@ export default {
});
$("#resourceB").change(function () {
var optVal = $(this).val();
- if (optVal != undefined && optVal == 5) {
+ if (optVal != undefined && optVal == 4) {
+ $('#contentB').val('');
+ $("#boxB").show();
+ } else if (optVal != undefined && optVal == 5) {
$('#contentB').val('');
$('#contentLabB').html('网址链接*:');
$("#boxB").show();
@@ -882,7 +885,10 @@ export default {
});
$("#resourceC").change(function () {
var optVal = $(this).val();
- if (optVal != undefined && optVal == 5) {
+ if (optVal != undefined && optVal == 4) {
+ $('#contentC').val('');
+ $("#boxC").show();
+ } else if (optVal != undefined && optVal == 5) {
$('#contentC').val('');
$('#contentLabC').html('网址链接*:');
$("#boxC").show();
@@ -897,7 +903,10 @@ export default {
});
$("#resourceD").change(function () {
var optVal = $(this).val();
- if (optVal != undefined && optVal == 5) {
+ if (optVal != undefined && optVal == 4) {
+ $('#contentD').val('');
+ $("#boxD").show();
+ } else if (optVal != undefined && optVal == 5) {
$('#contentD').val('');
$('#contentLabD').html('网址链接*:');
$("#boxD").show();
@@ -912,7 +921,10 @@ export default {
});
$("#resourceE").change(function () {
var optVal = $(this).val();
- if (optVal != undefined && optVal == 5) {
+ if (optVal != undefined && optVal == 4) {
+ $('#contentE').val('');
+ $("#boxE").show();
+ } else if (optVal != undefined && optVal == 5) {
$('#contentE').val('');
$('#contentLabE').html('网址链接*:');
$("#boxE").show();