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
var lineList = [],
    lineInt = null;
$(function(){
    $("input[name='dxzph[]']").each(function(index, value){
        lineList.push($(value).val());
    });
})
function tabChange(obj,id){
    $(obj).parent().find('li').removeClass('wlzp_show_tit_cur');
    $(obj).attr('class','wlzp_show_tit_cur');
    $(".zphnetdiv").addClass("none");
    $("#"+id).removeClass("none");
    $("#boxtype").val(id);
    if(id == 'hall'){
        $("#ztype").val('resume');
    }else{
        $("#ztype").val('job');
    }
    window.location.href = "#" + id;
}
function noresume(){
    var pwcf = layer.confirm("您还没有简历,先去创建简历?",function(){
        layer.close(pwcf);
        window.location.href = weburl+'/member/index.php?c=expect&act=add';
    });
}
function zphend(){
    layer.open({
        type: 1,
        title: '提示',
        closeBtn: 1,
        border: [10, 0.3, '#000', true],
        area: ['auto', 'auto'],
        content: $("#zphend")
    });
}
 
function clickZphnet(id){
    
    layer.load('执行中,请稍候...',0);
    
    $.post(weburl+"/index.php?m=ajax&c=ajaxComjob",{zphnet:1,id:id},function(data){
        
        layer.closeAll();
        
        var data    =    eval('('+data+')');
        
        if(data.status == 1){
            
            $("#TB_window").show();
            
            $("#joblist").html();
            
            $("#joblist").html(data.html);
            
            layui.use(['layer', 'form'], function() {
                var layer = layui.layer,
                    $ = layui.$,
                    form = layui.form;
 
                form.render();
 
                form.on('checkbox(oneChoose)', function (data) {
                    if(!data.elem.checked && $("#checkall").prop("checked")){
                        $("#checkall").prop("checked", false);
                        form.render("checkbox");
                    }
                });
 
            });
            
 
            var msglayer = layer.open({
                type: 1,
                title: '预定网络招聘会',
                closeBtn: 1,
                border: [10, 0.3, '#000', true],
                area: ['340px', 'auto'],
                content: $("#TB_window"),
                cancel: function(){
                    window.location.reload();
                }
            });
            
        }else{
            
            layer.msg(data.msg,2,8);
        }
    }) 
 
}
 
function submitzphnet(){
    var zid = $("#zid").val();
    var jobid = "";
    $("input[name=checkbox_job]:checked").each(function(){
        if(jobid==""){jobid=$(this).val();}else{jobid=jobid+","+$(this).val();}
    });
    if(!jobid){
        
        layer.msg('请选择参展职位' , 2, 8);return false;
    }else{
    
        layer.load('执行中,请稍候...',0);
        
        $.post(weburl+"/index.php?m=zphnet&c=ajaxZphnet",{zid:zid,jobid:jobid},function(data){
            
            layer.closeAll('loading');
            
            var data    =    eval('('+data+')');
            var status     =     data.status;
            
            if(status == 1){
                
                layer.msg(data.msg, 2, 9, function(){
                    location.reload();
                });
                
            }else if(status == 2){
                
                server_single('zphnet',data.jifen,data.price);
                
                $('#zid').val(data.zid);
                
                if(data.spid == 1){
                    layer.msg('当前账户套餐余量不足,请联系主账户增配!' , 2, 8);return false;
                }else{
                    firstTab();
                    var msglayer = layer.open({
                        type: 1,
                        title: '预定网络招聘会',
                        closeBtn: 1,
                        border: [10, 0.3, '#000', true],
                        area: ['auto', 'auto'],
                        content: $("#tcmsg"),
                        cancel: function(){
                            window.location.reload();
                        }
                    });
                }
            }else{
                if(data.login == 1){
                    showlogin('2');
                }else{
                    layer.msg(data.msg, 2, 8);
                }
            }
        }) 
    }    
}
function zphnetLook(id, comid, jobid, url){
    layer.load();
    var param = {
        id: id, 
        comid: comid
    };
    if(jobid != ''){
        param.jobid = jobid;
    }
    $.ajax({
        url: weburl + "/index.php?m=zphnet&c=setLook",
        async: false,
        data: param,
        type: 'POST',
        success:function (data) {
            layer.closeAll('loading');
            window.open(url);
        }
    });
}
 
