Compare commits
No commits in common. 'a2a02a35f5bcb638e280258191b0cb71e80b9b9e' and '63fb62803311bf29195d919eb8ea63944c37787b' have entirely different histories.
a2a02a35f5
...
63fb628033
1 changed files with 0 additions and 40 deletions
@ -1,40 +0,0 @@
@@ -1,40 +0,0 @@
|
||||
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); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue