From 05df12c9f2204d236fa46c406cb445ef9d25f845 Mon Sep 17 00:00:00 2001
From: liaozetao <1107136310@qq.com>
Date: Wed, 20 Dec 2023 12:01:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=84=E6=BA=90=E4=BD=8D?=
=?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../firstpage/RecommendResourceAdminView.vue | 20 +++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
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();