chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<!--列表页认证图标相关操作  目前只有crm在用-->
<script src="{yun:}$config.sy_weburl{/yun}/js/viewer/viewer.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/viewer/viewer.min.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
 
<!-- 邮箱认证弹出框 -->
<div id="renemail" style="display:none;text-align:center; ">
    <div class="mt10">
        <form class="layui-form" action="index.php?m=admin_company&c=emaillock" target="supportiframe" method="post" autocomplete="off">
            <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                <tr>
                    <th width="80">邮箱:</th>
                    <td align="left">
                        <div class="layui-input-block">
                            <input type="text" id="comemail" class="tty_input t_w200" name="comemail" value="">
                        </div>
                    </td>
                </tr>
                <tr>
                    <th width="80">认证操作:</th>
                    <td align="left">
                        <div class="layui-input-block">
                            <input name="estatus" id="estatus0"  value="0" title="待认证" type="radio" />
                            <input name="estatus" id="estatus1"  value="1" title="已认证" type="radio" />
                        </div>
                    </td>
                </tr>
 
                <tr>
                    <td colspan='2' align="center">
                        <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                        <input type="button" class="admin_examine_bth_qx closebutton" value='取消'>
                    </td>
                </tr>
            </table>
 
            <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
            <input type="hidden" name="uid" id="uid" value="0" >
        </form>
    </div>
</div>
<!-- 邮箱认证弹出框END -->
 
<!--手机认证弹出框-->
<div id="renphone" style="display:none;text-align:center; ">
    <div class="mt10">
        <form class="layui-form" action="index.php?m=admin_company&c=phonelock" target="supportiframe" method="post" autocomplete="off">
            <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                <tr>
                    <th width="80">手机号码:</th>
                    <td align="left">
                        <div class="layui-input-block">
                            <input type="text" class="tty_input t_w200" id="comlinktel" name="comlinktel" value="">
                        </div>
                    </td>
                </tr>
                <tr>
                    <th width="80">认证操作:</th>
                    <td align="left">
                        <div class="layui-input-block">
                            <input name="mstatus" id="pstatus0"  value="0" title="待认证" type="radio" />
                            <input name="mstatus" id="pstatus1"  value="1" title="已认证" type="radio" />
                        </div>
                    </td>
                </tr>
 
                <tr>
                    <td colspan='2' align="center">
                        <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                        <input type="button" class="admin_examine_bth_qx closebutton" value='取消'>
                    </td>
                </tr>
            </table>
 
            <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
            <input type="hidden" name="uid" id="phoneuid" value="0" >
        </form>
    </div>
</div>
<!-- 手机认证end -->
<!-- 证书认证弹出框 -->
<div id="preview" style="display:none;width:450px ">
    <div style="height:500px; overflow:auto;width:650px;">
        <form class="layui-form" name="formstatus" action="index.php?m=admin_company&c=comStatus" target="supportiframe" method="post" onsubmit="return tcdiv();">
 
            <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
 
            <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                <tr>
                    <th>公司名称:</th>
                    <td align="left"><span id="comname_id"></span></td>
                </tr>
                {yun:}if $config.com_social_credit=="1"{/yun}
                <tr>
                    <th>统一社会信用代码:</th>
                    <td align="left"><span id="social_credit"></span></td>
                </tr>
                <tr>
                    {yun:}/if{/yun}
                    <th class="t_fr">证件照片:</th>
                    <td align="left">
                        <div class="zj_box_list">
                            <div id="preview_show" class="zj_box"></div>
                            <div class="zj_box_name">营业执照/代码证</div>
                        </div>
                        {yun:}if $config.com_cert_owner=="1"{/yun}
                        <div class="zj_box_list">
                            <div id="owner_cert_show" class="zj_box"></div>
                            <div class="zj_box_name"> 经办人身份证</div>
                        </div>
 
                        {yun:}/if{/yun}
                        {yun:}if $config.com_cert_wt=="1"{/yun}
 
                        <div class="zj_box_list">
                            <div id="wt_cert_show" class="zj_box"></div>
                            <div class="zj_box_name">   委托书/承诺函</div>
                        </div>
                        {yun:}/if{/yun}
                        {yun:}if $config.com_cert_other=="1"{/yun}
                        <div class="zj_box_list">
                            <div id="other_cert_show" class="zj_box"></div>
                            <div class="zj_box_name">   其他材料</div>
                        </div>
                        {yun:}/if{/yun}
                        <div class="clear"></div>
                        <div class=""><span class="admin_web_tip">说明:点击图片查看原图</span></div>
                    </td>
                </tr>
 
                <tr>
                    <th width="130">审核操作:</th>
                    <td align="left">
                        <div class="layui-input-block">
                            <input name="r_status" id="comstatus1" value="1" title="正常" type="radio" />
                            <input name="r_status" id="comstatus2" value="2" title="未通过" type="radio" />
                        </div>
                    </td>
                </tr>
                {yun:}if $config.com_free_status=='1'{/yun}
                <tr>
                    <th>同步操作:</th>
                    <td align="left">
                        <div class="layui-input-block">
                            <input name="job_status" value="1" title="审核" type="checkbox" />
                            【说明:所有未审核职位同步审核成功】
                        </div>
                    </td>
                </tr>
                {yun:}/if{/yun}
 
                <tr>
                    <th class="t_fr">审核说明:</th>
                    <td align="left"><textarea id="renzhencontent" name="statusbody" class="admin_explain_textarea"></textarea></td>
                </tr>
                <tr>
                    <td colspan='2' align="center">
                        <div class=""> <input type="submit" value='确认' class="admin_examine_bth"> <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'></div>
                    </td>
                </tr>
            </table>
            <input name="noyyzz" id="noyyzz" value="" type="hidden">
            <input name="uid" id="comuid" value="0" type="hidden">
        </form>
 
    </div>
