修改展示逻辑

This commit is contained in:
liaozetao
2023-12-20 14:28:50 +08:00
parent e3b86f1ce5
commit 1c5915a650

View File

@@ -852,7 +852,11 @@ export default {
}) })
$("#resourceA").change(function () { $("#resourceA").change(function () {
var optVal = $(this).val(); 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(''); $('#contentA').val('');
$('#contentLabA').html('网址链接<font color="red">*</font>:'); $('#contentLabA').html('网址链接<font color="red">*</font>:');
$("#boxA").show(); $("#boxA").show();
@@ -867,6 +871,7 @@ export default {
}); });
$("#resourceB").change(function () { $("#resourceB").change(function () {
var optVal = $(this).val(); var optVal = $(this).val();
window.changeContent('B');
if (optVal != undefined && optVal == 4) { if (optVal != undefined && optVal == 4) {
$('#contentB').val(''); $('#contentB').val('');
$("#boxB").show(); $("#boxB").show();
@@ -885,6 +890,7 @@ export default {
}); });
$("#resourceC").change(function () { $("#resourceC").change(function () {
var optVal = $(this).val(); var optVal = $(this).val();
window.changeContent('C');
if (optVal != undefined && optVal == 4) { if (optVal != undefined && optVal == 4) {
$('#contentC').val(''); $('#contentC').val('');
$("#boxC").show(); $("#boxC").show();
@@ -903,6 +909,7 @@ export default {
}); });
$("#resourceD").change(function () { $("#resourceD").change(function () {
var optVal = $(this).val(); var optVal = $(this).val();
window.changeContent('D');
if (optVal != undefined && optVal == 4) { if (optVal != undefined && optVal == 4) {
$('#contentD').val(''); $('#contentD').val('');
$("#boxD").show(); $("#boxD").show();
@@ -921,6 +928,7 @@ export default {
}); });
$("#resourceE").change(function () { $("#resourceE").change(function () {
var optVal = $(this).val(); var optVal = $(this).val();
window.changeContent('E');
if (optVal != undefined && optVal == 4) { if (optVal != undefined && optVal == 4) {
$('#contentE').val(''); $('#contentE').val('');
$("#boxE").show(); $("#boxE").show();