function getComList(){
    layer.load();
    var zid = $("#zid").val();
    var zw = $("#zphnet_zw").val();
    var param  =  {
        zid: zid,
        page: page,
        keyword: searchKeyword,
        zw: zw
    };
    $.post(weburl + "/index.php?m=zphnet&c=getComList",param, function(data) {
        layer.closeAll('loading');
        if(data){
            var data = eval('(' + data + ')');
            if(data && data.com){
                var comlist = data.com;
                var spOpen = data.spOpen;
                if(comlist && comlist.length > 0){
                    var html = '';
                    for(var i in comlist){
                        html += '<div class="wlzp_show_comlistbox">';
                        html += '<span id="dxzph_'+comlist[i].uid+'" class="spmszx zphnetOnline none">在线</span>';
                        html += '<div class="wlzp_show_combox_left">';
 
                        html += '<div class="wlzp_showthree_pic"><img src="' + comlist[i].logo + '" width="100" height="100"></div>';
 
                        html += '<div class="wlzp_showthreecom"><div class="wlzp_showthreecomname"><a href="'+weburl+'/index.php?m=company&c=show&id='+comlist[i].uid+ '" target="_blank">' + comlist[i].comname + '</a><p> <span> '+comlist[i].hy_n+' </span>|<span> '+comlist[i].pr_n+' </span>|<span>'+comlist[i].mun_n+'</span></p></div></div>';
 
                        html += '<div class="wlzp_show_combox_right">';
 
                        html += '<div class="wlzp_show_comlist_gd">';
                                    
                        html += '<ul class="wlzp_show_job">';
 
                        for(var j in comlist[i]['job']){
                            html += '<li class="wlzp_show_comlistbox_z">';
 
                            if(parseInt(zphetime) <0 ){
                                html += '<a href="javascript:void(0)" onclick="zphend()"  class="wlzp_show_rightjobname">'+ comlist[i]['job'][j].name +'</a>';
                            }else{
 
                                html += '<a href="javascript:void(0)" onclick="zphnetLook(\''+ zid +'\',\''+ comlist[i]['job'][j].uid +'\',\''+ comlist[i]['job'][j].id +'\',\''+weburl+'/index.php?m=job&c=comapply&id='+ comlist[i]['job'][j].id +'\')" class="wlzp_show_rightjobname">'+ comlist[i]['job'][j].name +'</a>';
 
                            }
 
                            html += '<span class="wlzp_show_rightjobxz">'+ comlist[i]['job'][j].job_salary +'</span></li>';
                        }
 
                        html += '</ul></div></div>';
 
 
                        if(sy_chat_open==1){
                            html += '<div class="wlzp_show_cz">';
 
                                if(spOpen==1){
                                    if(parseInt(zphetime) <0 ){
                                        html += '<a href="javascript:void(0)" onclick="zphend()" class="wlzp_show_dh_shipin wlzp_show_dh5"> <img src="'+style+'/images/shivideo.png"> 视频面试</a>';
                                    }else{
                                        html += '<a href="javascript:void(0);" onclick="spdiv(\'' + zid + '\',\'' + comlist[i].uid + '\',\''+ data.usertype +'\',\'2\')"  class="wlzp_show_dh_shipin wlzp_show_dh5"> <img src="'+style+'/images/shivideo.png"> 视频面试</a>';
                                    }
                                }
 
                                if(parseInt(zphetime) <0 ){
                                    html += '<a href="javascript:void(0)" onclick="zphend()" class="wlzp_show_dh_gtbth wlzp_show_dh5 communicaterts"><img src="'+style+'/images/gouton.png">立即沟通</a>';
                                }else{
                                    html += '<a href="javascript:void(0)" onclick="jobChat(\''+ comlist[i].uid +'\',\'com\',\'' + usertype + '\',0,\''+ sy_chat_name +'\',\''+ sy_user_change +'\',this)" data-zid="'+ zid +'" class="wlzp_show_dh_gtbth wlzp_show_dh5 communicaterts"><img src="'+style+'/images/gouton.png">立即沟通</a>';
                                }
                                html+='<a href="'+weburl+'/index.php?m=company&c=show&id='+ comlist[i].uid +'" class="wlzp_show_dh_more">查看更多岗位</a>'
 
                            html += '</div>';        
                        }
                        
                        html += '</div><input type="hidden" name="dxzph[]" value="'+ comlist[i].uid +'" /></div>';        
                    
                    }
                    $("#comdiv").html(html);
                    $('#nowpage').text(page);
                    lineList = [];
                    $("input[name='dxzph[]']").each(function(index, value){
                        lineList.push($(value).val());
                    });
                    if(typeof sendGetonline != 'undefined'){
                        sendGetonline();
                    }
                    clearInterval(lineInt);
                    // 定时更新在线情况
                    lineInt = setInterval(function(){
                        if(typeof sendGetonline != 'undefined'){
                            sendGetonline();
                        }
                    },60 * 1000);
                    $("html, body").animate(
                        {scrollTop: $("#comlist").offset().top },
                        {duration: 500,easing: "swing"}
                    );
                }else{
                    lineList = [];
                }
            }
        }
    });
}
function compage(id){
    if(id == '1'){
        page--;
    }else{
        page++;
    }
    if(page < 1){
        page = 1;
    }else if (page > parseInt(comPageAll)){
        page = comPageAll;
    }
    $(".comPageSelect").removeAttr('selected');
    $("#compage_"+page).attr('selected','selected');
    getComList();
}
function tocompage(topage){
    if(topage){
        page = topage;
    }
    if(page < 1){
        page = 1;
    }else if (page > parseInt(comPageAll)){
        page = comPageAll;
    }
    getComList();
}
 
