Browse Source

人社局加密接口对接

sandm 2 năm trước cách đây
mục cha
commit
3ef5f14601
1 tập tin đã thay đổi với 30 bổ sung4 xóa
  1. 30 4
      app/admin/view/enterprise/goto_enterprise_detail_page.html

+ 30 - 4
app/admin/view/enterprise/goto_enterprise_detail_page.html

@@ -52,6 +52,10 @@
         });
         {/if}
         Feng.getCheckLog("logTable", {"type": 10, "mainId": '{$ep.id}', "typeFileId": "", "active": 1})
+        $(".fa").bind("mouseover", function () {
+            var htm = $(this).data('msg');
+            $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
+        });
     });
 
 </script>
@@ -73,9 +77,9 @@
                                     {case value="403"}<i class="fa fa-times" style="color: red" data-msg="{$ep.rs.message}"></i>{/case}
                                     {case value="200"}
                                         {if $ep['rs']['data']['list'][0]['cnname'] == $ep['name']}
-                                            <i class="fa fa-check" style="color: green" data-msg="企业名称接口返回数据一致,信息正确"></i>
+                                            <i class="fa fa-check" style="color: green" data-msg="单位名称接口返回数据一致,信息正确"></i>
                                         {else /}
-                                            <i class="fa fa-times" style="color: red" data-msg="企业名称接口返回数据不一致,接口返回名称'{$ep.rs.data.list.0.cnname}'"></i>
+                                            <i class="fa fa-times" style="color: red" data-msg="单位名称接口返回数据不一致,接口返回名称'{$ep.rs.data.list.0.cnname}'"></i>
                                         {/if}
                                     {/case}
                                     {default /}<i class="fa fa-exclamation" style="color: #e6a23c" data-msg="接口返回消息:{$ep.rs.message},请自行审核"></i>
@@ -113,9 +117,9 @@
                                     {case value="403"}<i class="fa fa-times" style="color: red" data-msg="{$ep.rs.message}"></i>{/case}
                                     {case value="200"}
                                     {if $ep['rs']['data']['list'][0]['legalpersonname'] == $ep['legal']}
-                                    <i class="fa fa-check" style="color: green" data-msg="企业名称接口返回数据一致,信息正确"></i>
+                                    <i class="fa fa-check" style="color: green" data-msg="法人代表接口返回数据一致,信息正确"></i>
                                     {else /}
-                                    <i class="fa fa-times" style="color: red" data-msg="企业名称接口返回数据不一致,接口返回名称'{$ep.rs.data.list.0.legalpersonname}'"></i>
+                                    <i class="fa fa-times" style="color: red" data-msg="法人代表接口返回数据不一致,接口返回'{$ep.rs.data.list.0.legalpersonname}'"></i>
                                     {/if}
                                     {/case}
                                     {default /}<i class="fa fa-exclamation" style="color: #e6a23c" data-msg="接口返回消息:{$ep.rs.message},请自行审核"></i>
@@ -126,6 +130,17 @@
                             </td>
                             <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b">
                                 {$ep.address}
+                                {switch name="ep.rs.code"}
+                                {case value="403"}<i class="fa fa-times" style="color: red" data-msg="{$ep.rs.message}"></i>{/case}
+                                {case value="200"}
+                                {if $ep['rs']['data']['list'][0]['regaddress'] == $ep['address']}
+                                <i class="fa fa-check" style="color: green" data-msg="单位地址接口返回数据一致,信息正确"></i>
+                                {else /}
+                                <i class="fa fa-times" style="color: red" data-msg="单位地址接口返回数据不一致,接口返回'{$ep.rs.data.list.0.regaddress}'"></i>
+                                {/if}
+                                {/case}
+                                {default /}<i class="fa fa-exclamation" style="color: #e6a23c" data-msg="接口返回消息:{$ep.rs.message},请自行审核"></i>
+                                {/switch}
                             </td>
                         </tr>
                         <tr>
@@ -140,6 +155,17 @@
                             </td>
                             <td class="value1 word-wrap" style="border-right: 1px solid #c0a16b">
                                 {$ep.ephone}
+                                {switch name="ep.rs.code"}
+                                {case value="403"}<i class="fa fa-times" style="color: red" data-msg="{$ep.rs.message}"></i>{/case}
+                                {case value="200"}
+                                {if $ep['rs']['data']['list'][0]['companyphone'] == $ep['ephone']}
+                                <i class="fa fa-check" style="color: green" data-msg="单位电话接口返回数据一致,信息正确"></i>
+                                {else /}
+                                <i class="fa fa-times" style="color: red" data-msg="单位电话接口返回数据不一致,接口返回'{$ep.rs.data.list.0.companyphone}'"></i>
+                                {/if}
+                                {/case}
+                                {default /}<i class="fa fa-exclamation" style="color: #e6a23c" data-msg="接口返回消息:{$ep.rs.message},请自行审核"></i>
+                                {/switch}
                             </td>
                         </tr>
                         <tr>