From 44c2d6a14afc95239f19c41c311abb5df7d89e0e Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 13 六月 2023 17:38:41 +0800
Subject: [PATCH] 修改bug

---
 management/guns-admin/src/main/webapp/WEB-INF/view/system/tAgent/enterprisePage.html |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/WEB-INF/view/system/tAgent/enterprisePage.html b/management/guns-admin/src/main/webapp/WEB-INF/view/system/tAgent/enterprisePage.html
index aa3076d..c96219d 100644
--- a/management/guns-admin/src/main/webapp/WEB-INF/view/system/tAgent/enterprisePage.html
+++ b/management/guns-admin/src/main/webapp/WEB-INF/view/system/tAgent/enterprisePage.html
@@ -71,7 +71,7 @@
                         </div>
                     </div>
                     <div class="form-group">
-                        <label class="col-sm-3 control-label">*公司名称:</label>
+                        <label class="col-sm-3 control-label">*姓名:</label>
                         <div class="col-sm-9">
                             <input class="form-control" id="merchantName" name="merchantName" value="${item.merchantName}" type="text" maxlength="20" placeholder="请输入">
                         </div>
@@ -140,8 +140,8 @@
                             <input class="form-control" id="legalPerson" name="legalPerson" value="${item.legalPerson}" type="text" maxlength="20" placeholder="请输入">
                         </div>
                     </div>
-                    <div class="form-group qy">
-                        <label class="col-sm-3 control-label">*法人身份证号:</label>
+                    <div class="form-group">
+                        <label class="col-sm-3 control-label">*身份证号:</label>
                         <div class="col-sm-9">
                             <input class="form-control" id="merchantIDCode" name="merchantIDCode" value="${item.merchantIDCode}" type="text" maxlength="20" placeholder="请输入">
                         </div>
@@ -294,12 +294,16 @@
         if(userType == 0){
             $('.qy').hide();
             $('#bankAcctType').html('<option value="2">对私</option>')
+            $('#merchantIDCode').parent('div').siblings('label').text('*身份证号')
+            $('#merchantName').parent('div').siblings('label').text('*姓名')
         }else{
             $('.qy').show();
             $('#bankAcctType').html('<option value="1">对公</option>')
+            $('#merchantIDCode').parent('div').siblings('label').text('*法人身份证号')
+            $('#merchantName').parent('div').siblings('label').text('*公司名称')
         }
     })
-    $('#userType').click();
+
 
     function initCity(id) {
         let city = "";
@@ -439,6 +443,8 @@
         $('#provCodeEnterprise').val($('#provCodeEnterprise1').val());
         initArea($('#provCodeEnterprise'), 'areaCodeEnterprise');
         $('#areaCodeEnterprise').val($('#areaCodeEnterprise1').val());
+
+        $('#userType').change();
     })
 </script>
 @}

--
Gitblit v1.7.1