function pageHtmlShow(){
    event.stopPropagation();
    $('#pagehtml').toggle();
}
// 网络招聘会详细页邀请视频面试
function spdiv(zid, fuid, usertype, utype) {
    if(utype == '1'){
        if(usertype == ''){
            showlogin('2');
        }else if (usertype == '2'){
            layer.load();
            $.post(weburl + "/index.php?m=zphnet&c=isJoin",{zid: zid}, function(data) {
                layer.closeAll('loading');
                var data = eval('(' + data + ')');
                if(data.code==1){
                    
                    if(data.status == '1'){
                        window.localStorage.setItem("spviewinvite", "1");
                        window.location.href = weburl + '/member/index.php?c=spview&act=webrtc&roomer=1&zid=' + zid + '&fuid=' + fuid;
                    }else if(data.status == '2'){
                        layer.msg('参会报名审核未通过,请联系管理员',2,8);
                    }else{
                        layer.msg('参会报名审核中',2,8);
                    }
                }else{
                    layer.confirm('您尚未参会,请先报名!',function(){
                        clickZphnet(zid)
                    });
                }
            });
        }else{
            layer.msg('非企业用户,暂无视频权限!',2,8);
        }
    }else if(utype == '2'){
        if(usertype == ''){
            showlogin('1');
        }else if (usertype == '1'){
            window.localStorage.setItem("spviewinvite", "1");
            window.location.href = weburl + '/member/index.php?c=spview&act=webrtc&roomer=1&zid=' + zid + '&fuid=' + fuid;
        }else{
            layer.msg('非个人用户,暂无视频权限!',2,8);
        }
    }
}