From 5ddf2b6b4625bfbd28bdf9149e53382cb8966dbe Mon Sep 17 00:00:00 2001 From: huangdehua <2329023417@qq.com> Date: Thu, 7 May 2026 15:23:18 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=88=E4=BC=9A=E8=B4=B9=E7=BC=B4?= =?UTF-8?q?=E7=BA=B3=EF=BC=89=20=E7=95=8C=E9=9D=A2=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E4=BB=A5=E5=8F=8A=E5=80=BC=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=98=BE=E9=9A=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/MembershipPayShowHidePlugin.java | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 common/common-association/src/main/java/apelet/association/plugin/MembershipPayShowHidePlugin.java diff --git a/common/common-association/src/main/java/apelet/association/plugin/MembershipPayShowHidePlugin.java b/common/common-association/src/main/java/apelet/association/plugin/MembershipPayShowHidePlugin.java new file mode 100644 index 0000000..4edc78c --- /dev/null +++ b/common/common-association/src/main/java/apelet/association/plugin/MembershipPayShowHidePlugin.java @@ -0,0 +1,40 @@ +package apelet.association.plugin; + +import apelet.common.core.object.ObjectValue; +import apelet.common.online.abstractplugin.ExecutePluginParent; +import apelet.common.online.model.constant.AttributeEnum; + +import java.util.Objects; + + +/** + * @ClassName: MembershipPayShowHidePlugin + * @Author: huangdehua + * @Date: 2026/5/7 15:00 + * @Description: 会费缴纳界面会员类别为非会员时显示银行收款凭证号字段,其他情况隐藏 + */ +public class MembershipPayShowHidePlugin extends ExecutePluginParent { + @Override + public void formCreated(String widgetVariableName, ObjectValue objectValue) { + super.formCreated(widgetVariableName, objectValue); + String membershipType = objectValue.getString("membershipType"); + if (Objects.equals(membershipType, "E")){ + super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, true); + }else { + super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, false); + } + } + + @Override + public void change(String widgetVariableName, ObjectValue objectValue) { + super.change(widgetVariableName, objectValue); + String membershipType = objectValue.getString("membership_type"); + if (Objects.equals(widgetVariableName, "membershipType")){ + if (Objects.equals(membershipType, "E")){ + super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, true); + }else { + super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, false); + } + } + } +}