enterprise.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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">
  101. <input type="file" id="file" name="images"/>
  102. <img id="onFile" src="" style="width: 180px;">
  103. </div>
  104. <div style="width:180px;height: 20px;margin-top: 30px;margin-left:20px;text-align: center;font-size: 10px;color: #AAA;text-align: left;">
  105. <div>仅支持JPG.PNG格式,且小于2M</div>
  106. <div>请上传清晰,端正,文字内容可确认图片,否则可能审核失败</div>
  107. </div>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="td_info">开户银行卡所在地</td>
  112. <td class="td_user_info user_info"><input type="text" name="bank_location" required="required" placeholder="请输入开户银行卡所在地" value="{$userinfo['bank_location']}"></td>
  113. </tr>
  114. <tr>
  115. <td class="td_info">开户银行</td>
  116. <td class="td_user_info user_info"><input type="text" name="bank" required="required" placeholder="请输入银行名称" value="{$userinfo['bank']}"></td>
  117. </tr>
  118. <tr>
  119. <td class="td_info"></td>
  120. <td class="td_user_info user_info"><input type="text" name="bankbranch" required="required" placeholder="请输入支行名称" value="{$userinfo['bankbranch']}"></td>
  121. </tr>
  122. <tr>
  123. <td class="td_info">开户银行账号</td>
  124. <td class="td_user_info user_info"><input type="text" name="debit_card" required="required" placeholder="请输入借记卡卡号" value="{$userinfo['userInfo_debit_card']}"></td>
  125. </tr>
  126. <!--<tr>-->
  127. <!--<td class="td_info"></td>-->
  128. <!--<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>-->
  129. <!--</tr>-->
  130. <tr>
  131. <td class="td_info"></td>
  132. <td class="td_user_info user_info">
  133. <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;">
  134. </td>
  135. </tr>
  136. </table>
  137. </div>
  138. </form>
  139. </div>
  140. <script>
  141. //console.log(document.getElementById("gangaotai").value);
  142. if(document.getElementById("hidden").value != ''){
  143. if(document.getElementById("hidden").value == document.getElementById("china").value){
  144. document.getElementById("china").style.borderColor = "dodgerblue";
  145. document.getElementById("china").name = "area";
  146. }
  147. if(document.getElementById("hidden").value == document.getElementById("gangaotai").value){
  148. document.getElementById("gangaotai").style.borderColor = "dodgerblue";
  149. document.getElementById("gangaotai").name = "area";
  150. }
  151. if(document.getElementById("hidden").value == document.getElementById("overseas").value){
  152. document.getElementById("overseas").style.borderColor = "dodgerblue";
  153. document.getElementById("overseas").name = "area";
  154. }
  155. }
  156. if(document.getElementById("whether").value != ''){
  157. if(document.getElementById("whether").value == document.getElementById("shi").value){
  158. document.getElementById("shi").style.borderColor = "dodgerblue";
  159. document.getElementById("shi").name = "whether";
  160. }
  161. if(document.getElementById("whether").value == document.getElementById("fou").value){
  162. document.getElementById("fou").style.borderColor = "dodgerblue";
  163. document.getElementById("fou").name = "whether";
  164. }
  165. }
  166. $("#cancel").click(function(){
  167. window.history.back(-1);
  168. });
  169. $("#china").click(function(){
  170. document.getElementById("china").style.borderColor = "dodgerblue";
  171. document.getElementById("gangaotai").style.borderColor = "darkgrey";
  172. document.getElementById("overseas").style.borderColor = "darkgrey";
  173. document.getElementById("china").name = "area";
  174. document.getElementById("gangaotai").name = "";
  175. document.getElementById("overseas").name = "";
  176. });
  177. $("#gangaotai").click(function(){
  178. document.getElementById("gangaotai").style.borderColor = "dodgerblue";
  179. document.getElementById("china").style.borderColor = "darkgrey";
  180. document.getElementById("overseas").style.borderColor = "darkgrey";
  181. document.getElementById("gangaotai").name = "area";
  182. document.getElementById("china").name = "";
  183. document.getElementById("overseas").name = "";
  184. });
  185. $("#overseas").click(function(){
  186. document.getElementById("overseas").style.borderColor = "dodgerblue";
  187. document.getElementById("gangaotai").style.borderColor = "darkgrey";
  188. document.getElementById("china").style.borderColor = "darkgrey";
  189. document.getElementById("overseas").name = "area";
  190. document.getElementById("gangaotai").name = "";
  191. document.getElementById("china").name = "";
  192. });
  193. $("#shi").click(function(){
  194. document.getElementById("shi").style.borderColor = "dodgerblue";
  195. document.getElementById("fou").style.borderColor = "darkgrey";
  196. document.getElementById("shi").name = "whether";
  197. document.getElementById("fou").name = "";
  198. });
  199. $("#fou").click(function(){
  200. document.getElementById("fou").style.borderColor = "dodgerblue";
  201. document.getElementById("shi").style.borderColor = "darkgrey";
  202. document.getElementById("fou").name = "whether";
  203. document.getElementById("shi").name = "";
  204. });
  205. </script>
  206. <script type="text/javascript">
  207. $(function() {
  208. $("#file").change(function (e) {
  209. var img = e.target;
  210. uploadImgFront(img)
  211. });
  212. function uploadImgFront(tag) {
  213. var file = tag.files[0];
  214. var imgSrc;
  215. if (!/image\/\w+/.test(file.type)) {
  216. alert("您选择的图片格式错误");
  217. let fileIput = $("#file").val("");
  218. //fileIput.after(fileIput.clone().val(""));
  219. $("#onFile").attr("src", '/static/user/images/header.png');
  220. //fileIput.remove();
  221. return false;
  222. }
  223. var reader = new FileReader();
  224. reader.readAsDataURL(file);
  225. reader.onload = function () {
  226. imgSrc = this.result;
  227. $("#onFile").attr("src", imgSrc);
  228. };
  229. }
  230. })
  231. layui.use('laydate', function(){
  232. var laydate = layui.laydate;
  233. //执行一个laydate实例
  234. laydate.render({
  235. elem: '#creatTime' //指定元素
  236. });
  237. laydate.render({
  238. elem:'#timeRang',
  239. range:true,
  240. format: 'yyyy/MM/dd',
  241. done: function(value, date){
  242. /* 时间选择完成后的回调 */
  243. }
  244. })
  245. });
  246. </script>
  247. {/block}