修复资源位展示问题

This commit is contained in:
liaozetao
2023-12-20 12:01:42 +08:00
parent 6154603e16
commit 05df12c9f2

View File

@@ -867,7 +867,10 @@ export default {
}); });
$("#resourceB").change(function () { $("#resourceB").change(function () {
var optVal = $(this).val(); 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(''); $('#contentB').val('');
$('#contentLabB').html('网址链接<font color="red">*</font>:'); $('#contentLabB').html('网址链接<font color="red">*</font>:');
$("#boxB").show(); $("#boxB").show();
@@ -882,7 +885,10 @@ export default {
}); });
$("#resourceC").change(function () { $("#resourceC").change(function () {
var optVal = $(this).val(); 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(''); $('#contentC').val('');
$('#contentLabC').html('网址链接<font color="red">*</font>:'); $('#contentLabC').html('网址链接<font color="red">*</font>:');
$("#boxC").show(); $("#boxC").show();
@@ -897,7 +903,10 @@ export default {
}); });
$("#resourceD").change(function () { $("#resourceD").change(function () {
var optVal = $(this).val(); 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(''); $('#contentD').val('');
$('#contentLabD').html('网址链接<font color="red">*</font>:'); $('#contentLabD').html('网址链接<font color="red">*</font>:');
$("#boxD").show(); $("#boxD").show();
@@ -912,7 +921,10 @@ export default {
}); });
$("#resourceE").change(function () { $("#resourceE").change(function () {
var optVal = $(this).val(); 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(''); $('#contentE').val('');
$('#contentLabE').html('网址链接<font color="red">*</font>:'); $('#contentLabE').html('网址链接<font color="red">*</font>:');
$("#boxE").show(); $("#boxE").show();