</div>
<!-- 证书认证弹出框end -->
<div id="acwxbind" class="wx_login_show none">
    <div class="job_tel_wx_box">
        <div id="wx_login_qrcode" class=" job_tel_wx_zs">正在获取二维码...</div>
        <div class="job_tel_wx_p"><span class="job_tel_wx_bth">将二维码发给企业,企业扫码后绑定</span></div>
        <div id="wx_sx" class="none">
            <div class="fast_login_show_sxbox"><a href="javascript:void(0);" onclick="getwxlogincode()" class="fast_login_show_sxicon"></a>二维码已失效点击刷新</div>
        </div>
    </div>
</div>
 
<script>
    $(document).ready(function () {
        /* 公众号,微信小程序和APP微信绑定状态显示 */
        $(".wxBindmsgs").hover(function(){
            var msg=$(this).attr('msg');
            msg += '<br/>点击图标,可弹出绑定微信二维码';
            layer.tips(msg, this, {guide: 1, style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC'],area: ['250px', 'auto'],time:5000});
            $(".xubox_layer").addClass("xubox_tips_border");
        },function(){
 
            layer.closeAll('tips');
 
        });
 
        /* 邮箱绑定状态显示 */
        $(".mt_email").hover(function(){
            var msg=$(this).attr('msg');
            msg += '<br/>点击图标,可弹出绑定邮箱';
            layer.tips(msg, this, {guide: 1, style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC'],area: ['200px', 'auto'],time:5000});
            $(".xubox_layer").addClass("xubox_tips_border");
        },function(){
 
            layer.closeAll('tips');
 
        });
 
        /* 手机号绑定状态显示 */
        $(".mt_phone").hover(function(){
            var msg=$(this).attr('msg');
            msg += '<br/>点击图标,可弹出绑定手机号';
            layer.tips(msg, this, {guide: 1, style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC'],area: ['200px', 'auto'],time:5000});
            $(".xubox_layer").addClass("xubox_tips_border");
        },function(){
 
            layer.closeAll('tips');
 
        });
 
        /* 企业资质绑定状态显示 */
        $(".m_yyzz").hover(function(){
            var msg=$(this).attr('msg');
            msg += '<br/>点击图标,可查看企业资质认证';
            layer.tips(msg, this, {guide: 1, style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC'],area: ['200px', 'auto'],time:5000});
            $(".xubox_layer").addClass("xubox_tips_border");
        },function(){
            layer.closeAll('tips');
        });
 
        /* 邮件认证 */
        $(".mt_email").click(function(data){
            var status = $(this).attr("data-status");
            var uid    = $(this).attr("data-url");
            var email  = $(this).attr("data-mail");
            $('#comname_id').html(name);
            $('#comemail').val(email);
            $('#uid').val(uid);
            $("#estatus" + status).attr("checked", true);
            layui.use([ 'form' ], function() {
                var form = layui.form;
                form.render();
            });
            $.layer({
                type : 1,
                title : '邮箱认证',
                closeBtn : [ 0, true ],
                offset : [ '80px', '' ],
                border : [ 10, 0.3, '#000', true ],
                area : [ '350px', '220px' ],
                page : {
                    dom : '#renemail'
                }
            });
 
            $('.closebutton').on('click', function(){
                var index = layer.index;
                layer.close(index);
            });
        })
 
        /* 手机认证 */
        $(".mt_phone").click(function(data){
            var status   =     $(this).attr("data-status");
            var uid      =     $(this).attr("data-url");
            var linktel  =     $(this).attr("data-phone");
            $('#comlinktel').val(linktel);
            $('#phoneuid').val(uid);
            $("#pstatus" + status).attr("checked", true);
            layui.use([ 'form' ], function() {
                var form = layui.form;
                form.render();
            });
            $.layer({
                type : 1,
                title : '手机认证',
                closeBtn : [ 0, true ],
                offset : [ '80px', '' ],
                border : [ 10, 0.3, '#000', true ],
                area : [ '350px', '220px' ],
                page : {
                    dom : '#renphone'
                }
            });
        })
 
        /* 企业资质 */
        $(".m_yyzz").click( function() {
            var url = $(this).attr("data-url");
            var ourl = $(this).attr("data-ourl");
            var wurl = $(this).attr("data-wurl");
            var otherurl = $(this).attr("data-otherurl");
            var name = $(this).attr("data-name");
            var social_credit = $(this).attr("data-scredit");
            var uid = $(this).attr("data-uid");
            var pytoken = $('#pytoken').val();
            var picobj = {
                'preview':url,
            {yun:}if $config.com_cert_owner=="1"{/yun}'owner_cert':ourl,{yun:}/if{/yun}
                {yun:}if $config.com_cert_wt=="1"{/yun}'wt_cert'   :wurl,{yun:}/if{/yun}
                    {yun:}if $config.com_cert_other=="1"{/yun}'other_cert':otherurl{yun:}/if{/yun}
                    };
                        $("#comname_id").html(name);
                        if($("#social_credit")){
                            $("#social_credit").html(social_credit);
                        }
                        $("#comuid").val(uid);
                        $("#comstatus" + status).attr("checked", true);
                        layui.use([ 'form' ], function() {
                            var form = layui.form;
                            form.render();
                        });
                        $.post("index.php?m=comcert&c=sbody", {uid: uid,pytoken: pytoken}, function(msg) {
                            $("#renzhencontent").val(msg);
                        });
 
                        for(let i in picobj){
                            if($("#"+i+"_show")){
                                $("#"+i+"_show").html("<img src='" + picobj[i] + "' style='width:100px;height:100px' />");
                                if(picobj[i]){
                                    // $("#"+i+"_url").attr("href",picobj[i]);
                                    $("#zw_"+i).hide();
                                    $("#"+i+"_url").show();
                                }else{
                                    $("#"+i+"_url").hide();
                                    $("#noyyzz").val('1');
                                    $("#zw_"+i).show();
                                }
                            }
 
                        }
 
 
                        $.layer({
                            type : 1,
                            title : '查看图片',
                            closeBtn : [ 0, true ],
                            offset : [ '80px', '' ],
                            border : [ 10, 0.3, '#000', true ],
                            area : [ '650px', 'auto' ],
                            page : {
                                dom : '#preview'
                            }
                        });
                        var viewer = new Viewer(document.getElementById('preview'), {
                            url: 'lay-src',
                            toolbar: true,  //显示工具条
                            show: function (){        // 动态加载图片后,更新实例
                                viewer.update();
                            },
                        });
                    });
 
        $('.closebutton').on('click', function(){
            var index = layer.index;
            layer.close(index);
        });
    });
 
    // 显示微信绑定弹窗
    function showQrcode(comid,wxid){
        if(wxid == ''){
            acwxbind(comid);
            $.layer({
                type: 1,
                title: '微信扫码绑定',
                closeBtn: [0, true],
                offset: ['100px', ''],
                border: [10, 0.3, '#000', true],
                area: ['300px', '300px'],
                page: {
                    dom: "#acwxbind"
                },
                close: function(){
                    if(setval){
                        clearInterval(setval);
                        setval = null;
                    }
                    if(setwout){
                        clearTimeout(setwout);
                        setwout = null;
                    }
                }
            });
        }else{
            layer.msg('企业已绑定微信',2,9);
        }
    }
 
    // 获取微信绑定二维码
    var setval,
            setwout;
    function acwxbind(comid){
        var pytoken = $("#pytoken").val();
        $.post('index.php?m=admin_company&c=acwxbind', {
            comid: comid,
            pytoken: pytoken
        }, function(data) {
            if(data == 0) {
                $('#wx_login_qrcode').html('二维码获取失败..');
            } else {
                $('#wx_login_qrcode').html('<img src="' + data + '" width="140" height="140">');
                setval = setInterval(function(){
                    $.post('index.php?m=admin_company&c=getacbindstatus', {
                        comid: comid,
                        pytoken: pytoken
                    }, function(data) {
                        var data = eval('(' + data + ')');
                        if(data.msg != '') {
                            clearInterval(setval);
                            setval = null;
                            layer.msg(data.msg, 2, 9, function() {
                                window.location.reload();
                            });
                        }
                    });
                }, 2000);
                if(setwout){
                    clearTimeout(setwout);
                    setwout = null;
                }
                setwout = setTimeout(function(){
                    if(setval){
                        clearInterval(setval);
                        setval = null;
                    }
                    var wx_sx = $("#wx_sx").html();
                    $('#wx_login_qrcode').html(wx_sx);
                },300*1000);
            }
        });
    }
</script>