enterprise.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. {extend name="layout:home" /}
  2. {block name="container"}
  3. <style>
  4. .information{
  5. margin-left: 100px;
  6. margin-top: 40px;
  7. }
  8. table{
  9. margin-left: 100px;
  10. margin-top: 10px;
  11. }
  12. .td_info{
  13. width: 180px;
  14. height: 60px;
  15. line-height: 60px;
  16. }
  17. .td_user_info{
  18. width: 500px;
  19. height: 60px;
  20. line-height: 60px;
  21. }
  22. table .user_info>input{
  23. border: 1px #aaa solid;
  24. border-radius: 2px;
  25. height: 30px;
  26. width: 210px;
  27. line-height:30px ;
  28. }
  29. .picture td{
  30. height: 180px;
  31. }
  32. div.images{
  33. width: 180px;
  34. height: 140px;
  35. border: 1px #aaa solid;
  36. }
  37. td.address input{
  38. width: 60px;
  39. margin-left: 10px;
  40. background-color: white;
  41. text-align: center;
  42. }
  43. td.images>div{
  44. float: left;
  45. }
  46. td.images>div>div{
  47. height: 30px;
  48. line-height:30px ;
  49. font-size: 10px;
  50. }
  51. </style>
  52. <div class="layui-tab layui-tab-card">
  53. <form method="post" enctype="multipart/form-data">
  54. <div class="information">
  55. <div style="color:dodgerblue;">请务必保证您填写的信息准确无误,否则有可能造成认证失败</div>
  56. </div>
  57. <div class="info">
  58. <table>
  59. <tr>
  60. <td class="td_info">企业名称</td>
  61. <td class="td_user_info user_info"><input type="text" name="enterprise" required="required" placeholder="请输入企业名称" value="{$userinfo['enterprise']}"></td>
  62. </tr>
  63. <tr>
  64. <td class="td_info">企业通讯地址</td>
  65. <td class="td_user_info user_info address">
  66. <input style="margin-left: 0;" readonly="readonly" type="text" id="china" value="中国大陆">
  67. <input type="text" readonly="readonly" id="gangaotai" value="港澳台">
  68. <input type="text" readonly="readonly" id="overseas" value="海外">
  69. <input type="text"style="display: none;" id="hidden" value="{$userinfo['area']}">
  70. </td>
  71. </tr>
  72. <tr>
  73. <td class="td_info"></td>
  74. <td class="td_user_info user_info"><input type="text" name="enterprise_location" required="required" placeholder="请输入公司所在地" value="{$userinfo['enterprise_location']}"></td>
  75. </tr>
  76. <tr>
  77. <td class="td_info"></td>
  78. <td class="td_user_info user_info"><input type="text" name="enterprise_address" required="required" placeholder="企业通讯地址" value="{$userinfo['enterprise_address']}"></td>
  79. </tr>
  80. <tr>
  81. <td class="td_info">联系人姓名</td>
  82. <td class="td_user_info user_info"><input type="text" name="contact_name" required="required" placeholder="请输入联系人姓名" value="{$userinfo['contact_name']}"></td>
  83. <td class="td_user_info"></td>
  84. </tr>
  85. <tr>
  86. <td class="td_info">是否三证合一</td>
  87. <td class="td_user_info user_info address">
  88. <input style="margin-left: 0;" type="text" readonly="readonly" id="shi" value="是">
  89. <input type="text" readonly="readonly" id="fou" value="否">
  90. <input type="text"style="display: none;" id="whether" value="{$userinfo['whether']}">
  91. </td>
  92. </tr>
  93. <tr>
  94. <td class="td_info">社会信用代码</td>
  95. <td class="td_user_info user_info"><input type="text" name="credit_code" required="required" placeholder="请填写社会信用代码" value="{$userinfo['credit_code']}"></td>
  96. </tr>
  97. <tr class="picture">
  98. <td class="td_info"><div style="margin-top: -70px;">营业执照</div></td>
  99. <td class="td_user_info user_info images">
  100. <div class="images"><input type="file" name="images" /></div>
  101. <div style="width:180px;height: 20px;margin-top: 30px;margin-left:20px;text-align: center;font-size: 10px;color: #AAA;text-align: left;">
  102. <div>仅支持JPG.PNG格式,且小于2M</div>
  103. <div>请上传清晰,端正,文字内容可确认图片,否则可能审核失败</div>
  104. </div>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td class="td_info">开户银行卡所在地</td>
  109. <td class="td_user_info user_info"><input type="text" name="bank_location" required="required" placeholder="请输入开户银行卡所在地" value="{$userinfo['bank_location']}"></td>
  110. </tr>
  111. <tr>
  112. <td class="td_info">开户银行</td>
  113. <td class="td_user_info user_info"><input type="text" name="bank" required="required" placeholder="请输入银行名称" value="{$userinfo['bank']}"></td>
  114. </tr>
  115. <tr>
  116. <td class="td_info"></td>
  117. <td class="td_user_info user_info"><input type="text" name="bankbranch" required="required" placeholder="请输入支行名称" value="{$userinfo['bankbranch']}"></td>
  118. </tr>
  119. <tr>
  120. <td class="td_info">开户银行账号</td>
  121. <td class="td_user_info user_info"><input type="text" name="debit_card" required="required" placeholder="请输入借记卡卡号" value="{$userinfo['userInfo_debit_card']}"></td>
  122. </tr>
  123. <tr>
  124. <td class="td_info"></td>
  125. <td class="td_user_info"><input type="checkbox" name="ch_box" id="ch_box" onclick="c_box()" /><span>同意 <a href="shenming.html" target="_blank"> 真实性声明</a></span></td>
  126. </tr>
  127. <tr>
  128. <td class="td_info"></td>
  129. <td class="td_user_info user_info">
  130. <input type="submit" value="确认" style="width: 70px;">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="button" id="cancel" value="取消" style="width: 70px;">
  131. </td>
  132. </tr>
  133. </table>
  134. </div>
  135. </form>
  136. </div>
  137. <script>
  138. //console.log(document.getElementById("gangaotai").value);
  139. if(document.getElementById("hidden").value != ''){
  140. if(document.getElementById("hidden").value == document.getElementById("china").value){
  141. document.getElementById("china").style.borderColor = "dodgerblue";
  142. document.getElementById("china").name = "area";
  143. }
  144. if(document.getElementById("hidden").value == document.getElementById("gangaotai").value){
  145. document.getElementById("gangaotai").style.borderColor = "dodgerblue";
  146. document.getElementById("gangaotai").name = "area";
  147. }
  148. if(document.getElementById("hidden").value == document.getElementById("overseas").value){
  149. document.getElementById("overseas").style.borderColor = "dodgerblue";
  150. document.getElementById("overseas").name = "area";
  151. }
  152. }
  153. if(document.getElementById("whether").value != ''){
  154. if(document.getElementById("whether").value == document.getElementById("shi").value){
  155. document.getElementById("shi").style.borderColor = "dodgerblue";
  156. document.getElementById("shi").name = "whether";
  157. }
  158. if(document.getElementById("whether").value == document.getElementById("fou").value){
  159. document.getElementById("fou").style.borderColor = "dodgerblue";
  160. document.getElementById("fou").name = "whether";
  161. }
  162. }
  163. $("#cancel").click(function(){
  164. window.history.back(-1);
  165. });
  166. $("#china").click(function(){
  167. document.getElementById("china").style.borderColor = "dodgerblue";
  168. document.getElementById("gangaotai").style.borderColor = "darkgrey";
  169. document.getElementById("overseas").style.borderColor = "darkgrey";
  170. document.getElementById("china").name = "area";
  171. document.getElementById("gangaotai").name = "";
  172. document.getElementById("overseas").name = "";
  173. });
  174. $("#gangaotai").click(function(){
  175. document.getElementById("gangaotai").style.borderColor = "dodgerblue";
  176. document.getElementById("china").style.borderColor = "darkgrey";
  177. document.getElementById("overseas").style.borderColor = "darkgrey";
  178. document.getElementById("gangaotai").name = "area";
  179. document.getElementById("china").name = "";
  180. document.getElementById("overseas").name = "";
  181. });
  182. $("#overseas").click(function(){
  183. document.getElementById("overseas").style.borderColor = "dodgerblue";
  184. document.getElementById("gangaotai").style.borderColor = "darkgrey";
  185. document.getElementById("china").style.borderColor = "darkgrey";
  186. document.getElementById("overseas").name = "area";
  187. document.getElementById("gangaotai").name = "";
  188. document.getElementById("china").name = "";
  189. });
  190. $("#shi").click(function(){
  191. document.getElementById("shi").style.borderColor = "dodgerblue";
  192. document.getElementById("fou").style.borderColor = "darkgrey";
  193. document.getElementById("shi").name = "whether";
  194. document.getElementById("fou").name = "";
  195. });
  196. $("#fou").click(function(){
  197. document.getElementById("fou").style.borderColor = "dodgerblue";
  198. document.getElementById("shi").style.borderColor = "darkgrey";
  199. document.getElementById("fou").name = "whether";
  200. document.getElementById("shi").name = "";
  201. });
  202. </script>
  203. <script type="text/javascript">
  204. layui.use('laydate', function(){
  205. var laydate = layui.laydate;
  206. //执行一个laydate实例
  207. laydate.render({
  208. elem: '#creatTime' //指定元素
  209. });
  210. laydate.render({
  211. elem:'#timeRang',
  212. range:true,
  213. format: 'yyyy/MM/dd',
  214. done: function(value, date){
  215. /* 时间选择完成后的回调 */
  216. }
  217. })
  218. });
  219. </script>
  220. {/block}