CINXE.COM

康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB2312" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Cache-Control" content="no-transform" /> <meta name="viewport" content="width=device-width,minimum-scale=1,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="renderer" content="webkit" /> <meta name="layoutmode" content="standard"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="wap-font-scale" content="no" /> <meta content="telephone=no" name="format-detection" /> <title>康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历</title> <meta name="keywords" content="康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"> <meta name="description" content="背景调查,帮您识别虚假简历,避免用人风险,减少企业损失"> <script> var userAgent = navigator.userAgent; if (userAgent.indexOf('AlipayClient') > -1) { // 支付宝小程序的 JS-SDK 防止 404 需要动态加载,如果不需要兼容支付宝小程序,则无需引用此 JS 文件。 document.writeln('<scr'+''+'ipt src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'scr'+''+'ipt>'); }else if (/QQ/i.test(userAgent) && /miniProgram/i.test(userAgent)) { // QQ 小程序 document.write('<scr'+''+'ipt type="text/javascript" src="https://img.kq36.com.cn/js/qqjssdk1.0.0.js"><\/scr'+''+'ipt>'); } else if (/toutiaomicroapp/i.test(userAgent)) { // 头条小程序 JS-SDK 如果不需要兼容头条小程序,则无需引用此 JS 文件。 document.write('<scr'+''+'ipt type="text/javascript" src="https://img.kq36.com.cn/js/toutiao1.0.1.js"><\/scr'+''+'ipt>'); } else if (/swan/i.test(userAgent)) { // 百度小程序 JS-SDK 如果不需要兼容百度小程序,则无需引用此 JS 文件。 document.write('<scr'+''+'ipt type="text/javascript" src="https://img.kq36.com.cn/js/swan-2.0.20.js"><\/scr'+''+'ipt>'); } </script> <script type="text/javascript" src="https://img.kq36.com.cn/js/jquery-1.7.2.min.kq36.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/js/layer-v3.2.0/layer/layer.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/im/js/im.web.1.1.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/im/js/imload.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/im/js/exif.min.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/js/jweixin-1.3.2.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/js/uni.webview.1.5.2.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/js/jquery.qrcode.min.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/js/html2canvas.min.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/js/swiper.min.js?v202504031028"></script> <script type="text/javascript" src="https://img.kq36.com.cn/im/js/xlsx.core.min.js?v202504031028"></script> <link href="https://img.kq36.com.cn/js/layer-v3.2.0/layer/theme/default/layer.css?v202504031028" rel="stylesheet"> <link href="https://img.kq36.com.cn/js/swiper.min.css?v202504031028" rel="stylesheet" /> <link href="https://img.kq36.com.cn/im/css/im_font.css?v202504031028" rel="stylesheet" /> <link href="https://img.kq36.com.cn/im/css/im_m.1.1.css?v202504031028" rel="stylesheet" /> <link rel="stylesheet" type="text/css" href="https://img.kq36.com.cn/3g4/iconfont/iconfont.css?v=v202504031028"> <link href="https://img.kq36.com.cn/im/css/beidiao.css?v202504031028" rel="stylesheet" /> <style> </style> </head> <body data="康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"> <div class="beidiao beidiao-item"> <div class="beidiao-top"> <span class="beidiao-close">康强医疗人才网</span> <span class="shareinfo iconfont" id="weiShare">&#xe623;</span> </div> <div class="beidiao-body"> <div class="beidiao-body-top"> <div class="beidiao-body-top-title"><span class="beidiao-selected-btn i-down"><span class="title">背景调查员工</span></span> <span style="padding:2px 20px;" class="my-beidiao-btn">背调记录</span></div> <div class="beidiao-flie"><input id="bd-upfile" accept=".csv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" type="file"> <span class="up-file-info"><span class="iconfont up-file-btn" title="上传 Excel 模板">&#xe631;上传员工名单</span><span class="iconfont up-file-data"></span><span class="file-template">Excel模版</span></span> <span class="flie-row-num"></span> <span></span> </div> <div class="c-progress-step"> <div class="step-item step-item-1 selected"> <span class="label">1</span> <span class="tip">选服务</span> </div> <div class="step-line step-line-1 selected"></div> <div class="step-item step-item-2"> <span class="label">2</span> <span class="tip">提供候选人</span> </div> <div class="step-line step-line-2"></div> <div class="step-item step-item-3"> <span class="label">3</span> <span class="tip">等待报告</span> </div> </div> </div> <div class="beidiao-body-item"> <div class="beidiao-body-item-top"> <span>基础信息调查</span> <span class="price" style="color:red;">11点</span> </div> <div class="beidiao-body-item-info"> <div class="beidiao-body-item-info-l"> <span class="default-selected">个人信息</span> <span class="default-selected">失信被执行人</span> <span class="default-selected">社会负面安全记录</span> <span class="default-selected">法院诉讼记录</span> <span class="default-selected">个人工商信息记录</span> <span class="default-selected">网贷不良记录</span> </div> <div class="beidiao-body-item-info-r"> <span class="label selected"></span> </div> </div> </div> <div class="beidiao-body-remind"> <li class="day"><span></span>需候选人手机验证授权后,1个工作日出结果</li> <li class="wx-hide"><span></span>该产品属于数字化商品,不支持退款</li> </div> <div class="beidiao-body-item"> <div class="beidiao-body-item-top"> <span class="work-show-title i-down">工作经历、学历</span> <span class="label work-show-btn"></span> </div> <div class="beidiao-body-item-info-c"> <div style="width: 100%;"> <span class="education-selected"> <span l=""><div class="title">学历</div></span> <span r=""><span class="education-click label"></span></span> </span> </div> <span class="work-selected" data="1"> <span l><div class="title">1段工作经历</div><div class="info" data="2">2个工作日交付</div></span> <span r><span class="label"></span></span> </span> <span class="work-selected" data="2"> <span l><div class="title">2段工作经历</div><div class="info" data="3">3个工作日交付</div></span> <span r><span class="label"></span></span> </span> <span class="work-selected" data="3"> <span l><div class="title">3段工作经历</div><div class="info" data="4">4个工作日交付</div></span> <span r><span class="label"></span></span> </span> </div> </div> <div class="beidiao-body-item beidiao-yg-btn"> <div class="beidiao-body-item-top"> <span class=""> 调查员工 </span> <span class="font-right">姓名/电话</span> </div> </div> <div class="beidiao-body-menu"> <span class="font-right">批量背调</span> <span class="font-right">背调案例</span> <span class="font-right">康强客服</span> <span class="font-right" style="display:none">合作伙伴</span> </div> </div> <div class="beidiao-bottom"> <span class="bottom-price-info-l"> <div> <span class="price">11点<span style="font-size: 16px;color: #888;font-weight: normal;">=11元</span></span> </div> <div> <span class="me-price" >可用0点</span> <span class="pay-show-btn">充值</span> </div> </span> <span class="beidiao-create">背景调查1个人</span> </div> </div> <div class="beidiao-payment beidiao-item"> <div class="beidiao-payment-imbackground"></div> <div class="beidiao-payment-body"> <div class="beidiao-payment-top"> 确认支付<span class="beidiao-payment-close"></span> </div> <div class="beidiao-payment-info"> </div> <div class="beidiao-payment-bottom"> <span class="beidiao-payment-create">确认支付</span> </div> </div> </div> <div class="beidiao-user-info beidiao-item"> <div class="beidiao-top"> <span class="beidiao-close">康强医疗人才网</span> <span class="beidiao-top-menu"></span> </div> <div class="beidiao-body"> <div class="beidiao-body-top"> <div class="beidiao-body-top-title"><a class="beidiao_user_back">&nbsp;</a>填写联系方式<span class="my-beidiao-btn">背调记录</span></div> <div class="beidiao-body-remind"> <li>1、背景调查需被查人授权,请先沟通避免误会。</li> <li class="wx-hide">2、提交资料后,提醒被查人看短信,尽快授权。</li> </div> <div class="c-progress-step"> <div class="step-item step-item-1 selected finished"> <span class="label">1</span> <span class="tip">选服务</span> </div> <div class="step-line step-line-1 activity"></div> <div class="step-item step-item-2 selected"> <span class="label">2</span> <span class="tip">提供候选人</span> </div> <div class="step-line step-line-2 selected"></div> <div class="step-item step-item-3"> <span class="label">3</span> <span class="tip">等待报告</span> </div> </div> </div> <div class="beidiao-body-info"> <div class="beidiao-info-name"> <div class="beidiao-info-title">候选人姓名</div> <div><input placeholder="请输入" class="user-name" type="text"></div> </div> <div class="beidiao-info-tel"> <div class="beidiao-info-title">候选人联系方式</div> <div><input placeholder="请输入候选人手机号" class="user-tel" type="text"></div> </div> <div class="beidiao-info-companyName" data="1" style="display:none;"> <div class="beidiao-info-title">候选人第一段任职公司全称</div> <div><input placeholder="请输入公司全称" class="user-companyName1" type="text"></div> </div> <div class="beidiao-info-companyName" data="2" style="display:none;"> <div class="beidiao-info-title">候选人第二段任职公司全称</div> <div><input placeholder="请输入公司全称" class="user-companyName2" type="text"></div> </div> <div class="beidiao-info-companyName" data="3" style="display:none;"> <div class="beidiao-info-title">候选人第三段任职公司全称</div> <div><input placeholder="请输入公司全称" class="user-companyName3" type="text"></div> </div> </div> </div> <div class="beidiao-bottom"> <span class="beidiao-info-btn" data="0">提交资料</span> </div> </div> <div class="beidiao-info beidiao-item"> <div class="beidiao-top"> <span class="beidiao-close">康强医疗人才网</span> <span class="beidiao-top-menu"></span> </div> <div class="beidiao-info-body"> <div class="beidiao-body-top"> <div class="beidiao-body-top-title"><a class="beidiao_info_back">&nbsp;</a>背景调查员工 <span class="beidiao-add-btn">发起背调</span><span class="my-beidiao-btn">背调记录</span></div> <div class="beidiao-body-remind"> <li class="beidiao-day-info">候选人授权后,预计1个工作日交付。</li> </div> <div class="c-progress-step"> <div class="step-item step-item-1 selected finished"> <span class="label">1</span> <span class="tip">选服务</span> </div> <div class="step-line step-line-1 activity"></div> <div class="step-item step-item-2 selected finished"> <span class="label">2</span> <span class="tip">提供候选人</span> </div> <div class="step-line step-line-2 selected"></div> <div class="step-item step-item-3"> <span class="label">3</span> <span class="tip">等待报告</span> </div> </div> </div> <div class="beidiao-body-item"> <div class="beidiao-body-item-top"> <span>候选人信息</span> </div> <div class="user-info"> <div l> <div class="user-name-info" data=""></div> <div class="user-tel-info" data=""></div> </div> <div r> <span class="user-edit-tel-btn">修改手机号</span> <span class="copy-sms-btn">授权网址/二维码</span> <span class="read-report-btn">查看报告</span> <span class="share-report-btn">分享</span> <span class="down-report-btn">下载报告</span> </div> </div> <div class="beidiao-status"> <div class="beidiao-body-item-top"> <span class="beidiao-type-info">当前调查进度</span> </div> <div class="beidiao-status-item doing"> <span class="line"></span> <i></i> <div class="title">等待候选人授权</div> <div class="info">请提示候选人注意短信通知,授权并完成详细资料填写</div> </div> <div class="beidiao-status-item"> <span class="line"></span> <i></i> <div class="title">待进行基础信息调查</div> <div class="info">个人信息;学历;失信被执行人;社会负面安全记录;法院诉讼记录;个人工商信息记录;网贷不良记录</div> </div> <div class="beidiao-status-item work" data="1"> <span class="line"></span> <i></i> <div class="title">待进行工作经历调查</div> <div class="info"></div> </div> <div class="beidiao-status-item work" data="2"> <span class="line"></span> <i></i> <div class="title">待进行工作经历调查</div> <div class="info"></div> </div> <div class="beidiao-status-item work" data="3"> <span class="line"></span> <i></i> <div class="title">待进行工作经历调查</div> <div class="info"></div> </div> <div class="beidiao-status-item"> <i></i> <div class="title">待完成报告</div> <div class="info"></div> </div> </div> </div> </div> </div> <div class="beidiao-info-list beidiao-item"> <div class="beidiao-top"> <span class="beidiao-close">康强医疗人才网</span> <span class="beidiao-top-menu"></span> </div> <div class="bdtype-filter"> <span class="bdtype-item active" data="0">全部</span> <span class="bdtype-item" data="-3">待填写</span> <span class="bdtype-item" data="3">待授权</span> <span class="bdtype-item" data="4">调查中</span> <span class="bdtype-item" data="5">已完成</span> <span class="bdtype-item" style="display:none" data="6">已取消</span> <span class="bdtype-item" data="7" title="搜姓名"></span> </div> <div class="refreshInfo">下拉刷新...</div> <div class="search"> <span class="search_input"><input type="text" placeholder="姓名" class="search_text" maxlength="10"><span class="search_clear iconfont">&#xe724;</span></span> <span class="search_btn">搜索</span> </div> <div class="beidiao-info-list-body"> <ul> </ul> </div> <div class="beidiao-bottom"> <span class="beidiao-add-btn" l data="0">发起背调</span> <span class="beidiao-batch-btn" data="1">批量背调</span> </div> </div> <div class="beidiao-edit beidiao-item"> <div class="beidiao-edit-imbackground"></div> <div class="beidiao-edit-body"> <div class="beidiao-edit-top"> 修改候选手机号<span class="beidiao-edit-close"></span> </div> <div class="beidiao-edit-info"> <div class="beidiao-edit-info-top" style="font-size: 16px;margin: 20px;">填写新的手机号后,将以新手机号联系候选人</div> <div class="beidiao-edit-tel"> <div class="beidiao-edit-title">原手机号</div> <div><input placeholder="请输入候选人新手机号" class="user-edit-tel" type="text"></div> </div> </div> <div class="beidiao-payment-bottom"> <span class="beidiao-edit-btn">确认修改</span> </div> </div> </div> <div class="ShareDiv"><img src="https://img.kq36.com.cn/mkq520/images/toutiaoshare.png"></div> <script> var ret = ""; var uCookies = ""; var aid = ""; //if(ret!=""){ // returnRet() //} var C_UserType = ""; var C_UserId = ""; var C_Vip = "0"; var C_Auditing = "0"; var getopenid = ""; var opencase = ""; var reportId = ""; var openid = ""; var payopen = ""; var bdAccount = getQuery("bdAccount"); var bdName = getQuery("bdName"); var bdMobile = getQuery("bdMobile"); var shareId = getQuery("shareId"); var wx_share_id = ""; if(MiniAppWx||UniAndApp||UniIosApp||AlipayMiniApp||QQMiniApp||toutiaoMiniApp||baiduMiniApp){ jQuery("body").addClass("top-hide"); }else if(top.location.href.indexOf('c.kq36.com')>-1 || top.location.href.indexOf('p.kq36.com')>-1){ jQuery("body").addClass("pc"); }else if((top.location.href.indexOf('3g.kq36.com')>-1 && top.location.href.indexOf('3g.kq36.com/bd')<0) || top.location.href.indexOf('www.kq36.com')>-1){ jQuery("body").addClass("top-hide"); }else if(isPC){ jQuery(".beidiao-item").addClass("max640"); jQuery(".beidiao-payment-body").addClass("max640"); jQuery(".beidiao-edit-body").addClass("max640"); jQuery(".bdtype-filter").css({"font-size":"17px"}); } if(Android || Ios){ jQuery("body").addClass("mobile"); } var day = "1"; var price = "11"; var bdid = "29354"; var packages=""; var paytype="wxpay"; var discount_price = "0"; var tradetype=""; if(WxApp || MiniAppWx){ tradetype="JSAPI" }else if(Ios || Android){ tradetype="h5"; } if(isPC){ tradetype=""; } var ApiMini = ""; //var openid = ""; var openShare = true; if(AlipayMiniApp||QQMiniApp||toutiaoMiniApp||baiduMiniApp){ }else if(MiniAppWx){ ApiMini = "1"; /* openid = ""; if(openid==""){ openid = ""; if(openid!=""){ setCookie('openid',openid,365); } } if(getopenid!="f"){ if(typeof(openid)=="undefined" || openid == "" || openid == null){ openShare = false; uni.postMessage({ data: { action:'getopenid', state:encodeURIComponent(location.href) } }); var return_url = location.href; if(return_url.indexOf('?')>-1){ return_url += "&getopenid=f" }else{ return_url += "?getopenid=f" } uni.redirectTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(return_url)}); } } */ }else if(WxApp){ openid = ""; if(typeof(openid)=="undefined" || openid == "" || openid == null){ location.href = "https://imapi.kq36.com/login_a.aspx?state="+encodeURIComponent(location.href); } } if(isPC){ ApiMini = ""; } var orderNumber = ""; var payUrl = ""; var alipayUrl = ""; var openUrl = ""; var beidiao_create_click = true; var beidiao_payment_create_click = true; var my_beidiao_btn_click = true; var checkpayAuto = null; var historyStack = []; historyStack.push(location.origin + "/bd/"); function setState(url){ if (window.top == window.self) { console.log("setState:",historyStack.length,url); top.history.pushState('forward', null, url); if(historyStack.length==1){ jQuery(top).on('popstate', function (e) { offState(); }); } historyStack.push(url); } } function offState(){ if (window.top == window.self) { console.log("offState:",historyStack.length,historyStack); historyStack.pop(); var lastUrl = historyStack[historyStack.length-1]; if(jQuery(".layui-layer-shade").is(":visible")){ jQuery(".layui-layer-shade").trigger("click"); } if(lastUrl=="https://3g.kq36.com/bd/"){ jQuery(".beidiao-item").hide(); jQuery(".beidiao").show(); jQuery("title").text("康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"); }else if(lastUrl=="https://3g.kq36.com/bd/?cmd=mybd"){ jQuery(".beidiao-item").hide(); jQuery(".beidiao-info-list").show(); jQuery("title").text("背调记录·康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"); }else if(lastUrl=="https://3g.kq36.com/bd/?cmd=addbd"){ top.history.back(); } if(historyStack.length==1){ jQuery(top).off('popstate'); } } } jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(document.referrer.indexOf("/im/m/im.1")>-1){ location.href = "https://3g.kq36.com/kq36/msg.asp"; }else{ if(historyStack.length>1){ top.history.back(); //offState(); }else{ if(document.referrer.indexOf(".kq36.")>-1){ if(isPC){ if(window.history.length>1){ history.back(); setTimeout(function(){location.href = document.referrer},500); }else{ location.href = document.referrer; } }else{ history.back(); } }else{ location.href = "https://3g.kq36.com"; } } } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-close"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); obj.removeClass("i-down").addClass("i-up"); layer.confirm('<div class="bd_s_btn font-right" data="1">背景调查员工</div><div class="bd_s_btn font-right" data="2">批量背调员工</div>', { title:'', shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, end:function(){obj.removeClass("i-up").addClass("i-down") },btn:false,closeBtn:true }); e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-selected-btn"); jQuery(document).on({ click:function(e){ jQuery("#bd-upfile").trigger("click"); e.preventDefault(); e.stopPropagation(); return false; } },".up-file-btn"); jQuery(document).on("change", "#bd-upfile", function(e) { var obj = jQuery(this); var files = this.files; var f = files[0]; console.log("files:",f); if(/\.(csv|xls|xlsx)$/g.test(f.name)) { readWorkbookFromLocalFile(f, function(workbook) { readWorkbook(workbook); }); }else{ layer.msg('仅支持读取xls、xlsx格式!'); return; } }); // 读取本地excel文件 function readWorkbookFromLocalFile(file, callback) { var reader = new FileReader(); reader.onload = function(e) { var data = e.target.result; var workbook = XLSX.read(data, {type:'binary'}); if(callback) callback(workbook); }; reader.readAsBinaryString(file); } var file_data = []; var file_data_rows = []; var file_rows = []; function readWorkbook(workbook) { var sheetNames = workbook.SheetNames; // 工作表名称集合 var worksheet = workbook.Sheets[sheetNames[0]]; // 这里我们只读取第一张sheet //var json = XLSX.utils.sheet_to_json(worksheet); //console.log("json:",json); var csv = XLSX.utils.sheet_to_csv(worksheet); var rows = csv.split('\n'); rows.pop(); // 最后一行没用的 file_data = rows; read_file_data(true); bddata(); jQuery("#bd-upfile").val(''); console.log("file_rows:",file_rows.length,file_rows); } function isPhoneNumber(phoneNumber) { return /^1[3-9]\d{9}$/.test(phoneNumber); } function read_file_data(t){ console.log("read_file_data:"); file_data_rows = []; file_rows = []; file_data.forEach(function(row, idx) { var columns = row.split(','); //console.log("columns:",columns.length,columns); if(columns.length>1&&columns[0]!=""&&columns[1]!=""){ if(isPhoneNumber(columns[1])){ file_data_rows.push(columns); } } if(bdid=="29354"||bdid=="22151"){ if(columns.length>1&&columns[0]!=""&&columns[1]!=""){ if(isPhoneNumber(columns[1])){ file_rows.push(columns); //console.log("columns:",columns[0],columns[1]); } } }else if(bdid=="29356"||bdid=="22153"){ if(columns.length>2&&columns[0]!=""&&columns[1]!=""&&columns[2]!=""){ if(isPhoneNumber(columns[1])){ file_rows.push(columns); //console.log("columns:",columns[0],columns[1],columns[2]); } } }else if(bdid=="29357"||bdid=="22154"){ if(columns.length>3&&columns[0]!=""&&columns[1]!=""&&columns[2]!=""&&columns[3]!=""){ if(isPhoneNumber(columns[1])){ file_rows.push(columns); //console.log("columns:",columns[0],columns[1],columns[2],columns[3]); } } }else if(bdid=="29358"||bdid=="22155"){ if(columns.length>4&&columns[0]!=""&&columns[1]!=""&&columns[2]!=""&&columns[3]!=""&&columns[4]!=""){ if(isPhoneNumber(columns[1])){ file_rows.push(columns); //console.log("columns:",columns[0],columns[1],columns[2],columns[3],columns[4]); } } } //columns.unshift(idx+1); // 添加行索引 //columns.forEach(function(column) { // console.log("column:",column); //}); }); if(file_rows.length>0){ jQuery(".beidiao-create").html('批量调查'+file_rows.length+'人').attr("data",file_rows.length); if(t){ jQuery(".up-file-data").html("已上传"+file_data_rows.length+"人 &#xe608;").show(); jQuery(".up-file-btn").hide(); } //jQuery(".flie-row-num").html('导入 <span style="color:#0386C4">'+file_rows.length+'</span> 人'); }else{ if(jQuery(".beidiao-create").hasClass("batch")){ jQuery(".beidiao-create").html('批量背景调查').attr("data","0"); }else{ jQuery(".beidiao-create").html('背景调查1个人').attr("data","0"); } if(t){ var tip_info = '<div class="confirm_tip"><div class="confirm_tip_info">请导入下面格式的Excel文件</div>'; if(bdid=="29354"||bdid=="22151"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody><tr><td>姓名</td><td>电话</td></tr><tr><td>张三丰</td><td>13178273326</td></tr><tr><td>刘亦菲</td><td>13860165991</td></tr><tr><td>马云</td><td>18065929108</td></tr></tbody></table></div></div>'; }else if(bdid=="29356"||bdid=="22153"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody><tr><td>姓名</td><td>电话</td><td>公司1</td></tr><tr><td>张三丰</td><td>13178273326</td><td>原工作单位名称</td></tr><tr><td>刘亦菲</td><td>13860165991</td><td>原工作单位名称</td></tr><tr><td>马云</td><td>18065929108</td><td>原工作单位名称</td></tr></tbody></table></div></div>'; }else if(bdid=="29357"||bdid=="22154"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody style="font-size:14px;"><tr><td>姓名</td><td>电话</td><td>公司1</td><td>公司2</td></tr><tr><td>张三丰</td><td>13178273326</td><td>原工作单位名称</td><td>~</td></tr><tr><td>刘亦菲</td><td>13860165991</td><td>原工作单位名称</td><td>~</td></tr><tr><td>马云</td><td>18065929108</td><td>原工作单位名称</td><td>~</td></tr></tbody></table></div></div>'; }else if(bdid=="29358"||bdid=="22155"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody style="font-size:12px;"><tr><td>姓名</td><td>电话</td><td>公司1</td><td>公司2</td><td>公司3</td></tr><tr><td>张三丰</td><td>13178273326</td><td>原工作单位名称</td><td>~</td><td>~</td></tr><tr><td>刘亦菲</td><td>13860165991</td><td>原工作单位名称</td><td>~</td><td>~</td></tr><tr><td>马云</td><td>18065929108</td><td>原工作单位名称</td><td>~</td><td>~</td></tr></tbody></table></div></div>'; } tip_info += '</div>'; auto_confirm = layer.confirm(tip_info, { title:false, shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-btn").addClass("ly_btn"); layero.find(".layui-layer-btn0").addClass("confirm_btn_r"); layero.find(".layui-layer-btn1").addClass("confirm_btn_c"); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, end:function(){ },btn:['重新上传','查看模版'],closeBtn:true }, function(index){ layer.close(index); jQuery(".up-file-btn").trigger("click"); }, function(index){ layer.close(index); jQuery(".file-template").trigger("click"); }); } //jQuery(".flie-row-num").html(''); } } jQuery(document).on({//模版 click:function(e){ var obj = jQuery(this); //var ShareHtml = '<div class="template"><div class="title">基础信息调查、基础信息调查+学历</div><div class="table"><table><tbody><tr><th></th><th>A</th><th>B</th></tr><tr><td>1</td><td>姓名</td><td>电话</td></tr><tr><td>2</td><td>张三</td><td>15588888888</td></tr><tr><td>3</td><td>李四</td><td>13388888888</td></tr></tbody></table></div></div>'+ //'<div class="template"><div class="title">1段工作经历</div><div class="table"><table><tbody><tr><th></th><th>A</th><th>B</th><th>C</th></tr><tr><td>1</td><td>姓名</td><td>电话</td><td>公司1</td></tr><tr><td>2</td><td>张三</td><td>15588888888</td><td>填写公司全称</td></tr><tr><td>3</td><td>李四</td><td>13388888888</td><td>填写公司全称</td></tr></tbody></table></div></div>'+ //'<div class="template"><div class="title">2段工作经历</div><div class="table"><table><tbody><tr><th></th><th>A</th><th>B</th><th>C</th><th>D</th></tr><tr><td>1</td><td>姓名</td><td>电话</td><td>公司1</td><td>公司2</td></tr><tr><td>2</td><td>张三</td><td>同上</td><td>同上</td><td>填写公司全称</td></tr><tr><td>3</td><td>李四</td><td>同上</td><td>同上</td><td>填写公司全称</td></tr></tbody></table></div></div>'+ //'<div class="template"><div class="title">3段工作经历</div><div class="table"><table><tbody><tr><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr><tr><td>1</td><td>姓名</td><td>电话</td><td>公司1</td><td>公司2</td><td>公司3</td></tr><tr><td>2</td><td>张三</td><td>同上</td><td>同上</td><td>同上</td><td>填写公司全称</td></tr><tr><td>3</td><td>李四</td><td>同上</td><td>同上</td><td>同上</td><td>填写公司全称</td></tr></tbody></table></div></div>'; var ShareHtml = '<div class="template"><span class="iconfont template-down">下载 Excel 模板&#xe65f;</span></div>'; ShareHtml += '<div class="template"><div class="info">Excel文档只要填姓名和电话就行</div><div class="table"><table><tbody><tr><td>姓名</td><td>电话</td></tr><tr><td>张三丰</td><td>13178273326</td></tr><tr><td>刘亦菲</td><td>13860165991</td></tr><tr><td>马云</td><td>18065929108</td></tr></tbody></table></div></div>'; ShareHtml += '<div class="template"><div class="title">收费</div><div class="info"><span l>基础信息</span><span r>11点/人 = 11元</span></div><div class="info"><span l>基础信息+学历</span><span r>15点/人 = 15元</span></div><div class="info"><span l>+1段工作经历</span><span r>235点/人</span></div><div class="info"><span l>+2段工作经历</span><span r>425点/人</span></div><div class="info"><span l>+3段工作经历</span><span r>625点/人</span></div></div>'; ShareHtml += '<div class="template" style="color:#bbb;">注:最多同时背调3000人</div>'; jQuery(".beidiao-payment-body").css({"background-color":"#fff"}); jQuery(".beidiao-payment-top").html('Excel模版<span class="beidiao-payment-close"></span>'); jQuery(".beidiao-payment-create").hide(); jQuery(".beidiao-payment-info").html(ShareHtml); jQuery(".beidiao-payment").show(); jQuery(".beidiao-payment-info").scrollTop(0); e.preventDefault(); e.stopPropagation(); return false; } },".file-template"); jQuery(document).on({//模版 click:function(e){ var fileUrl = "https://3g.kq36.com/bd/背景调查员工模版.xlsx"; var fileName = "背景调查员工模版"; if(isPC){ downloadIamge(fileUrl,fileName); }else{ layer.msg("请在PC端下载文件"); } /* var fileUrl = "https://3g.kq36.com/bd/背景调查员工模版.xlsx"; var fileName = "背景调查员工模版"; var fileFormat = "xlsx"; if(UniAndApp){ if(AppVersion>=7.3){ uni.postMessage({data:{action:'openDocument',url:fileUrl}}); }else{ layer.msg("该功能需要升级到7.3以上版本"); } }else if(UniIosApp){ uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(MiniAppWx){ if(Ios){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(Android || isPC){ if (AlipayMiniApp || QQMiniApp || toutiaoMiniApp || baiduMiniApp){ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&url='+encodeURIComponent(fileUrl)}); }else{ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } } }else{ if(Ios){ top.location.href = fileUrl;; }else{ downloadIamge(fileUrl,fileName); } } */ e.preventDefault(); e.stopPropagation(); return false; } },".template-down"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); var text = obj.html(); var sid = obj.attr("data"); file_data = []; jQuery(".up-file-data").hide(); jQuery(".up-file-btn").show(); file_data_rows = []; file_rows = []; bddata(); jQuery(".beidiao-body").scrollTop(0); jQuery(".beidiao-selected-btn").find(".title").html(text); if(sid=="2"){ jQuery(".beidiao-flie").css({"display":"flex"}); jQuery(".beidiao-create").addClass("batch").html("批量背景调查").attr("data","0"); }else{ jQuery(".beidiao-flie").css({"display":"none"}); jQuery(".beidiao-create").removeClass("batch").html("背景调查1个人").attr("data","0"); } layer.closeAll(); e.preventDefault(); e.stopPropagation(); return false; } },".bd_s_btn"); jQuery(document).on({ click:function(e){ //jQuery(".work-show-title").trigger("click"); var obj = jQuery(this); if(obj.hasClass("selected")){ jQuery(".work-selected.selected").removeClass("selected"); jQuery(".education-click.selected").removeClass("selected"); bddata(); //jQuery(".work-show-title").addClass("i-down").removeClass("i-up"); //jQuery(".work-selected.selected").removeClass("selected"); //jQuery(".education-click.selected").removeClass("selected"); //obj.removeClass("selected"); //jQuery(".beidiao-body-item-info-c").css({"display":"none"}); }else{ jQuery(".work-show-title").trigger("click"); //obj.addClass("selected"); //jQuery(".work-show-title").addClass("i-up").removeClass("i-down"); //jQuery(".work-selected:eq(0)").addClass("selected"); //jQuery(".beidiao-body-item-info-c").css({"display":"flex"}); } //bddata(); e.preventDefault(); e.stopPropagation(); return false; } },".work-show-btn"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(obj.hasClass("selected")){ obj.removeClass("selected"); }else{ obj.addClass("selected"); } bddata(); e.preventDefault(); e.stopPropagation(); return false; } },".education-click"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(obj.hasClass("selected")){ obj.removeClass("selected"); //jQuery(".work-show-btn").removeClass("selected"); }else{ jQuery(".work-selected.selected").removeClass("selected"); obj.addClass("selected"); //jQuery(".work-show-btn").addClass("selected"); } bddata(); e.preventDefault(); e.stopPropagation(); return false; } },".work-selected"); function bddata(){ console.log("bddata:"); var education = jQuery(".education-click.selected"); var work = jQuery(".work-selected.selected"); var bdidold = parseInt(bdid); if(education.length&&work.length){ jQuery(".work-show-btn").addClass("selected"); var workdata = work.attr("data"); day = work.find(".info").attr("data"); if(workdata=="1"){ bdid = "22153"; price = "235"; }else if(workdata=="2"){ bdid = "22154"; price = "425"; }else if(workdata=="3"){ bdid = "22155"; price = "625"; } }else if(work.length){ jQuery(".work-show-btn").addClass("selected"); var workdata = work.attr("data"); day = work.find(".info").attr("data"); if(workdata=="1"){ bdid = "29356"; price = "235"; }else if(workdata=="2"){ bdid = "29357"; price = "425"; }else if(workdata=="3"){ bdid = "29358"; price = "625"; } }else if(education.length){ jQuery(".work-show-btn").addClass("selected"); day = "1"; bdid = "22151"; price = "15"; }else{ jQuery(".work-show-btn").removeClass("selected"); day = "1"; bdid = "29354"; price = "11"; } read_file_data(false); if(jQuery(".beidiao-create").hasClass("batch")){ if(file_rows.length){ price = parseInt(price) * file_rows.length; }else{ //jQuery(".beidiao-create").html('批量背景调查'); } } jQuery(".beidiao-body-item-top").find(".price").html(price+'点'); jQuery(".beidiao-bottom").find(".price").html(price+'点<span style="font-size: 16px;color: #888;">='+price+'元</span>'); jQuery(".beidiao-body-remind").find(".day").html("<span></span>需候选人手机验证授权后,"+day+"个工作日出结果"); console.log('day = ' + day,'price = ' + price,'bdid = ' + bdid); } jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(obj.hasClass("i-down")){ jQuery(".work-show-title").addClass("i-up").removeClass("i-down"); jQuery(".beidiao-body-item-info-c").css({"display":"flex"}); }else{ jQuery(".work-show-title").addClass("i-down").removeClass("i-up"); jQuery(".beidiao-body-item-info-c").css({"display":"none"}); //jQuery(".work-selected.selected").removeClass("selected"); //jQuery(".education-click.selected").removeClass("selected"); } bddata(); e.preventDefault(); e.stopPropagation(); return false; } },".work-show-title"); /* jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(!obj.hasClass("click")){ layer.load(1,{time:5*1000}); obj.addClass("click"); postdata = "cmd=bdcreate&bdid=22151"; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata, dataType: "json", success: function(d) { layer.closeAll('loading'); if (d.code == "200") { jQuery("input.user-name").val(''); jQuery("input.user-tel").val(''); jQuery(".beidiao-info-btn").attr("data",d.bd_Id).attr("menuId","22151"); jQuery(".beidiao-info-companyName[data=1]").hide(); jQuery(".beidiao-info-companyName[data=2]").hide(); jQuery(".beidiao-info-companyName[data=3]").hide(); jQuery(".beidiao-item").hide(); jQuery(".beidiao-user-info").show(); }else if(d.code == "90002"){ jQuery(".beidiao-create").trigger("click"); }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } obj.removeClass("click"); },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); obj.removeClass("click"); } }); } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-yg-btn"); */ jQuery(document).on({ click:function(e){ var isPay = true; if(UniIosApp || (Ios && (WxApp || MiniAppWx))){ isPay = false; } if(C_Vip=="1" || C_Auditing=="1"){ isPay = true; } if(AlipayMiniApp || QQMiniApp || toutiaoMiniApp || baiduMiniApp){ isPay = false; } if(!isPay){ kfShow(); }else{ if(ApiMini=="1"&&!openid.length){ uni.postMessage({ data: { action:'getopenid', state:encodeURIComponent(location.href), isre:1 } }); var return_url = location.href; if(return_url.indexOf('?')>-1){ return_url += "&payopen=t" }else{ return_url += "?payopen=t" } uni.redirectTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(return_url)}); }else{ payShow(); } } e.preventDefault(); e.stopPropagation(); return false; } },".pay-show-btn"); jQuery(document).on({ click:function(e){ if(checkpayAuto!=null){ clearInterval(checkpayAuto); checkpayAuto = null; } if(beidiao_create_click){ var obj = jQuery(this); if(obj.hasClass("batch")){ if(obj.attr("data")=="0"){ var tip_info = '<div class="confirm_tip"><div class="confirm_tip_info">请先上传背调员工名单</div></div>'; if(file_data.length){ tip_info = '<div class="confirm_tip"><div class="confirm_tip_info">请导入下面格式的Excel文件</div>'; if(bdid=="29354"||bdid=="22151"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody><tr><td>姓名</td><td>电话</td></tr><tr><td>张三丰</td><td>13178273326</td></tr><tr><td>刘亦菲</td><td>13860165991</td></tr><tr><td>马云</td><td>18065929108</td></tr></tbody></table></div></div>'; }else if(bdid=="29356"||bdid=="22153"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody><tr><td>姓名</td><td>电话</td><td>公司1</td></tr><tr><td>张三丰</td><td>13178273326</td><td>原工作单位名称</td></tr><tr><td>刘亦菲</td><td>13860165991</td><td>原工作单位名称</td></tr><tr><td>马云</td><td>18065929108</td><td>原工作单位名称</td></tr></tbody></table></div></div>'; }else if(bdid=="29357"||bdid=="22154"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody style="font-size:14px;"><tr><td>姓名</td><td>电话</td><td>公司1</td><td>公司2</td></tr><tr><td>张三丰</td><td>13178273326</td><td>原工作单位名称</td><td>~</td></tr><tr><td>刘亦菲</td><td>13860165991</td><td>原工作单位名称</td><td>~</td></tr><tr><td>马云</td><td>18065929108</td><td>原工作单位名称</td><td>~</td></tr></tbody></table></div></div>'; }else if(bdid=="29358"||bdid=="22155"){ tip_info += '<div class="template" style="margin-top:10px;"><div class="table"><table><tbody style="font-size:12px;"><tr><td>姓名</td><td>电话</td><td>公司1</td><td>公司2</td><td>公司3</td></tr><tr><td>张三丰</td><td>13178273326</td><td>原工作单位名称</td><td>~</td><td>~</td></tr><tr><td>刘亦菲</td><td>13860165991</td><td>原工作单位名称</td><td>~</td><td>~</td></tr><tr><td>马云</td><td>18065929108</td><td>原工作单位名称</td><td>~</td><td>~</td></tr></tbody></table></div></div>'; } tip_info += '</div>'; } auto_confirm = layer.confirm(tip_info, { title:false, shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-btn").addClass("ly_btn"); layero.find(".layui-layer-btn0").addClass("confirm_btn_r"); layero.find(".layui-layer-btn1").addClass("confirm_btn_c"); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, end:function(){ },btn:['现在上传','查看模版'],closeBtn:true }, function(index){ layer.close(index); jQuery(".up-file-btn").trigger("click"); }, function(index){ layer.close(index); jQuery(".file-template").trigger("click"); }); return false; } } beidiao_create_click = false; layer.load(1,{time:5*1000}); postdata = "cmd=mePrice&createBtn=1&UserRet="+ret+"&uCookies="+uCookies+"&aid="+aid; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); if (d.code == "200") { var priceFloor = d.price; if(priceFloor>1){ priceFloor=Math.floor(priceFloor) } jQuery(".me-price").html('可用'+priceFloor+'点'); if(parseInt(d.price)>=parseInt(price)){ jQuery(".beidiao-payment-body").css({"background-color":"#f0f0f0"}); jQuery(".beidiao-payment-top").html('支付<span class="beidiao-payment-close"></span>'); if(obj.hasClass("batch")){ var payHtml = '<div class="beidiao-payment-info-item">' + '<div class="title b"><span>背景调查-'+file_rows.length+'人次</span><span>需支付<span style="color:#0386C4;margin:0 2px;">'+price+'</span>点</span></div>' + '<div class="payment-item"><span><span class="pay-show-btn">充值</span></span><span>可用'+priceFloor+'点</span></div>' + '</div>'; payHtml +='<div class="beidiao-batch"><ul>'; file_rows.forEach(function(row, idx) { if(bdid=="29354"||bdid=="22151"){ payHtml +='<li data="'+idx+'"><div class="info"><span class="name">'+row[0]+'</span><span class="tel">'+row[1]+'</span></div></li>'; console.log("file_rows:"+bdid,idx,row[0],row[1]); }else if(bdid=="29356"||bdid=="22153"){ payHtml +='<li data="'+idx+'"><div class="info"><span class="name">'+row[0]+'</span><span class="tel">'+row[1]+'</span></div>'; payHtml +='<div class="work">'+row[2]+'</div>'; payHtml +='</li>'; console.log("file_rows:"+bdid,idx,row[0],row[1],row[2]); }else if(bdid=="29357"||bdid=="22154"){ payHtml +='<li data="'+idx+'"><div class="info"><span class="name">'+row[0]+'</span><span class="tel">'+row[1]+'</span></div>'; payHtml +='<div class="work">'+row[2]+'</div>'; payHtml +='<div class="work">'+row[3]+'</div>'; payHtml +='</li>'; console.log("file_rows:"+bdid,idx,row[0],row[1],row[2],row[3]); }else if(bdid=="29358"||bdid=="22155"){ payHtml +='<li data="'+idx+'"><div class="info"><span class="name">'+row[0]+'</span><span class="tel">'+row[1]+'</span></div>'; payHtml +='<div class="work">'+row[2]+'</div>'; payHtml +='<div class="work">'+row[3]+'</div>'; payHtml +='<div class="work">'+row[4]+'</div>'; payHtml +='</li>'; console.log("file_rows:"+bdid,idx,row[0],row[1],row[2],row[3],row[4]); } }); payHtml +='</ul></div>'; }else{ var payHtml = '<div class="beidiao-payment-info-item">' + '<div class="title b"><span>背景调查-1人次</span><span>需支付<span style="color:#0386C4;margin:0 2px;">'+price+'</span>点</span></div>' + '<div class="payment-item"><span><span class="pay-show-btn">充值</span></span><span>可用'+priceFloor+'点</span></div>' + '</div>'; } jQuery(".beidiao-payment-create").removeClass("pay").removeClass("batchOK").html('确认支付').show(); jQuery(".beidiao-payment-info").html(payHtml); jQuery(".beidiao-payment").show(); jQuery(".beidiao-payment-info").scrollTop(0); }else{ jQuery(".pay-show-btn").trigger("click"); } }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } beidiao_create_click = true; },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); beidiao_create_click = true; } }); } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-create"); jQuery(document).on({ click:function(e){ jQuery(".beidiao-create").trigger("click"); e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-yg-btn .font-right"); jQuery(document).on({ click:function(e){ jQuery(".beidiao-payment").hide(); if(checkpayAuto!=null){ clearInterval(checkpayAuto); checkpayAuto = null; } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-payment-imbackground,.beidiao-payment-close"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(!obj.hasClass("selected")){ paytype = obj.attr("data"); jQuery(".paytype-item.selected").removeClass("selected"); obj.addClass("selected"); /* if(orderNumber!=""){ postdata = "orderNumber="+orderNumber+"&paytype="+paytype; jQuery.ajax({ url: "https://api.kq36.com/public/returnhtm/return_mobile_Ajax.asp?callback=?&cmd=changepay", type: "POST", data: postdata, dataType: "json", success: function(d) { console.log('changepay:',d); },error:function(x,t,e){} }); } */ } if(obj.attr("data")=="pbankpay"){ pbankpayShow(); }else if(obj.attr("data")=="trpay"){ trpayShow(); } e.preventDefault(); e.stopPropagation(); return false; } },".paytype-item"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(obj.hasClass("hide-1")){ obj.remove(); jQuery(".item-hide.hide-1").removeClass("item-hide").removeClass("hide-1"); }else if(obj.hasClass("hide-2")){ obj.remove(); jQuery(".item-hide.hide-2").removeClass("item-hide").removeClass("hide-2"); }else{ if(!obj.hasClass("selected")){ packages = obj.attr("id"); discount_price = obj.attr("data"); jQuery(".package-item>ul>li.selected").removeClass("selected"); obj.addClass("selected"); } } e.preventDefault(); e.stopPropagation(); return false; } },".package-item>ul>li"); jQuery(document).on({ click:function(e){ if(beidiao_payment_create_click){ beidiao_payment_create_click = false; var obj = jQuery(this); layer.load(1,{time:5*1000}); if(obj.hasClass("pay")){ if(paytype=="pbankpay"){ layer.closeAll('loading'); beidiao_payment_create_click = true; pbankpayShow(); }else if(paytype=="trpay"){ trpayShow(); }else{ postdata = "referer=beidiao&packages="+packages+"&paytype="+paytype+"&source=zd&tradetype="+tradetype+"&openid="+openid+"&mini="+ApiMini; jQuery.ajax({ url: "https://api.kq36.com/public/returnhtm/return_mobile_Ajax.asp?callback=?&cmd=topay", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); beidiao_payment_create_click = true; if(d.status=="1"){ orderNumber = d.orderNumber; payUrl = d.payUrl; alipayUrl = d.alipayUrl; if(paytype=="wxpay"){ openUrl = payUrl; }else if(paytype=="alipay"){ openUrl = alipayUrl; } if(MiniAppWx && !isPC){ var payinfo=d.payUrl; if (payinfo.indexOf("$$")!=-1){ var appId=payinfo.split("$$")[0]; var timeStamp=payinfo.split("$$")[1]; var nonceStr=payinfo.split("$$")[2]; var package_=payinfo.split("$$")[3]; var signType=payinfo.split("$$")[4]; var paySign=payinfo.split("$$")[5]; var totalfee=payinfo.split("$$")[7]; } uni.navigateTo({url: '/pagesub/pages/home/job/vip/pay?backnum=1&appId='+appId+'&timeStamp='+timeStamp+'&nonceStr='+nonceStr+'&package='+package_+'&signType='+signType+'&paySign='+paySign+'&sucmsg='+escape('支付成功!')}); checkpayAuto = setInterval(function(){ postdata = "orderNumber="+orderNumber; jQuery.ajax({ url: "https://api.kq36.com/public/returnhtm/return_mobile_Ajax.asp?callback=?&cmd=checkpay", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { if(d.status==1){ layer.close(index); //jQuery(".beidiao-payment-close"). jQuery(".beidiao-create").trigger("click"); } },error:function(x,t,e){} }); },1000); }else if(WxApp && !isPC){ var payinfo=d.payUrl; if (payinfo.indexOf("$$")!=-1){ var appId=payinfo.split("$$")[0]; var timeStamp=payinfo.split("$$")[1]; var nonceStr=payinfo.split("$$")[2]; var package_=payinfo.split("$$")[3]; var signType=payinfo.split("$$")[4]; var paySign=payinfo.split("$$")[5]; var totalfee=payinfo.split("$$")[7]; } WeixinJSBridge.invoke( 'getBrandWCPayRequest',{ "appId": appId, "timeStamp": timeStamp, "nonceStr": nonceStr, "package": "prepay_id="+package_, "signType": "MD5", "paySign": paySign }, function (res) { var err_msg=res.err_msg if (err_msg == "get_brand_wcpay_request:ok") { //layer.msg("支付成功!",{time:3000},function(){ // jQuery(".beidiao-create").trigger("click"); //}); layer.msg('支付成功!'); jQuery(".beidiao-create").trigger("click"); }else if (err_msg == 'get_brand_wcpay_request:cancel'){ layer.msg('取消支付!'); }else{ layer.msg('支付失败!'); } } ); //}else if(UniAndApp || UniIosApp){ // //layer.msg(openUrl); // uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(openUrl)}); }else if(Android || Ios){ //if (paytype=="wxpay" && ua.indexOf('html5plus')!=-1 && (ua.indexOf('iphone')!=-1 || ua.indexOf('ios')!=-1) && (ua.indexOf('iphone os 15')!=-1 || ua.indexOf('iphone os 16')!=-1) ){ if (paytype=="wxpay"){ top.location.href=openUrl+'&redirect_url='+encodeURIComponent(top.location.href) }else{ top.location.href=openUrl+'?redirect_url='+encodeURIComponent(top.location.href) //top.location.href=openUrl } checkpayAuto = setInterval(function(){ postdata = "orderNumber="+orderNumber; jQuery.ajax({ url: "https://api.kq36.com/public/returnhtm/return_mobile_Ajax.asp?callback=?&cmd=checkpay", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { if(d.status==1){ layer.close(index); //jQuery(".beidiao-payment-close"). jQuery(".beidiao-create").trigger("click"); } },error:function(x,t,e){} }); },1000); }else{ var tip_info = '<div class="accusation_auto_tip pay_qcrode_tip '+paytype+'">'+ ' <div style="text-align:center;">支付金额 <span style="color:#0486C4;font-weight:bold;">¥'+discount_price+'</span></div>'+ ' <div class="wxpay_info">'+ ' <div class="wxpaymsg">微信扫一扫支付,<span style="color:#0486C4;">自动充值</span></div>'+ ' <div style="display: flex;justify-content: center;margin-top: 10px;"><div class="wxpay_qcrode"></div><img class="wximg" src="https://img.kq36.com.cn/weixin.gif"></div>'+ ' <div style="font-size: 16px;text-align: center;margin-top: 5px;">该二维码 <span style="color:red;">2小时</span> 内支付有效</div>'+ ' <div class="wxpaybtn">换支付宝</div>'+ ' </div>'+ ' <div class="alipay_info">'+ ' <div class="alipaymsg">支付宝扫一扫支付,<span style="color:#0486C4;">自动充值</span></div>'+ ' <div style="display: flex;justify-content: center;margin-top: 10px;"><div class="alipay_qcrode"></div><img class="aliimg" src="https://img.kq36.com.cn/pay/alipay_icon.png"></div>'+ ' <div style="font-size: 16px;text-align: center;margin-top: 5px;">该二维码 <span style="color:red;">2小时</span> 内支付有效</div>'+ ' <div class="alipaybtn">换微信</div>'+ ' </div>'+ '</div>'; auto_confirm = layer.confirm(tip_info, { title:'', time:0, shadeClose:true, success:function (layero, index){ layero.append('<div class="auto_tip_close"><span></span></div>'); jQuery('.wxpay_qcrode').qrcode({ text:payUrl, //设置二维码内容 render:"canvas",//设置渲染方式 width:200, //设置宽度 height:200, //设置高度 typeNumber:-1, //计算模式 correctLevel:0,//纠错等级 background:"#ffffff",//背景颜色 foreground:"#04b00f" //前景颜色 }); jQuery('.alipay_qcrode').qrcode({ text:alipayUrl, //设置二维码内容 render:"canvas",//设置渲染方式 width:200, //设置宽度 height:200, //设置高度 typeNumber:-1, //计算模式 correctLevel:0,//纠错等级 background:"#ffffff",//背景颜色 foreground:"#108ee9" //前景颜色 }); var thisTop = ((parseInt(document.body.clientHeight) - parseInt(layero.height()))/2).toString() + "px"; var thisLeft = ((parseInt(document.body.clientWidth) - parseInt(layero.width()))/2).toString() + "px"; layero.css({"border-radius":"10px","top":thisTop,"left":thisLeft}); checkpayAuto = setInterval(function(){ postdata = "orderNumber="+orderNumber; jQuery.ajax({ url: "https://api.kq36.com/public/returnhtm/return_mobile_Ajax.asp?callback=?&cmd=checkpay", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { if(d.status==1){ layer.close(index); //jQuery(".beidiao-payment-close"). jQuery(".beidiao-create").trigger("click"); } },error:function(x,t,e){} }); },1000); }, end:function(){ if(checkpayAuto!=null){ clearInterval(checkpayAuto); checkpayAuto = null; } },btn:false,closeBtn:false }); } }else if(d.status=="0"){ userlogin() }else{ layer.msg(d.msginfo); } },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); beidiao_payment_create_click = true; } }); } }else if(obj.hasClass("batchOK")){ layer.closeAll('loading'); beidiao_payment_create_click = true; layer.msg("批量背调已完成"); }else{ ////////////////////////////////////////////////////////////////////////////////// var liobjArr = jQuery(".beidiao-batch").find("li"); if(liobjArr.length){ layer.load(1,{time:10*1000}); jQuery.each(liobjArr,function(i, o) { var liobj = jQuery(this); liobj.addClass("create"); liobj.append('<div class="batch-state">支付中。。。</div>'); postdata = "cmd=bdcreate&bdid="+bdid; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { if (d.code == "200") { liobj.attr("bd_Id",d.bd_Id).attr("Consume_Id",d.Consume_Id).addClass("createOK"); liobj.find(".batch-state").html('已成功支付!提交资料中。。。'); var candidateName = liobj.find(".name").text(); var candidateMobile = liobj.find(".tel").text(); var companyName1 = liobj.find(".work:eq(0)").text()||""; var companyName2 = liobj.find(".work:eq(1)").text()||""; var companyName3 = liobj.find(".work:eq(2)").text()||""; postdata = "cmd=bduserinfo&batch=1&account=&bd_Id="+d.bd_Id+"&candidateName="+encodeURIComponent(candidateName)+"&candidateMobile="+candidateMobile+"&companyName1="+encodeURIComponent(companyName1)+"&companyName2="+encodeURIComponent(companyName2)+"&companyName3="+encodeURIComponent(companyName3); jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); beidiao_payment_create_click = true; if (d.code == "0") { liobj.find(".batch-state").html('已成功提交!等待候选人授权'); }else if(d.code == "90000" || d.code == "90001"){ liobj.find(".batch-state").addClass("red").html('提交失败!可在 背调记录 里人工提交。'); }else{ liobj.find(".batch-state").addClass("red").html('提交失败!可在 背调记录 里人工提交。'); } batchTip(i); },error:function(x,t,e){ liobj.find(".batch-state").addClass("red").html('提交失败!可在 背调记录 里手动提交。'); batchTip(i); } }); }else if(d.code == "90002"){ liobj.addClass("error"); liobj.find(".batch-state").addClass("red").html('支付失败!'); batchTip(i); }else if(d.code == "90000" || d.code == "90001"){ liobj.addClass("error"); liobj.find(".batch-state").addClass("red").html('支付失败!'); batchTip(i); }else{ liobj.addClass("error"); liobj.find(".batch-state").addClass("red").html('支付失败!'); batchTip(i); } },error:function(x,t,e){ liobj.addClass("error"); liobj.find(".batch-state").addClass("red").html('支付失败!'); batchTip(i); } }); }); }else{ if(checkpayAuto!=null){ clearInterval(checkpayAuto); checkpayAuto = null; } postdata = "cmd=bdcreate&bdid="+bdid; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); beidiao_payment_create_click = true; if (d.code == "200") { if(bdName!="" && bdName!=null){ jQuery("input.user-name").val(bdName); }else{ jQuery("input.user-name").val(''); } if(bdMobile!="" && bdMobile!=null){ jQuery("input.user-tel").val(M344Show(bdMobile)); }else{ jQuery("input.user-tel").val(''); } jQuery(".beidiao-info-btn").attr("data",d.bd_Id).attr("menuId",bdid); jQuery(".beidiao-info-companyName[data=1]").hide(); jQuery(".beidiao-info-companyName[data=2]").hide(); jQuery(".beidiao-info-companyName[data=3]").hide(); if(parseInt(bdid)>22151&&parseInt(bdid)<29000){ jQuery("input.user-companyName1").val(''); jQuery(".beidiao-info-companyName[data=1]").show(); if(parseInt(bdid)>22153){ jQuery("input.user-companyName2").val(''); jQuery(".beidiao-info-companyName[data=2]").show(); if(parseInt(bdid)>22154){ jQuery("input.user-companyName3").val(''); jQuery(".beidiao-info-companyName[data=3]").show(); } } }else if(parseInt(bdid)>29354){ jQuery("input.user-companyName1").val(''); jQuery(".beidiao-info-companyName[data=1]").show(); if(parseInt(bdid)>29356){ jQuery("input.user-companyName2").val(''); jQuery(".beidiao-info-companyName[data=2]").show(); if(parseInt(bdid)>29357){ jQuery("input.user-companyName3").val(''); jQuery(".beidiao-info-companyName[data=3]").show(); } } } setState(location.origin + "/bd/?cmd=addbd"); jQuery(".beidiao-item").hide(); if (window.top !== window.self) { jQuery(".beidiao_user_back").addClass("add").removeClass("list").show(); } jQuery(".beidiao-user-info").show(); //jQuery(".beidiao-payment").hide(); }else if(d.code == "90002"){ jQuery(".beidiao-create").trigger("click"); }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); beidiao_payment_create_click = true; } }); } } } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-payment-create"); jQuery(document).on({ click:function(e){ var tip_info = '<div class="confirm_tip"><div class="confirm_tip_info">确定删除员工名单吗</div></div>'; auto_confirm = layer.confirm(tip_info, { title:false, shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-btn").addClass("ly_btn"); layero.find(".layui-layer-btn0").addClass("confirm_btn_c"); layero.find(".layui-layer-btn1").addClass("confirm_btn_c"); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, end:function(){ },btn:['取消','删除'],closeBtn:true }, function(index){ layer.close(index); }, function(index){ file_data = []; jQuery(".up-file-data").hide(); jQuery(".up-file-btn").show(); file_data_rows = []; file_rows = []; bddata(); layer.close(index); }); e.preventDefault(); e.stopPropagation(); return false; } },".up-file-data"); function batchTip(i){ var liobjArr = jQuery(".beidiao-batch").find("li"); console.log("batchTip:",i,liobjArr.length); if(i==liobjArr.length-1){ file_data = []; jQuery(".up-file-data").hide(); jQuery(".up-file-btn").show(); file_data_rows = []; file_rows = []; bddata(); jQuery(".beidiao-payment-create").addClass("batchOK"); layer.closeAll('loading'); beidiao_payment_create_click = true; var bdNum = jQuery(".beidiao-batch").find("li.createOK").length; var bdname = ""; var bdprice = price * bdNum; if(bdid=="29354"){ bdname = "基础信息"; }else if(bdid=="22151"){ bdname = "基础信息+学历"; }else if(bdid=="29356"){ bdname = "基础+1段工作"; }else if(bdid=="22153"){ bdname = "基础+学历+1段工作"; }else if(bdid=="29357"){ bdname = "基础+2段工作"; }else if(bdid=="22154"){ bdname = "基础+学历+2段工作"; }else if(bdid=="29358"){ bdname = "基础+3段工作"; }else if(bdid=="22155"){ bdname = "基础+学历+3段工作"; } var tipHtml = '<div class="confirm_tip"><div class="confirm_tip_title">已对 '+bdNum+' 人发起背景调查</div><div class="confirm_tip_title">已支付康强点 '+bdprice+' 点</div><div class="confirm_tip_title">调查项目:'+bdname+'</div></div>'; auto_confirm = layer.confirm(tipHtml, { title:'', shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-btn").addClass("ly_btn"); layero.find(".layui-layer-btn0").addClass("confirm_btn_r"); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, cancel:function(index){ layer.close(index); }, end:function(){ jQuery(".beidiao-payment-close").trigger("click"); jQuery(".my-beidiao-btn").trigger("click"); }, btn: ['确定'],closeBtn:true //按钮 }, function(index){ layer.close(index); }); } } jQuery(document).on({ click:function(e){ if(beidiao_payment_create_click){ var obj = jQuery(this); var bd_Id = obj.attr("data"); var menuId = obj.attr("menuId"); var candidateName = textReplace(jQuery(".user-name").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); var candidateMobile = textReplace(jQuery(".user-tel").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); var companyName1 = ""; var companyName2 = ""; var companyName3 = ""; if(candidateName==""){ layer.msg("请输入候选人姓名",{time:2000},function(){ jQuery(".user-name").trigger("focus"); }); return true; } if(candidateMobile==""){ layer.msg("请输入候选人手机号",{time:2000},function(){ jQuery(".user-tel").trigger("focus"); }); return true; } var pattern =/^1[3456789]\d{9}$/; if(!pattern.test(candidateMobile)){ layer.msg("请输入正确手机号",{time:2000},function(){ jQuery(".user-tel").val('').trigger("focus"); }); return true; } if(parseInt(menuId)>22151&&parseInt(menuId)<29000){ companyName1 = textReplace(jQuery(".user-companyName1").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); if(companyName1==""){ layer.msg("请输入第一段任职公司全称",{time:2000},function(){ jQuery(".user-companyName1").trigger("focus"); }); return true; } if(parseInt(menuId)>22153){ companyName2 = textReplace(jQuery(".user-companyName2").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); if(companyName2==""){ layer.msg("请输入第二段任职公司全称",{time:2000},function(){ jQuery(".user-companyName2").trigger("focus"); }); return true; } if(parseInt(menuId)>22154){ companyName3 = textReplace(jQuery(".user-companyName3").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); if(companyName3==""){ layer.msg("请输入第三段任职公司全称",{time:2000},function(){ jQuery(".user-companyName3").trigger("focus"); }); return true; } } } }else if(parseInt(menuId)>29354){ companyName1 = textReplace(jQuery(".user-companyName1").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); if(companyName1==""){ layer.msg("请输入第一段任职公司全称",{time:2000},function(){ jQuery(".user-companyName1").trigger("focus"); }); return true; } if(parseInt(menuId)>29356){ companyName2 = textReplace(jQuery(".user-companyName2").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); if(companyName2==""){ layer.msg("请输入第二段任职公司全称",{time:2000},function(){ jQuery(".user-companyName2").trigger("focus"); }); return true; } if(parseInt(menuId)>29357){ companyName3 = textReplace(jQuery(".user-companyName3").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); if(companyName3==""){ layer.msg("请输入第三段任职公司全称",{time:2000},function(){ jQuery(".user-companyName3").trigger("focus"); }); return true; } } } } beidiao_payment_create_click = false; layer.load(1,{time:5*1000}); postdata = "cmd=bduserinfo&account="+bdAccount+"&bd_Id="+bd_Id+"&candidateName="+encodeURIComponent(candidateName)+"&candidateMobile="+candidateMobile+"&companyName1="+encodeURIComponent(companyName1)+"&companyName2="+encodeURIComponent(companyName2)+"&companyName3="+encodeURIComponent(companyName3); jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); beidiao_payment_create_click = true; if (d.code == "0") { jQuery(".user-name").val(''); jQuery(".user-tel").val(''); jQuery(".beidiao-info-btn").attr("data","0"); jQuery(".beidiao-day-info").html("候选人授权后,预计"+day+"个工作日交付。"); jQuery(".user-name-info").attr("data",candidateName).html(candidateName); //jQuery(".user-tel-info").attr("data",candidateMobile).html(candidateMobile.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2")); jQuery(".user-tel-info").attr("data",candidateMobile).html(M344Show(candidateMobile)); jQuery(".user-edit-tel-btn").attr("data",d.data.orderCode).show(); jQuery(".copy-sms-btn").attr("data",d.data.orderCode).attr("authShortUrl",d.data.authShortUrl).show(); jQuery(".read-report-btn").attr("data",d.data.orderCode).hide(); jQuery(".share-report-btn").attr("data",d.data.orderCode).hide(); jQuery(".down-report-btn").attr("data",d.data.orderCode).hide(); jQuery(".beidiao-status-item.work[data=1]").hide(); jQuery(".beidiao-status-item.work[data=2]").hide(); jQuery(".beidiao-status-item.work[data=3]").hide(); jQuery(".beidiao-info").find(".beidiao-type-info").html('基础版+简历-当前调查进度'); if(parseInt(menuId)>22151&&parseInt(menuId)<29000){ jQuery(".beidiao-info").find(".beidiao-type-info").html('1段工作+学历-当前调查进度'); jQuery(".beidiao-status-item.work[data=1]").find(".info").html(companyName1); jQuery(".beidiao-status-item.work[data=1]").show(); if(parseInt(menuId)>22153){ jQuery(".beidiao-info").find(".beidiao-type-info").html('2段工作+学历-当前调查进度'); jQuery(".beidiao-status-item.work[data=2]").find(".info").html(companyName2); jQuery(".beidiao-status-item.work[data=2]").show(); if(parseInt(menuId)>22154){ jQuery(".beidiao-info").find(".beidiao-type-info").html('3段工作+学历-当前调查进度'); jQuery(".beidiao-status-item.work[data=3]").find(".info").html(companyName3); jQuery(".beidiao-status-item.work[data=3]").show(); } } }else if(parseInt(menuId)>29354){ jQuery(".beidiao-info").find(".beidiao-type-info").html('1段工作-当前调查进度'); jQuery(".beidiao-status-item.work[data=1]").find(".info").html(companyName1); jQuery(".beidiao-status-item.work[data=1]").show(); if(parseInt(menuId)>29356){ jQuery(".beidiao-info").find(".beidiao-type-info").html('2段工作-当前调查进度'); jQuery(".beidiao-status-item.work[data=2]").find(".info").html(companyName2); jQuery(".beidiao-status-item.work[data=2]").show(); if(parseInt(menuId)>29357){ jQuery(".beidiao-info").find(".beidiao-type-info").html('3段工作-当前调查进度'); jQuery(".beidiao-status-item.work[data=3]").find(".info").html(companyName3); jQuery(".beidiao-status-item.work[data=3]").show(); } } }else if(parseInt(menuId)==29354){ jQuery(".beidiao-info").find(".beidiao-type-info").html('基础版-当前调查进度'); } //if (window.top !== window.self) { jQuery(".beidiao_info_back").hide(); //} setState(location.origin + "/bd/?cmd=addbdinfo"); jQuery(".beidiao-info").show(); layer.msg("请提示候选人注意短信通知<br>授权并完成详细资料填写"); }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); beidiao_payment_create_click = true; } }); } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-info-btn"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(obj.hasClass("wxpaybtn")){ jQuery(".pay_qcrode_tip").removeClass("wxpay").addClass("alipay"); }else if(obj.hasClass("alipaybtn")){ jQuery(".pay_qcrode_tip").removeClass("alipay").addClass("wxpay"); } e.preventDefault(); e.stopPropagation(); return false; } },".wxpaybtn,.alipaybtn"); function ListLiUi(o,p){ var Id = o.Id; var menuId = o.menuId; var addtime = o.addtime; var bdStatus = o.bdStatus; var candidateName = o.candidateName; var candidateMobile = o.candidateMobile; var companyName1 = o.companyName1; var companyName2 = o.companyName2; var companyName3 = o.companyName3; var srcOrderNo = o.srcOrderNo; var authShortUrl = o.authShortUrl; var estimateFinishTime = o.estimateFinishTime; var finalVersion = o.finalVersion; var finalReportResSel = o.finalReportResSel; var createtime = o.createtime; var closetime = o.closetime; var batch = o.batch; var s_time = createtime||addtime; if(s_time!=""){ s_time = new Date(s_time.replace(/-/g,"/")).Format("yyyy.M.d"); } var e_time = closetime||estimateFinishTime; if(e_time!=""){ e_time = new Date(e_time.replace(/-/g,"/")).Format("yyyy.M.d"); } var title=""; if(menuId=="22151"){ title="基础版+学历"; }else if(menuId=="22153"){ title="1段工作+学历"; }else if(menuId=="22154"){ title="2段工作+学历"; }else if(menuId=="22155"){ title="3段工作+学历"; }else if(menuId=="29354"){ title="基础版"; }else if(menuId=="29356"){ title="1段工作"; }else if(menuId=="29357"){ title="2段工作"; }else if(menuId=="29358"){ title="3段工作"; } var time_ = new Date(addtime.replace(/-/g,"/")); var liHtml = '<li class="list-item" data="'+Id+'" menuId="'+menuId+'" bdStatus="'+bdStatus+'" finalVersion="'+finalVersion+'" finalReportResSel="'+finalReportResSel+'" srcOrderNo="'+srcOrderNo+'" authShortUrl="'+authShortUrl+'" candidateName="'+candidateName+'" candidateMobile="'+candidateMobile+'" companyName1="'+companyName1+'" companyName2="'+companyName2+'" companyName3="'+companyName3+'">'; if(bdStatus=="-3" || bdStatus=="-2"){ //time_ = new Date(time_.setMonth(time_.getMonth()+1)).Format("yyyy-MM-dd"); 有效期 time_ = new Date(time_).Format("yyyy-MM-dd"); liHtml += '<div t><span l><div class="title">'+title if(batch=="1"){ liHtml += '-<span style="color:red">批量</span>'; } liHtml += '</div><div class="info">购买日期:'+time_+'</div></span><span r><span class="btn">填写资料</span></span></div>'; }else if(bdStatus=="6"||bdStatus=="7"||bdStatus=="8"||bdStatus=="9"){ liHtml += '<div t><span><div class="title">'+title+'('+candidateName+')'; if(batch=="1"){ liHtml += '-<span style="color:red">批量</span>'; } liHtml += '</div><div class="info">已取消</div></span><span></span></div>'; }else if(bdStatus=="4"){ //time_ = time_.Format("yyyy-MM-dd"); liHtml += '<div t><span l><div class="title">'+title+'('+candidateName+')'; if(batch=="1"){ liHtml += '-<span style="color:red">批量</span>'; } liHtml += '</div><div class="info">预计完成时间:'+estimateFinishTime+'</div></span><span r class="btn">查看详情</span></div>'; }else if(bdStatus=="5"){ var bdtype = jQuery(".bdtype-item.active").attr("data"); if(bdtype=="5" && isPC){ liHtml = '<li class="list-item downAll" data="'+Id+'" s_time="'+s_time+'" e_time="'+e_time+'" menuId="'+menuId+'" bdStatus="'+bdStatus+'" finalVersion="'+finalVersion+'" finalReportResSel="'+finalReportResSel+'" srcOrderNo="'+srcOrderNo+'" authShortUrl="'+authShortUrl+'" candidateName="'+candidateName+'" candidateMobile="'+candidateMobile+'" companyName1="'+companyName1+'" companyName2="'+companyName2+'" companyName3="'+companyName3+'"><span class="selected-label"></span>'; } //time_ = time_.Format("yyyy-MM-dd"); var infoHtml = ""; if(finalReportResSel=="1"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/dh.png'></span>属实" }else if(finalReportResSel=="2"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/ch.png'></span>较严重问题" }else if(finalReportResSel=="3"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/th.png'></span>部分差异" }else if(finalReportResSel=="10"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/bh.png'></span>略微差异" } liHtml += '<div t><span l><div t class="title"><span l>'+title+'('+candidateName+')'; if(batch=="1"){ liHtml += '-<span style="color:red">批量</span>'; } liHtml += '</span>'; if(e_time!=""){ liHtml += '<span r class="time">完成时间:'+e_time+'</span>'; } liHtml += '</div><div t class="info"><span l style="display:flex;">'; if(finalVersion=="0"){ liHtml += '阶段性报告'; }else{ liHtml += '终版报告'; } //if(C_UserId=="3435048"){ liHtml += infoHtml+'</span>'; if(s_time!=""){ liHtml += '<span r class="time">发起时间:'+s_time+'</span>'; } liHtml += '</div></span></div><div t><span class="btn read_report" bdName="'+candidateName+'">查看报告</span><span class="btn share_report" bdName="'+candidateName+'">分享</span><span class="btn down_report" bdName="'+candidateName+'" style="background: #fff;color: #00b9e0;">下载报告</span></div>'; //}else{ // if(UniAndApp || UniIosApp || isPC){ // liHtml += infoHtml+'</div></span></div><div t><span class="btn read_report" bdName="'+candidateName+'">查看报告</span><span class="btn share_report" bdName="'+candidateName+'">分享</span><span class="btn down_report" bdName="'+candidateName+'" style="background: #fff;color: #00b9e0;">下载报告</span></div>'; // }else{ // liHtml += infoHtml+'</div></span></div><div t><span class="btn read_report" bdName="'+candidateName+'">查看报告</span><span class="btn down_report" bdName="'+candidateName+'">下载报告</span></div>'; // } //} /* if(finalVersion=="0"){ liHtml += '<div t><span><div class="title">'+title+'('+candidateName+')</div><div class="info">阶段性报告'+infoHtml+'</div></span></div><div t><span class="btn read_report" bdName="'+candidateName+'">查看报告</span><span class="btn down_report" bdName="'+candidateName+'">下载报告</span></div>'; }else{ liHtml += '<div t><span><div class="title">'+title+'('+candidateName+')</div><div class="info">终版报告'+infoHtml+'</div></span></div><div t><span class="btn read_report" bdName="'+candidateName+'">查看报告</span><span class="btn down_report" bdName="'+candidateName+'">下载报告</span></div>'; } */ }else if(bdStatus=="3"){ time_ = time_.Format("yyyy-MM-dd"); liHtml += '<div t><span l><div class="title">'+title+'('+candidateName+')'; if(batch=="1"){ liHtml += '-<span style="color:red">批量</span>'; } liHtml += '</div><div class="info">发起时间:'+time_+'</div></span><span r class="btn copy_sms">授权网址/二维码</span></div>'; } liHtml += '</li>'; if(jQuery("li.list-item[data="+Id+"]").length){ jQuery("li.list-item[data="+Id+"]").replaceWith(liHtml); }else{ if(p=="prepend"){ jQuery(".beidiao-info-list-body>ul").prepend(liHtml); }else if(p=="append"){ jQuery(".beidiao-info-list-body>ul").append(liHtml); } } } jQuery(document).on({ click:function(e){ var obj=jQuery(this); if(obj.hasClass("selected")){ obj.removeClass("selected"); }else{ obj.addClass("selected"); } e.preventDefault(); e.stopPropagation(); return false; } },".selected-label"); function ListLoading(lastid){ if(lastid==""){ my_beidiao_btn_click = false; layer.load(1,{time:5*1000}); jQuery(".beidiao-info-list-body>ul").html(''); //if(!jQuery(".beidiao-info-list-body>ul>li").length){ jQuery(".beidiao-info-list-body>ul").append('<div class="list-loading"><span class="loading-info">数据加载中</span></div>'); //} }else{ jQuery(".beidiao-info-list-body>ul").append('<div class="list-loading"><span class="loading-info">数据加载中</span></div>'); } var bd_name=jQuery(".search_text").val(); var bdtype = jQuery(".bdtype-item.active").attr("data"); var postdata = { cmd:'bdlist', bdtype:bdtype, lastid:lastid, bd_name:bd_name, cookies:uCookies } //postdata = "cmd=bdlist&bdtype="+bdtype+"&lastid="+lastid+"&bd_name="+bd_name; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "post", data: postdata,timeout: 5000, dataType: "json", success: function(d) { if(lastid==""){layer.closeAll('loading');} jQuery(".list-loading").remove(); if(lastid==""){my_beidiao_btn_click = true;} if (d.code == "200") { if(lastid==""){ jQuery.each(d.list.reverse(),function(i, o) { ListLiUi(o,"prepend"); }); }else{ jQuery.each(d.list,function(i, o) { ListLiUi(o,"append"); }); } if(lastid==""){ if(d.list.length<=0){ jQuery(".beidiao-info-list-body>ul").append('<div class="scroll-bottom"><span>~ 暂无相关背调资料 ~</span></div>'); }else if(d.list.length<10){ jQuery(".beidiao-info-list-body>ul").append('<div class="scroll-bottom"><span>~ 我是有底线的 ~</span></div>'); } }else{ if(d.list.length<10){ jQuery(".beidiao-info-list-body>ul").append('<div class="scroll-bottom"><span>~ 我是有底线的 ~</span></div>'); } } }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } if(isRefreshing){ jQuery('.beidiao-info-list-body').css('transform', 'translateY(0px)'); jQuery('.refreshInfo').css('transform', 'translateY(0px)'); jQuery(".refreshInfo").removeClass("fresh").html('下拉刷新...'); isRefreshing = false; } },error:function(x,t,e){ if(lastid==""){layer.closeAll('loading');} var loadHtml = '<span class="loading-btn" data="'+lastid+'">出错了,点击重新加载</span>'; jQuery(".list-loading").html(loadHtml); //layer.msg("网络错误,请稍后重试"); if(lastid==""){my_beidiao_btn_click = true;} if(isRefreshing){ jQuery('.beidiao-info-list-body').css('transform', 'translateY(0px)'); jQuery('.refreshInfo').css('transform', 'translateY(0px)'); jQuery(".refreshInfo").removeClass("fresh").html('下拉刷新...'); isRefreshing = false; } } }); } jQuery(document).on({ click:function(e){ if(getQuery("cmd")=="mybdedit"||getQuery("cmd")=="mybdinfo"){ top.history.back(); }else if(getQuery("cmd")=="addbd"){ top.history.back(); setState(location.origin + "/bd/?cmd=mybd"); }else if(getQuery("cmd")=="addbdinfo"){ top.history.back(); setState(location.origin + "/bd/?cmd=mybd"); }else{ setState(location.origin + "/bd/?cmd=mybd"); } jQuery(".beidiao-item").hide(); jQuery(".beidiao-info-list").show(); if(my_beidiao_btn_click){ ListLoading(""); } jQuery("title").text("背调记录·康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"); e.preventDefault(); e.stopPropagation(); return false; } },".my-beidiao-btn"); jQuery(document).on({ click:function(e){ jQuery(".beidiao-item").hide(); jQuery(".beidiao-info-list").show(); if(my_beidiao_btn_click){ ListLoading(""); } jQuery("title").text("背调记录·康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"); e.preventDefault(); e.stopPropagation(); return false; } },".beidiao_info_back"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(obj.hasClass("add")){ returnMePrice(); jQuery(".beidiao-user-info").hide(); jQuery(".beidiao").show(); jQuery("title").text("康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"); }else if(obj.hasClass("list")){ jQuery(".beidiao-user-info").hide(); jQuery(".beidiao-info-list").show(); if(my_beidiao_btn_click){ ListLoading(""); } jQuery("title").text("背调记录·康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"); } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao_user_back"); jQuery(".beidiao-info-list-body").scroll(function() { var viewH = jQuery(this).height();//可见高度 var contentH = jQuery(this).get(0).scrollHeight;//内容高度 var scrollTop = jQuery(this).scrollTop();//滚动高度 if(scrollTop >= contentH - viewH - 20){ if(jQuery(".list-loading").length){ }else if(jQuery(".scroll-bottom").length){ }else{ var lastid = jQuery(".list-item[menuid]:last").attr("data"); if(lastid!="" && lastid!="undefined"){ ListLoading(lastid); } } } }); var startY = 0,endY = 0, scrollTop = 0,isRefreshing = false; jQuery(document).on({ touchstart: function(e){ var bdtype = jQuery(".bdtype-item.active").attr("data"); if(!isRefreshing&&bdtype!="7") { startY = e.originalEvent.touches[0].pageY; scrollTop = jQuery(this).scrollTop(); } }, touchmove: function(e){ var bdtype = jQuery(".bdtype-item.active").attr("data"); if(!isRefreshing&&bdtype!="7") { endY = e.originalEvent.touches[0].pageY; var distance = endY - startY - scrollTop; if (distance>0){ jQuery(this).css('transform', 'translateY('+distance+'px)'); jQuery('.refreshInfo').css('transform', 'translateY('+distance+'px)'); if(distance>40){ jQuery(".refreshInfo").addClass("fresh").html('释放刷新...'); }else{ jQuery(".refreshInfo").removeClass("fresh").html('下拉刷新...'); } } } }, touchend: function(e){ var bdtype = jQuery(".bdtype-item.active").attr("data"); if(!isRefreshing&&bdtype!="7") { try{ endY = e.originalEvent.touches[0].pageY; }catch{} var distance = endY - startY - scrollTop; if (distance>0){ jQuery(this).css('transform', 'translateY('+distance+'px)'); jQuery('.refreshInfo').css('transform', 'translateY('+distance+'px)'); if(distance>40){ isRefreshing = true; jQuery(this).css('transform', 'translateY(40px)'); jQuery('.refreshInfo').css('transform', 'translateY(40px)'); jQuery(".refreshInfo").removeClass("fresh").html('正在刷新...'); ListLoading(""); }else{ jQuery(".refreshInfo").removeClass("fresh").html('下拉刷新...'); jQuery(this).css('transform', 'translateY(0px)'); jQuery('.refreshInfo').css('transform', 'translateY(0px)'); } } console.log("sxsList:touchend",endY,distance); } startY=0; endY=0; } },".beidiao-info-list-body"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); var lastid = obj.attr("data"); ListLoading(lastid); e.preventDefault(); e.stopPropagation(); return false; } },".loading-btn"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); console.log("li:",obj); var bdStatus = obj.attr("bdStatus"); var Id = obj.attr("data"); var menuId = obj.attr("menuid"); var candidateName = obj.attr("candidateName"); var candidateMobile = obj.attr("candidateMobile"); var companyName1 = obj.attr("companyName1"); var companyName2 = obj.attr("companyName2"); var companyName3 = obj.attr("companyName3"); var srcOrderNo = obj.attr("srcOrderNo"); var authShortUrl = obj.attr("authShortUrl"); var finalVersion = obj.attr("finalVersion"); var finalReportResSel = obj.attr("finalReportResSel"); if(bdStatus=="-3" || bdStatus=="-2"){ setState(location.origin + "/bd/?cmd=mybdedit"); jQuery("input.user-name").val(candidateName); jQuery("input.user-tel").val(candidateMobile); jQuery(".beidiao-info-companyName").hide(); if(parseInt(menuId)>22151&&parseInt(menuId)<29000){ jQuery("input.user-companyName1").val(companyName1); jQuery(".beidiao-info-companyName[data=1]").show(); if(parseInt(menuId)>22153){ jQuery("input.user-companyName2").val(companyName2); jQuery(".beidiao-info-companyName[data=2]").show(); if(parseInt(menuId)>22154){ jQuery("input.user-companyName3").val(companyName3); jQuery(".beidiao-info-companyName[data=3]").show(); } } }else if(parseInt(menuId)>29354){ jQuery("input.user-companyName1").val(companyName1); jQuery(".beidiao-info-companyName[data=1]").show(); if(parseInt(menuId)>29356){ jQuery("input.user-companyName2").val(companyName2); jQuery(".beidiao-info-companyName[data=2]").show(); if(parseInt(menuId)>29357){ jQuery("input.user-companyName3").val(companyName3); jQuery(".beidiao-info-companyName[data=3]").show(); } } } jQuery(".beidiao-info-btn").attr("data",Id).attr("menuId",menuId); jQuery(".beidiao-item").hide(); if (window.top !== window.self) { jQuery(".beidiao_user_back").addClass("list").removeClass("add").show(); } jQuery(".beidiao-user-info").show(); //jQuery(".beidiao-info-list").hide(); }else if(bdStatus=="3" || bdStatus=="4" || bdStatus=="5"){ setState(location.origin + "/bd/?cmd=mybdinfo"); var tempday = "1"; jQuery(".beidiao-status-item.work").hide(); jQuery(".beidiao-info").find(".beidiao-type-info").html('基础版+学历-当前调查进度'); if(parseInt(menuId)>22151&&parseInt(menuId)<29000){ jQuery(".beidiao-info").find(".beidiao-type-info").html('1段工作+学历-当前调查进度'); tempday = "2"; jQuery(".beidiao-status-item.work[data=1]").find(".info").html(companyName1); jQuery(".beidiao-status-item.work[data=1]").show(); if(parseInt(menuId)>22153){ jQuery(".beidiao-info").find(".beidiao-type-info").html('2段工作+学历-当前调查进度'); tempday = "3"; jQuery(".beidiao-status-item.work[data=2]").find(".info").html(companyName2); jQuery(".beidiao-status-item.work[data=2]").show(); if(parseInt(menuId)>22154){ jQuery(".beidiao-info").find(".beidiao-type-info").html('3段工作+学历-当前调查进度'); tempday = "4"; jQuery(".beidiao-status-item.work[data=3]").find(".info").html(companyName3); jQuery(".beidiao-status-item.work[data=3]").show(); } } }else if(parseInt(menuId)>29354){ jQuery(".beidiao-info").find(".beidiao-type-info").html('1段工作-当前调查进度'); tempday = "2"; jQuery(".beidiao-status-item.work[data=1]").find(".info").html(companyName1); jQuery(".beidiao-status-item.work[data=1]").show(); if(parseInt(menuId)>22153){ jQuery(".beidiao-info").find(".beidiao-type-info").html('2段工作-当前调查进度'); tempday = "3"; jQuery(".beidiao-status-item.work[data=2]").find(".info").html(companyName2); jQuery(".beidiao-status-item.work[data=2]").show(); if(parseInt(menuId)>22154){ jQuery(".beidiao-info").find(".beidiao-type-info").html('3段工作-当前调查进度'); tempday = "4"; jQuery(".beidiao-status-item.work[data=3]").find(".info").html(companyName3); jQuery(".beidiao-status-item.work[data=3]").show(); } } }else if(parseInt(menuId)==29354){ jQuery(".beidiao-info").find(".beidiao-type-info").html('基础版-当前调查进度'); } jQuery(".beidiao-day-info").html("候选人授权后,预计"+tempday+"个工作日交付。"); jQuery(".user-name-info").attr("data",candidateName).html(candidateName); jQuery(".user-tel-info").attr("data",candidateMobile).html(candidateMobile.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2")); jQuery(".user-edit-tel-btn").attr("data",srcOrderNo); jQuery(".copy-sms-btn").attr("data",srcOrderNo).attr("authShortUrl",authShortUrl); jQuery(".read-report-btn").attr("data",srcOrderNo); jQuery(".share-report-btn").attr("data",srcOrderNo); jQuery(".down-report-btn").attr("data",srcOrderNo); jQuery(".beidiao-status-item").removeClass("doing").removeClass("done"); jQuery(".beidiao-status-item:last").find(".info").html(''); jQuery(".step-item-3").removeClass("finished"); if(bdStatus=="3"){ jQuery(".user-edit-tel-btn").show(); jQuery(".copy-sms-btn").show(); jQuery(".read-report-btn").hide(); jQuery(".share-report-btn").hide; jQuery(".down-report-btn").hide(); jQuery(".beidiao-status-item:eq(0)").addClass("doing"); jQuery(".beidiao-status-item:eq(0)").find(".title").html("等待候选人授权"); }else if(bdStatus=="4"){ jQuery(".user-edit-tel-btn").hide(); jQuery(".copy-sms-btn").hide(); jQuery(".read-report-btn").hide(); jQuery(".share-report-btn").hide; jQuery(".down-report-btn").hide(); jQuery(".beidiao-status-item:eq(0)").addClass("done"); jQuery(".beidiao-status-item:eq(1)").addClass("doing"); jQuery(".beidiao-status-item:eq(0)").find(".title").html("候选人已授权"); }else if(bdStatus=="5"){ jQuery(".beidiao-day-info").html(""); jQuery(".beidiao-info-body").find(".step-line-2").addClass("activity"); jQuery(".beidiao-info-body").find(".step-item-3").addClass("selected").addClass("finished"); jQuery(".user-edit-tel-btn").hide(); jQuery(".copy-sms-btn").hide(); jQuery(".read-report-btn").show(); if(UniAndApp || UniIosApp){ jQuery(".share-report-btn").show(); } jQuery(".down-report-btn").show(); jQuery(".beidiao-status-item").addClass("done"); jQuery(".beidiao-status-item:eq(0)").find(".title").html("候选人已授权"); var infoHtml = ""; if(finalReportResSel=="1"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/dh.png'></span>属实" }else if(finalReportResSel=="2"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/ch.png'></span>较严重问题" }else if(finalReportResSel=="3"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/th.png'></span>部分差异" }else if(finalReportResSel=="10"){ infoHtml = " - <span class='lamp'><img src='https://img.kq36.com.cn/im/img/beidiao/bh.png'></span>略微差异" } if(finalVersion=="0"){ jQuery(".beidiao-status-item:last").removeClass("done").addClass("doing"); jQuery(".beidiao-status-item:last").find(".info").html('<div style="display: flex;margin-bottom: 5px;">阶段性报告'+infoHtml+'</div>各项调查结果请以终版报告为准'); }else if(finalVersion=="1"){ jQuery(".beidiao-status-item:last").find(".info").html('<div style="display: flex;margin-bottom: 5px;">终版报告'+infoHtml+'</div>'); } } if (window.top !== window.self) { jQuery(".beidiao_info_back").show(); } jQuery(".beidiao-info").show(); jQuery(".beidiao-info-list").hide(); if(srcOrderNo!=""){ } } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-info-list-body>ul>li"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(!obj.hasClass("active")){ obj.siblings().removeClass("active"); obj.addClass("active"); jQuery(".beidiao-info-list-body").css({"height":""}); jQuery(".search_clear").trigger("click"); jQuery(".beidiao-info-list").find(".search").hide(); if(obj.attr("data")=="7"){ if(jQuery("body").hasClass("top-hide")){ jQuery(".beidiao-info-list-body").css({"height":"calc(100% - 65px - 80px - 50px)"}); }else if(jQuery("body").hasClass("pc")){ jQuery(".beidiao-info-list-body").css({"height":"calc(100% - 65px - 50px - 10px - 50px)"}); }else{ jQuery(".beidiao-info-list-body").css({"height":"calc(100% - 65px - 50px - 80px - 50px)"}); } jQuery(".beidiao-info-list").find(".search").css({"display":"flex"}); jQuery(".beidiao-info-list-body>ul").html(''); jQuery(".beidiao-info-list").find(".beidiao-bottom").html('<span class="beidiao-add-btn" l data="0">发起背调</span> <span class="beidiao-batch-btn" data="1">批量背调</span>'); return false; }else if(obj.attr("data")=="5"){ if(isPC){ jQuery(".beidiao-info-list").find(".beidiao-bottom").html('<span class="batch-selected"><span class="batch-s-btn">全选</span><span class="batch-s-btn">反选</span><span class="batch-s-btn">取消选中</span></span><span class="batch-down-btn">批量下载</span>'); } }else{ jQuery(".beidiao-info-list").find(".beidiao-bottom").html('<span class="beidiao-add-btn" l data="0">发起背调</span> <span class="beidiao-batch-btn" data="1">批量背调</span>'); } ListLoading(""); } e.preventDefault(); e.stopPropagation(); return false; } },".bdtype-item"); var inputTimeOut = null; jQuery(document).on("input propertychange change", ".search_text", function(e) { var obj=jQuery(this); clearTimeout(inputTimeOut); inputTimeOut=setTimeout(function(){ var val = obj.val();//.replace(/[^\u4E00-\u9FA50-9a-zA-Z]/g,''); obj.val(val); if(jQuery.trim(val)){ jQuery(".search_clear").show(); }else{ jQuery(".search_clear").hide(); jQuery(".beidiao-info-list-body").find("ul").html(''); } },100); }); jQuery(document).on({ click:function(e){ jQuery(this).trigger("focus"); }, touchstart: function(e){ }, touchmove: function(e){ }, touchend: function(e){ jQuery(this).click(); } },".search_text"); jQuery(document).on({ click:function(e){ var obj=jQuery(this); jQuery(".search_text").val(''); obj.hide(); jQuery(".beidiao-info-list-body").find("ul").html(''); e.preventDefault(); e.stopPropagation(); return false; }, touchstart: function(e){ e.stopPropagation(); }, touchmove: function(e){ e.stopPropagation(); }, touchend: function(e){ jQuery(this).click(); e.preventDefault(); e.stopPropagation(); return false; } },".search_clear"); jQuery(document).on("click", ".search_btn", function(e) { var text = jQuery(".search_text").val(); if(text.length){ ListLoading(""); }else{ layer.msg("请输入姓名"); } e.preventDefault(); e.stopPropagation(); return false; }); jQuery(document).on({ click:function(e){ var obj=jQuery(this); var downobj = jQuery(".selected-label").closest(".list-item.downAll"); if(downobj.length==0){ layer.msg("暂无已完成报告"); }else{ var text=obj.text(); if(text=="全选"){ jQuery(".downAll").find(".selected-label").addClass("selected"); }else if(text=="反选"){ jQuery(".downAll").find(".selected-label.selected").addClass("del"); jQuery(".downAll").find(".selected-label").not(".del").addClass("selected"); jQuery(".downAll").find(".selected-label.del").removeClass("selected").removeClass("del"); }else{ jQuery(".downAll").find(".selected-label").removeClass("selected"); } } e.preventDefault(); e.stopPropagation(); return false; } },".batch-s-btn"); jQuery(document).on({ click:function(e){ var downobj = jQuery(".selected-label.selected").closest("li"); if(downobj.length==0){ layer.msg("请先选择要下载的报告"); }else{ var ok=0; var err=0; layer.load(1,{time:300*1000}); jQuery.each(downobj,function(i, o) { var srcOrderNo = jQuery(this).attr("srcorderno"); var liobj = jQuery(this); var bdName = liobj.attr("candidatename"); var finalVersion = liobj.attr("finalVersion"); var finalReportResSel = liobj.attr("finalReportResSel"); var fileName = bdName+'_背调报告·康强医疗人才网'; if(finalVersion=="0"){ fileName += '_阶段性报告'; }else{ fileName += '_终版报告'; } if(finalReportResSel=="1"){ fileName += '_属实'; }else if(finalReportResSel=="2"){ fileName += '_较严重问题'; }else if(finalReportResSel=="3"){ fileName += '_部分差异'; }else if(finalReportResSel=="10"){ fileName += '_略微差异'; } fileName += '_'+srcOrderNo + '.pdf'; postdata = "cmd=bddownurl&srcOrderNo="+srcOrderNo; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { if (d.code == "0") { console.log("d:", d); downloadIamge(d.data,fileName); liobj.find(".selected-label").removeClass("selected"); ok++; }else if(d.code == "90000" || d.code == "90001"){ err++; //userlogin() }else{ err++; //layer.msg(d.msg); } batchDownTip(downobj,i,ok,err); },error:function(x,t,e){ //layer.msg("网络错误,请稍后重试"); err++; batchDownTip(downobj,i,ok,err); } }); }); } e.preventDefault(); e.stopPropagation(); return false; } },".batch-down-btn"); function batchDownTip(o,i,ok,err){ //console.log("batchDownTip:",o,i,ok,err); if(i==o.length-1){ layer.closeAll('loading'); var tipHtml = '<div class="confirm_tip"><div class="confirm_tip_title">成功下载 <span style="color:#2e7ed3;">'+ok+'</span> 份报告</div>'; if(err>0){ tipHtml += '<div class="confirm_tip_title">下载失败 <span style="color:red;">'+err+'</span> 份报告</div>'; } tipHtml += '</div>'; auto_confirm = layer.confirm(tipHtml, { title:'', shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, cancel:function(index){ layer.close(index); }, end:function(){ }, btn: false,closeBtn:true //按钮 }); } } jQuery(document).on({ click:function(e){ if(top.location.host == "c.kq36.com"){ }else if(getQuery("cmd")=="mybd"){ top.history.back(); }else if(getQuery("cmd")=="mybdinfo"||getQuery("cmd")=="addbdinfo"){ top.history.back(); top.history.back(); } returnMePrice(); jQuery(".beidiao-item").hide(); jQuery(".beidiao").show(); jQuery("title").text("康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"); file_data = []; jQuery(".up-file-data").hide(); jQuery(".up-file-btn").show(); file_data_rows = []; file_rows = []; bddata(); jQuery(".beidiao-body").scrollTop(0); if(jQuery(this).hasClass("beidiao-batch-btn")){ jQuery(".beidiao-selected-btn").find(".title").html("批量背调员工"); jQuery(".beidiao-flie").css({"display":"flex"}); jQuery(".beidiao-create").addClass("batch").html("批量背景调查").attr("data","0"); }else{ jQuery(".beidiao-selected-btn").find(".title").html("背景调查员工"); jQuery(".beidiao-flie").css({"display":"none"}); jQuery(".beidiao-create").removeClass("batch").html("背景调查1个人").attr("data","0"); } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-add-btn,.beidiao-batch-btn"); jQuery(document).on({ click:function(e){ var userTel = jQuery(".user-tel-info").attr("data"); var srcOrderNo = jQuery(this).attr("data"); var telHtml = '<div class="beidiao-edit-top">修改候选手机号<span class="beidiao-edit-close"></span></div>'+ '<div class="beidiao-edit-info">'+ ' <div class="beidiao-edit-info-top" style="font-size: 16px;margin: 20px;">填写新的手机号后,将以新手机号联系候选人</div>'+ ' <div class="beidiao-edit-tel">'+ ' <div class="beidiao-edit-title">原手机号</div>'+ ' <div><input placeholder="请输入候选人新手机号" value="'+M344Show(userTel)+'" class="user-edit-tel" type="text"></div>'+ ' </div> '+ '</div>'+ '<div class="beidiao-payment-bottom"><span class="beidiao-edit-btn" data="'+srcOrderNo+'">确认修改</span></div>'; jQuery(".beidiao-edit-body").html(telHtml); jQuery(".beidiao-edit").show(); e.preventDefault(); e.stopPropagation(); return false; } },".user-edit-tel-btn"); jQuery(document).on({ click:function(e){ jQuery(".beidiao-edit").hide(); e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-edit-imbackground,.beidiao-edit-close"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); if(!obj.hasClass("click")){ var srcOrderNo = jQuery(this).attr("data"); var candidateMobile = textReplace(jQuery(".user-edit-tel").val().replace(/ /g, "").replace(/&nbsp;/g, ""), 0); if(candidateMobile==""){ layer.msg("请输入候选人新手机号",{time:2000},function(){ jQuery(".beidiao-edit-tel").find(".beidiao-edit-title").hide(); jQuery(".user-edit-tel").trigger("focus"); }); return true; } var pattern =/^1[3456789]\d{9}$/; if(!pattern.test(candidateMobile)){ layer.msg("请输入正确手机号",{time:2000},function(){ jQuery(".beidiao-edit-tel").find(".beidiao-edit-title").hide(); jQuery(".user-edit-tel").val('').trigger("focus"); }); return true; } obj.addClass("click"); layer.load(1,{time:5*1000}); postdata = "cmd=bdedit&srcOrderNo="+srcOrderNo+"&candidateMobile="+candidateMobile; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); obj.removeClass("click"); if (d.code == "0") { jQuery(".user-tel-info").attr("data",candidateMobile).html(candidateMobile); jQuery(".beidiao-edit").hide(); layer.msg("修改成功<br>请提示候选人注意短信通知<br>授权并完成详细资料填写"); }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); obj.removeClass("click"); } }); } e.preventDefault(); e.stopPropagation(); return false; } },".beidiao-edit-btn"); var timeOutCloseTip = null; jQuery(document).on({ click:function(e){ var obj = jQuery(this); //var bdName = obj.attr("bdName"); //if(!obj.hasClass("click")){ var srcOrderNo = obj.closest("li").attr("srcorderno") || obj.attr("data"); var liobj = jQuery("li[srcOrderNo='"+srcOrderNo+"']"); var bdName = liobj.attr("candidatename"); var finalVersion = liobj.attr("finalVersion"); var finalReportResSel = liobj.attr("finalReportResSel"); var fileName = bdName+'_背调报告·康强医疗人才网'; if(finalVersion=="0"){ fileName += '_阶段性报告'; }else{ fileName += '_终版报告'; } if(finalReportResSel=="1"){ fileName += '_属实'; }else if(finalReportResSel=="2"){ fileName += '_较严重问题'; }else if(finalReportResSel=="3"){ fileName += '_部分差异'; }else if(finalReportResSel=="10"){ fileName += '_略微差异'; } fileName += '_'+srcOrderNo + '.pdf'; //obj.addClass("click"); //layer.load(1,{time:5*1000}); var fileUrl = 'https://img.kq36.com.cn/bd/'+srcOrderNo+'/'+fileName; if(obj.hasClass("read_report") || obj.hasClass("read-report-btn")){ if(UniAndApp){ if(AppVersion>=8.0){ uni.postMessage({data:{action:'openDocument',url:fileUrl,filename:fileName}}); }else{ layer.msg("该功能需要升级到8.0以上版本"); } }else if(UniIosApp){ uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(MiniAppWx){ if(Ios){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(Android || isPC){ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } }else{ if(isPC||Ios){ var a = document.createElement('a'); a.setAttribute('href', fileUrl); a.setAttribute('target', '_blank'); a.setAttribute('id', 'openurl'); if(!document.getElementById('openurl')) document.body.appendChild(a); a.click(); }else{ layer.open({ type: 2, title: "背调报告", shadeClose: true, id:srcOrderNo, shade: false, area: ['100%', '100%'], content: fileUrl, success:function (layero, index){ layero.find(".layui-layer-title").css({"display":"flex","justify-content":"center","padding":"0"}); layero.find(".layui-layer-title").before('<div class="toolbar_back back_out_98"><a class="back_out">返回</a></div>'); layero.find(".back_out_98").on("click",function(e){layer.close(index);}); } }); } } }else if(obj.hasClass("down_report") || obj.hasClass("down-report-btn")){ if(UniAndApp || UniIosApp){ uni.postMessage({data: {action: 'sharefile',url:fileUrl,name:fileName}});//分享文件 }else if(MiniAppWx){ if(isPC){ downloadIamge(fileUrl,fileName); }else if(AlipayMiniApp || QQMiniApp || toutiaoMiniApp || baiduMiniApp){ if(Ios){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else{ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } }else{ uni.navigateTo({ url: '/pagesub/pages/home/webtip/gotip?typen=sharefile_btn&btnname='+encodeURIComponent('发送到微信')+'&name='+encodeURIComponent(fileName.replace('.pdf',''))+'&url='+encodeURIComponent(fileUrl) }); } /* if(Ios){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(Android || isPC){ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } */ }else{ if(Ios){ top.location.href = fileUrl; }else{ downloadIamge(fileUrl,fileName); } } }else if(obj.hasClass("share_report") || obj.hasClass("share-report-btn")){ if(UniAndApp || UniIosApp){ uni.postMessage({data: {action: 'sharefile',url:fileUrl,name:fileName}});//分享文件 }else if(isPC){ var postdata = { scene:'3g-bd/'+liobj.attr("data"), } console.log("postdata:",postdata); jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?cmd=QRCode&callback=?", type: "POST", data: postdata, dataType: "json", success: function(d) { if (d.code == "200") { var tip_info = '<div class="accusation_auto_tip pay_qcrode_tip wxpay">'+ ' <div style="text-align:center;">'+bdName+'-背调报告</div>'+ ' <div class="wxpay_info">'+ ' <div style="display: flex;justify-content: center;margin-top: 10px;"><div class="wxpay_qcrode"><img style="width:240px;height:240px;" src="data:image/jpeg;base64,' + d.qrcode + '"></div></div>'+ ' <div class="wxpaymsg" style="margin-top:10px">微信扫一扫</div>'+ ' </div>'+ '</div>'; auto_confirm = layer.confirm(tip_info, { title:'', id:'trpay', time:0, shadeClose:true, success:function (layero, index){ layero.append('<div class="auto_tip_close"><span></span></div>'); var thisTop = ((parseInt(document.body.clientHeight) - parseInt(layero.height()))/2).toString() + "px"; var thisLeft = ((parseInt(document.body.clientWidth) - parseInt(layero.width()))/2).toString() + "px"; layero.css({"border-radius":"10px","top":thisTop,"left":thisLeft}); }, end:function(){ clearTimeout(timeOutCloseTip); },btn:false,closeBtn:false }); }else{ console.log("Load_ShareUrl_Logo:Err", d); } } }); }else if(MiniAppWx){ if(isPC || AlipayMiniApp || QQMiniApp || toutiaoMiniApp || baiduMiniApp){ if(Ios){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else{ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } }else{ uni.navigateTo({ url: '/pagesub/pages/home/webtip/gotip?typen=sharefile_btn&btnname='+encodeURIComponent('分享报告')+'&name='+encodeURIComponent(fileName.replace('.pdf',''))+'&url='+encodeURIComponent(fileUrl) }); } /* if(Ios){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(Android || isPC){ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } */ }else{ if(Ios){ top.location.href = fileUrl; }else{ downloadIamge(fileUrl,fileName); } } } //} e.preventDefault(); e.stopPropagation(); return false; } },".share_report,.share-report-btn,.read_report,.down_report,.read-report-btn,.down-report-btn"); jQuery(document).on({ click:function(e){ var obj = jQuery(this); var srcOrderNo = obj.closest("li").attr("srcorderno") || obj.attr("data"); var liobj = jQuery("li[srcOrderNo='"+srcOrderNo+"']"); var bdName = liobj.attr("candidatename") || obj.closest(".user-info").find(".user-name-info").attr("data"); var authshorturl = liobj.attr("authshorturl") || obj.attr("authshorturl"); var TextStr = "【康强医疗人才网】尊敬的"+bdName+",您好!我方对您进行雇前背景调查,需要您提供基本信息并授权。请点击 "+authshorturl+" 进行填写。授权信息将严格保密。"; var tip_info = '<div class="accusation_auto_tip sms_qcrode_tip">'+ ' <div style="text-align:center;">'+bdName+'-背调授权网址</div>'+ ' <div class="wxpay_info">'+ ' <div style="display: flex;justify-content: center;padding:10px;"><div class="wxpay_qcrode" style="width:240px;height:240px;"></div></div>'+ ' </div>'+ '</div>'; var auto_confirm = layer.confirm(tip_info, { title:'',type:1, shadeClose:true, success:function (layero, index){ jQuery('.wxpay_qcrode').qrcode({ text:authshorturl, //设置二维码内容 render:"table",//设置渲染方式 width:240, //设置宽度 height:240, //设置高度 typeNumber:-1, //计算模式 correctLevel:0,//纠错等级 background:"#ffffff",//背景颜色 foreground:"#000" //前景颜色 }); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)'}); layero.find(".layui-layer-btn").css({"display":"flex","justify-content":"center"}); layero.find(".layui-layer-btn0").css({"padding":"0 20px"}); layero.find(".layui-layer-btn1").css({"padding":"0 20px","border-color":"#1E9FFF","background-color":"#1E9FFF","color":"#fff"}); if(AlipayMiniApp||QQMiniApp||toutiaoMiniApp||baiduMiniApp){ layero.find(".layui-layer-btn1").remove(); }else if(WxApp&&!isPC){ layero.find(".layui-layer-btn1").remove(); }else if(UniIosApp || UniAndApp){ if(UniIosApp && AppVersion>=8.1){ }else if(UniAndApp && AppVersion>=8.9){ }else{ layero.find(".layui-layer-btn1").remove(); } } setTimeout(function(){ html2canvas(layero.find(".sms_qcrode_tip")[0],{ scale: 2, // 提高画质 useCORS:true, }).then(function(canvas) { var dataUrl = canvas.toDataURL('image/jpeg'); tip_info = '<img id="SmsQRCode" class="ok" style="max-width:260px;" src="' + dataUrl + '">'; layero.find(".sms_qcrode_tip").html(tip_info); //layer.closeAll('loading'); if(WxApp&&!isPC){ layero.find(".layui-layer-content").after('<div style="text-align:center;font-size:18px;">长按图片可 分享 和 保存</div>'); } //setTimeout(function(){ //var thisTop = ((parseInt(document.body.clientHeight) - parseInt(layero.height()))/2).toString() + "px"; //var thisLeft = ((parseInt(document.body.clientWidth) - parseInt(layero.width()))/2).toString() + "px"; //layero.css({"top":thisTop,"left":thisLeft}); //},500); }); },500); }, btn:['复制网址','下载分享'], closeBtn:true }, function(index){ layer.close(index); beidiaoCopyText(TextStr,"复制成功",1,1000); }, function(index){ var dataUrl = jQuery("#SmsQRCode").attr("src"); saveBase64ToLocal(dataUrl,bdName+".png"); return false; }); //beidiaoCopyText(TextStr,"复制成功",1,1000); e.preventDefault(); e.stopPropagation(); return false; } },".copy_sms,.copy-sms-btn"); function b64toBlob(b64data) { var arr = b64data.split(','); var mime = arr[0].match(/:(.*?);/)[1]; var bstr = atob(arr[1]); var n = bstr.length; var u8arr = new Uint8Array(n); while (n--) { u8arr[n] = bstr.charCodeAt(n); } return new Blob([u8arr], { type: mime }); } function saveBase64ToLocal(base64, fileName) { if((UniIosApp && AppVersion>=8.1)||(UniAndApp && AppVersion>=8.9)){ uni.postMessage({ data: { action: 'share_wx_img', url: base64 } }) }else{ // 将Base64字符串转换为Blob对象 var blob = b64toBlob(base64); // 创建一个指向Blob对象的URL var blobUrl = URL.createObjectURL(blob); // 创建一个a标签并设置属性 var adown = document.createElement('a'); adown.style.display = 'none'; adown.href = blobUrl; adown.download = fileName; // 将a标签添加到文档中,并模拟点击 document.body.appendChild(adown); adown.click(); // 清理并移除元素和URL引用 document.body.removeChild(adown); URL.revokeObjectURL(blobUrl); } } jQuery(document).on("input propertychange change", ".user-tel", function(e) { var obj = jQuery(this); obj.val(M344Show(obj.val())); }); jQuery(document).on("input propertychange change", ".user-edit-tel", function(e) { var obj = jQuery(this); if(obj.val().length){ obj.val(M344Show(obj.val())); }else{ jQuery(".beidiao-edit-tel").find(".beidiao-edit-title").hide(); } }); function M344Show(newVal){ if(newVal==null || newVal==""){ return ""; } if(newVal.length>=13){ newVal = newVal.slice(0, 13); } if (newVal.indexOf(' ') >= 0) { newVal = newVal.replace(/\s+/g, ''); } if (newVal.length > 3 && newVal.length < 8) { newVal = newVal.replace(/^(\d{3})/g, '$1 '); } else if (newVal.length >= 8 && newVal.length < 12) { newVal = newVal.replace(/^(\d{3})(\d{4})/g, '$1 $2 '); } return newVal.slice(0, 13) } function returnMePrice(){ postdata = "cmd=mePrice"; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); if (d.code == "200") { var priceFloor = d.price; if(priceFloor>1){ priceFloor=Math.floor(priceFloor) } jQuery(".me-price").html('可用'+priceFloor+'点'); }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); } }); } /* function returnRet(){ postdata = "cmd=ret&ret="+ret+"&re=beidiao"; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata, dataType: "json", success: function(d) { if(d.code=="200"){ layer.msg("ret登入:"+d.utype+"-"+d.uid); C_UserId = d.uid; C_Vip = d.vip; C_Auditing = d.auditing; returnMePrice(); } },error:function(x,t,e){ } }); } */ var hiddenProperty = 'hidden' in document ? 'hidden' : 'webkitHidden' in document ? 'webkitHidden' : 'mozHidden' in document ? 'mozHidden' : null; var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange'); var onVisibilityChange = function(){ if (!document[hiddenProperty]) { if(C_UserType==""){ postdata = "cmd=userLogin"; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata, dataType: "json", success: function(d) { if(d.code=="200"){ C_UserId = d.uid; C_UserType = d.utype; if(self == top){ jQuery("#WEBimIframe").attr("src","/im/m/im.1.2.asp?onload=1&Tout=1"); jQuery.get("/public/returnhtm/return_visit.asp",{utype:'/beidiao',Urlup:escape(document.referrer)},function(){}); } } },error:function(x,t,e){ } }); } } } document.addEventListener(visibilityChangeEvent, onVisibilityChange); function userlogin(){ layer.msg("请先登入",{time:2000},function(){ if(MiniAppWx||AlipayMiniApp||QQMiniApp||toutiaoMiniApp||baiduMiniApp){ uni.navigateTo({url: '/pagesubL/pages/home/login/mlogin?returnpage='+encodeURIComponent(window.location.href.replace(/\?ret=(.*?)&/g,"?").replace(/&ret=(.*?)&/g,"&").replace(/&ret=(.*?)/g,""))}); }else if(UniIosApp || UniAndApp){ uni.navigateTo({url: '/pages/home/login/mlogin?returnpage='+encodeURIComponent(window.location.href.replace(/\?ret=(.*?)&/g,"?").replace(/&ret=(.*?)&/g,"&").replace(/&ret=(.*?)/g,""))}); }else{ if(top.location.href.indexOf('c.kq36.com')>-1||top.location.href.indexOf('p.kq36.com')>-1||top.location.href.indexOf('www.kq36.com')>-1){ top.location.reload(); }else{ location.href = "https://3g.kq36.com/login.asp?isback=1"; } } }); } function trpayShow(){ layer.load(1,{time:5*1000}); //postdata = "packages="+packages+"&paytype="+paytype+"&source=zd&tradetype="+tradetype+"&openid="+openid+"&mini="+ApiMini; postdata = "referer=beidiao&packages="+packages+"&paytype="+paytype+"&source=zd&tradetype=&openid="+openid+"&mini="+ApiMini; jQuery.ajax({ url: "https://api.kq36.com/public/returnhtm/return_mobile_Ajax.asp?callback=?&cmd=topay", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { layer.closeAll('loading'); beidiao_payment_create_click = true; if(d.status=="1"){ orderNumber = d.orderNumber; payUrl = d.payUrl; alipayUrl = d.alipayUrl; var tip_info = '<div class="accusation_auto_tip pay_qcrode_tip wxpay">'+ ' <div style="text-align:center;">帮我付款 <span style="color:#0486C4;font-weight:bold;">¥'+discount_price+'</span></div>'+ ' <div class="wxpay_info">'+ ' <div class="wxpaymsg">微信扫一扫支付</div>'+ ' <div style="display: flex;justify-content: center;margin-top: 10px;"><div class="wxpay_qcrode"></div><img class="wximg" src="https://img.kq36.com.cn/weixin.gif"></div>'+ ' <div style="font-size: 16px;text-align: center;margin-top: 5px;">该二维码 <span style="color:red;">2小时</span> 内支付有效</div>'+ ' <div class="wxpaybtn" data-html2canvas-ignore>换支付宝</div>'; if(UniAndApp || UniIosApp){ tip_info +=' <div class="shareimgbtn" data-html2canvas-ignore>发送给微信好友</div>'; } tip_info +=''+ ' </div>'+ ' <div class="alipay_info">'+ ' <div class="alipaymsg">支付宝扫一扫支付</div>'+ ' <div style="display: flex;justify-content: center;margin-top: 10px;"><div class="alipay_qcrode"></div><img class="aliimg" src="https://img.kq36.com.cn/pay/alipay_icon.png"></div>'+ ' <div style="font-size: 16px;text-align: center;margin-top: 5px;">该二维码 <span style="color:red;">2小时</span> 内支付有效</div>'+ ' <div class="alipaybtn">换微信</div>'+ ' </div>'+ '</div>'; auto_confirm = layer.confirm(tip_info, { title:'', id:'trpay', time:0, shadeClose:true, success:function (layero, index){ layero.append('<div class="auto_tip_close"><span></span></div>'); jQuery('.wxpay_qcrode').qrcode({ text:payUrl, //设置二维码内容 render:"table",//设置渲染方式 width:200, //设置宽度 height:200, //设置高度 typeNumber:-1, //计算模式 correctLevel:0,//纠错等级 background:"#ffffff",//背景颜色 foreground:"#04b00f" //前景颜色 }); /* setTimeout(function(){ html2canvas(jQuery('.wxpay_qcrode')[0],{ useCORS:true, allowTaint:false, }).then(function(canvas) { var dataUrl = canvas.toDataURL('image/jpeg'); jQuery('.wxpay_qcrode').html('<img src="'+dataUrl+'" style="width:200px;height:200px;">'); }); },500); */ jQuery('.alipay_qcrode').qrcode({ text:alipayUrl, //设置二维码内容 render:"canvas",//设置渲染方式 width:200, //设置宽度 height:200, //设置高度 typeNumber:-1, //计算模式 correctLevel:0,//纠错等级 background:"#ffffff",//背景颜色 foreground:"#108ee9" //前景颜色 }); var thisTop = ((parseInt(document.body.clientHeight) - parseInt(layero.height()))/2).toString() + "px"; var thisLeft = ((parseInt(document.body.clientWidth) - parseInt(layero.width()))/2).toString() + "px"; layero.css({"border-radius":"10px","top":thisTop,"left":thisLeft}); checkpayAuto = setInterval(function(){ postdata = "orderNumber="+orderNumber; jQuery.ajax({ url: "https://api.kq36.com/public/returnhtm/return_mobile_Ajax.asp?callback=?&cmd=checkpay", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { if(d.status==1){ layer.close(index); //jQuery(".beidiao-payment-close"). jQuery(".beidiao-create").trigger("click"); } },error:function(x,t,e){} }); },1000); }, end:function(){ if(checkpayAuto!=null){ clearInterval(checkpayAuto); checkpayAuto = null; } },btn:false,closeBtn:false }); }else if(d.status=="0"){ userlogin() }else{ layer.msg(d.msginfo); } },error:function(x,t,e){ layer.closeAll('loading'); layer.msg("网络错误,请稍后重试"); beidiao_payment_create_click = true; } }); } function pbankpayShow(){ auto_confirm = layer.confirm('<div class="confirm_tip"></div><div class="layer_beidiao" style="color:green;"><span>注:请使用贵公司对公帐号向下方帐户转帐</span></div><div class="layer_beidiao"><span>开户行:农行 厦门东浦支行</span></div><div class="layer_beidiao"><span>户 名:厦门康强人才服务有限公司</span><span class="beidiao_copy" data="厦门康强人才服务有限公司">复制</span></div><div class="layer_beidiao"><span>账 号:4032 8101 0400 0244 7</span><span class="beidiao_copy" data="40328101040002447">复制</span></div>', { title:'', shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-btn").addClass("ly_btn"); layero.find(".layui-layer-btn0").addClass("confirm_btn_r"); layero.find(".layui-layer-btn1").addClass("confirm_btn_c"); layero.append('<div class="auto_tip_close"><span></span></div>'); }, cancel:function(index){ layer.close(index); }, btn: ['我已付款','换个方式'],closeBtn:false //按钮 }, function(index){ layer.close(index); kfShow(); }, function(index){ layer.close(index); }); } function kfShow(){ var tipHtml = '<div class="confirm_tip"><div class="confirm_tip_title">康强客服</div></div><div class="layer_beidiao"><span>姓名:肖天富</span></div><div class="layer_beidiao"><span>微信:KQRCW520</span><span class="beidiao_copy" data="KQRCW520">复制</span></div><div class="layer_beidiao"><span onclick="location.href=\'tel:18405045727\'">电话:18405045727</span></div><div class="layer_beidiao"><span class="beidiao_im_kf_chat" data="k-852"><img src="https://img.kq36.com.cn/im/img/chat_blue.gif">在线沟通</span></div>'; if(toutiaoMiniApp){ tipHtml = '<div class="confirm_tip"><div class="confirm_tip_title">康强客服</div></div><div class="layer_beidiao"><span>姓名:肖天富</span></div><div class="layer_beidiao"><span onclick="location.href=\'tel:18405045727\'">电话:18405045727</span></div><div class="layer_beidiao"><span class="beidiao_im_kf_chat" data="k-852"><img src="https://img.kq36.com.cn/im/img/chat_blue.gif">在线沟通</span></div>'; } auto_confirm = layer.confirm(tipHtml, { title:'', shadeClose:true, success:function (layero, index){ //layero.append('<div class="auto_tip_close"><span></span></div>'); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, cancel:function(index){ layer.close(index); }, btn: false,closeBtn:true //按钮 }, function(index){ layer.close(index); }, function(index){ layer.close(index); }); } function Tip15DayShow(){ var bd15day = getCookie("bd15day"); if(bd15day==null || bd15day==""){ var tipHtml = '<div class="confirm_tip"><div class="confirm_tip_title">调查员工</div></div><div style="color:#aaa"><div class="layer_beidiao"><span>查征信/诉讼/网贷/学历等</span></div><div class="layer_beidiao"><span>背调自己,面试更放心 </span></div><div class="layer_beidiao"><span>背调员工,用人更安全</span></div><div class="layer_beidiao"><span>批量背调,企业有保障</span></div></div>'; auto_confirm = layer.confirm(tipHtml, { title:'', shadeClose:true, success:function (layero, index){ layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': 'calc(50% - 13px)' }); }, cancel:function(index){ layer.close(index); }, btn: false,closeBtn:true //按钮 }, function(index){ layer.close(index); }, function(index){ layer.close(index); }); setCookie('bd15day',new Date(),15); }else{ console.log(bd15day); } } function payShow(){ paytype="wxpay"; packages = "150"; discount_price = "11"; var payHtml = ''; var LiHtml = ""; LiHtml += '<li class="selected" id="150" data="11">11点<i></i></li>'; LiHtml += '<li class="" id="152" data="29">29点<i></i></li>'; LiHtml += '<li class="" id="107" data="99">99点<i></i></li>'; LiHtml += '<li class="" id="108" data="199">199点<i></i></li>'; LiHtml += '<li class="" id="109" data="300">300点<i></i></li>'; LiHtml += '<li class="hide-1" id="" data="更多">更多...<i></i></li>'; LiHtml += '<li class="item-hide hide-1" id="1" data="750">750点<i></i></li>'; LiHtml += '<li class="item-hide hide-1" id="2" data="1000">1000点<i></i></li>'; LiHtml += '<li class="item-hide hide-1" id="3" data="1500">1500点<i></i></li>'; LiHtml += '<li class="item-hide hide-1" id="4" data="2000">2000点<i></i></li>'; LiHtml += '<li class="item-hide hide-1" id="5" data="2500">2500点<i></i></li>'; LiHtml += '<li class="item-hide hide-1" id="6" data="3000">3000点<i></i></li>'; LiHtml += '<li class="item-hide hide-1 hide-2" id="" data="更多">更多...<i></i></li>'; LiHtml += '<li class="item-hide hide-2" id="7" data="4000">4000点<i></i></li>'; LiHtml += '<li class="item-hide hide-2" id="8" data="5000">5000点<i></i></li>'; LiHtml += '<li class="item-hide hide-2" id="9" data="8000">8000点<i></i></li>'; LiHtml += '<li class="item-hide hide-2" id="10" data="10000">10000点<i></i></li>'; //LiHtml += '<li class="item-hide hide-2" id="11" data="20000">20000点<i></i></li>'; var pay_Html = '<div style="flex-flow:row wrap;"><div class="paytype-item selected" data="wxpay"><span class="title"><img src="https://img.kq36.com.cn/pay/wxpay_icon.png"><span>微信</span></span><span class="label"></span></div>'; if(WxApp || MiniAppWx){ }else{ pay_Html += '<div class="paytype-item" data="alipay"><span class="title"><img src="https://img.kq36.com.cn/pay/alipay_icon.png"><span>支付宝</span></span><span class="label"></span></div>'; } pay_Html += '<div class="paytype-item" data="pbankpay"><span class="title"><span>对公</span></span><span class="label"></span></div>'; pay_Html += '<div class="paytype-item" data="trpay"><span class="title"><span>找人代付</span></span><span class="label"></span></div></div>'; payHtml += '<div class="beidiao-payment-info-item">' + '<div class="title" style="color:#2e7ed3;">1点=1元</div>' + '<div class="package-item">' + '<ul>' + LiHtml + '</ul>' + '</div>' ; if(C_UserType=="c"){ payHtml += '<div class="beidaio-receive"><span class="receive-btn">免费送您300康强点<span class="iconfont">&#xe65f;</span></span></div>'; } //payHtml += '<div class="beidaio-package-info">可用于:<span class="font-right">置顶招聘</span><span class="font-right">悬赏招聘</span><span class="font-right">背景调查</span></div>'; payHtml += '<div class="beidaio-payment-menu"><span class="font-right">合同</span><span class="font-right">开发票</span><span class="font-right">康强客服</span><span class="beidiao_im_kf_chat wx-hide" data="k-137"><img src="https://img.kq36.com.cn/im/img/chat_blue.gif">在线沟通</span></div>'+ '<div class="title">支付方式</div>' + pay_Html + '</div>'; jQuery(".beidiao-payment-body").css({"background-color":"#f0f0f0"}); jQuery(".beidiao-payment-top").html('先充值后背调<span class="beidiao-payment-close"></span>'); jQuery(".beidiao-payment-create").addClass("pay").html('确认充值').show(); jQuery(".beidiao-payment-info").html(payHtml); jQuery(".beidiao-payment").show(); jQuery(".beidiao-payment-info").scrollTop(0); } function improve(c){ // //var usertype=GetSubCookie("usercookies","usertype") var jurl='https://3g.kq36.com/kq36/wxRegPer2_1.asp' var Noticestr="完善简历" if (c==true || c=='true'){ jurl='https://p.kq36.com/?Files=resume.asp' } if (C_UserType=='c') { var Noticestr="完善单位资料" jurl='https://3g.kq36.com/kq36/wxRegCo2_1.asp' if (c==true || c=='true'){ jurl='https://c.kq36.com/newadmin/company.asp' } } layer.alert("<div class='msginfo' style='text-align:center;font-size:16px'><p>请先"+Noticestr+",才能沟通</p><a href='javascript:;' onclick='layer.closeAll();' style='background: #0486C4;color: white;width: 40%;line-height: 30px; height: 30px;padding: 2px 5px;display: inline-block;border-radius: 5px;text-align: center;margin: 10px auto;text-decoration:none;font-size: 16px;' >"+Noticestr+"</a></div>",{ area:['325px','160px'], title:false,shadeClose: true,btn:false,time:6000, end:function(){ if(UniApp || UniAndApp){ uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(jurl)}); }else if(MiniAppWx){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(jurl)}); }else{ top.location.href = jurl; } },success:function(){ $(".layui-layer[type='dialog']").css('border-radius','10px') $(".layui-layer-setwin").css({'top':'auto','right':'auto','bottom':'-40px','left':'45%'}) }},function(){}); } jQuery(document).on("click", ".beidiao_copy", function(e) { var obj=jQuery(this); //jQuery(".layui-layer-close").trigger("click"); var TextStr = obj.attr("data"); beidiaoCopyText(TextStr,"复制成功",1,1000); e.preventDefault(); e.stopPropagation(); return false }); jQuery(document).on("click", ".beidaio-payment-menu>span", function(e) { var obj=jQuery(this); var objText = obj.text(); if(objText=="合同"){ if(C_UserType==""){ userlogin() }else{ if(C_UserType=="c"){ var url = "https://3g.kq36.com/kq36/Contract_Agreement.asp"; if(UniApp || UniAndApp){ uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(MiniAppWx){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(isPC){ url = "https://c.kq36.com/newadmin/jumpurl.asp?typen=moreinfo&turl=/about/Contract_Agreement.asp"; top.location.href = url; }else{ top.location.href = url; } }else{ layer.msg("请登入企业用户"); } } }else if(objText=="开发票"){ if(C_UserType==""){ userlogin() }else{ if(C_UserType=="c"){ var url = "https://3g.kq36.com/kq36/myfapiao.asp"; if(UniApp || UniAndApp){ uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(MiniAppWx){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(isPC){ var a = document.createElement('a'); a.setAttribute('href', url); a.setAttribute('target', '_blank'); a.setAttribute('id', 'openurl'); if(!document.getElementById('openurl')) document.body.appendChild(a); a.click(); }else{ top.location.href = url; } }else{ layer.msg("请登入企业用户"); } } }else if(objText=="康强客服"){ kfShow() } e.preventDefault(); e.stopPropagation(); return false }); jQuery(document).on("click", ".beidaio-package-info>span", function(e) { var obj=jQuery(this); var objText = obj.text(); if(objText=="置顶招聘" || objText=="悬赏招聘"){ if(C_UserType==""){ userlogin() }else{ if(C_UserType=="c"){ var url = "https://3g.kq36.com/kq36/myjobs.asp"; if(UniApp || UniAndApp){ uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(MiniAppWx){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(isPC){ url = "https://c.kq36.com/newadmin/job_list.asp"; top.location.href = url; }else{ top.location.href = url; } }else{ layer.msg("请登入企业用户"); } } }else{ jQuery(".beidiao-payment-close").trigger("click"); } e.preventDefault(); e.stopPropagation(); return false }); jQuery(document).on("click", ".beidiao_im_kf_chat", function(e) { var obj=jQuery(this); var chatid = obj.attr("data"); if(C_UserType==""){ userlogin() }else{ if(self == top){ jQuery("#WEBimIframe")[0].contentWindow.chat_(chatid,""); }else if(top.location.href.indexOf('c.kq36.com')>-1){ top.chat_(chatid,'') }else if(top.location.href.indexOf('p.kq36.com')>-1){ jQuery('#WEBimIframe', top.document)[0].contentWindow.chat_(chatid,'') var index = top.layer.getFrameIndex(window.name); top.layer.close(index); }else{ jQuery(".toolbar_back:visible",window.parent.document).not("back_out_1").trigger("click"); parent.chat_(chatid,'') //parent.layer.closeAll() } /* var url = "https://3g.kq36.com/kq36/msg.asp?appaccount="+chatid; if(UniApp || UniAndApp){ uni.navigateTo({url: '/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(MiniAppWx){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(url)}); }else if(top.location.href.indexOf('c.kq36.com')>-1){ top.chat_(chatid,'') }else if(top.location.href.indexOf('im.kq36.com')>-1){ top.location.href = url; }else{ parent.chat_(chatid,'') parent.layer.closeAll() } */ } e.preventDefault(); e.stopPropagation(); return false }); var mySwiper = null; jQuery(document).on("click", ".beidiao-body-menu>span", function(e) { var obj=jQuery(this); var objText = obj.text(); if(objText=="背调案例"){ var ShareHtml = ''+ '<div class="beidiao-case-info">' + ' <div class="title">为什么需要背景调查</div>' + ' <div class="info"><li>1、候选人简历作假,影响公司利益</li><li>2、背调及时发现问题,规避风险</li></div>' + ' <div class="title">真实案例</div>' + ' <div class="beidiao-case-body">' + ' <div class="swiper-container">' + ' <div class="swiper-wrapper">' + ' <div class="swiper-slide">' + ' <div class="swiper-slide-title">履历作假,法院判解除劳动合同合法</div>' + ' <div class="swiper-slide-info">王某于2013年11月1日入职某公司,担任人力资源总监。试用期内,公司发现王某简历作假,且在试用期不符合录用标准,予以解除劳动关系。后王某对公司提起上诉,上海市浦东新区人民法院判决:“解除与原告的劳动关系并未违法”。</div>' + ' </div>' + ' <div class="swiper-slide">' + ' <div class="swiper-slide-title">简历作假证据不足,辞退时仍需赔偿</div>' + ' <div class="swiper-slide-info">某公司员工周某,入职后一段时间,公司发现其简历作假,年龄与实际情况不符,对周某进行了辞退处理。周某对该公司提起了劳动仲裁,法院一审判决,该公司未提交充分证据,须赔偿劳动合同赔偿金6400元。该公司上诉至北京市第二中级人民法院,二审维持原判。</div>' + ' </div>' + ' <div class="swiper-slide">' + ' <div class="swiper-slide-title">简历作假,被辞退却向公司提起诉讼</div>' + ' <div class="swiper-slide-info">曲某2015年入职北京某公司,谎称自己毕业于大连理工大学。后来核实学历发现,大连理工出具的回执显示该校经查档确认无此人,公司以此为由,辞退曲某。后曲某不服,向法院提起上诉。北京市第一中级人民法院判决,辞退曲某符合劳动法。</div>' + ' </div>' + ' <div class="swiper-slide">' + ' <div class="swiper-slide-title">没有进行背景调查,竟成员工诉公司的理由</div>' + ' <div class="swiper-slide-info">盘某因伪造简历,被绵阳某公司辞退后,诉公司对自己的辞退,造成自己损失。二审时,盘某的律师指出,“公司方面在聘用前也应该进行背景调查,而非事后才知道上诉人简历”。</div>' + ' </div>' + ' </div>' + ' <div class="swiper-pagination"></div> ' + ' </div>' + ' </div>' + ' <div class="title">样例报告</div>' + ' <div class="info">样例报告是精简内容,且信息均为非真实信息,真实报告信息会更加具体</div>' + ' <div class="beidiao-Report-body">' + ' <div class="title"><span>个人信息</span></div>' + ' <div class="info"><span>李小雨</span><em></em><span>28岁</span><em></em><span>男</span></div>' + ' <div class="info"><span class="b">身份证号:</span><span>350**************7</span></div>' + ' <div class="info"><span class="b">籍贯:</span><span>福建省三明市将乐县</span></div>' + ' <div class="info"><span class="b">出生日期:</span><span>1994-09-26</span></div>' + ' <div class="title"><span>学历验证(最高)</span></div>' + ' <div class="info"><span class="b">毕业院校:</span><span>福建农林大学东方学院</span></div>' + ' <div class="info"><span class="b">学习时间:</span><span>2013年09月-2017年06月</span></div>' + ' <div class="info"><span>普通全日制</span><em></em><span>本科</span><em></em><span>物流管理</span></div>' + ' <div class="title"><span>风险信息</span></div>' + ' <div class="info"><span class="b">法院失信记录:</span><span>0条记录</span></div>' + ' <div class="info"><span class="b">负面社会安全记录:</span><span>0条记录</span></div>' + ' <div class="info"><span class="b">法院诉讼记录:</span><span style="color:red">1条记录</span></div>' + ' <div class="info"><span style="color:red">案号(20**)闽02**民初8**号</span></div>' + ' <div class="info"><span class="b">个人工商记录:</span><span style="color:red">2条记录</span></div>' + ' <div class="info" style="color:red"><span>萍乡市李小雨百货商行(在营)</span></div>' + ' <div class="info" style="color:red"><span>瑞昌市李小雨百货商行(在营)</span></div>' + ' <div class="info"><span class="b">网贷不良记录:</span><span>0条记录</span></div>' + ' <div class="title"><span>工作经历核实</span></div>' + ' <div class="info"><em class="work-em"></em><span class="work-title">证明人A</span></div>' + ' <div class="info"><span class="b">姓名:</span><span>张小姐</span></div>' + ' <div class="info"><span class="b">共事时长:</span><span>四个月</span></div>' + ' <div class="info"><span class="b">职位:</span><span>HR</span></div>' + ' <div class="info"><span class="b">联系方式:</span><span>05*******</span></div>' + ' <div class="info"><em class="work-em"></em><span class="work-title">工作履历核实</span></div>' + ' <div class="info"><span class="b">雇主名称:</span><span>厦门康强人才服务有限公司</span></div>' + ' <div class="info"><span class="b">候选人职位:</span><span>项目主管</span></div>' + ' <div class="info"><span class="b">薪资:</span><span>18000元/月</span></div>' + ' <div class="info"><span class="b">供职时间:</span><span>2023.04-2023.08</span></div>' + ' <div class="info"><span class="b">离职原因:</span><span>协商</span></div>' + ' <div class="info"><span class="b">是否存在违反公司规定或纪律的行为?</span><span>否</span></div>' + ' <div class="info"><span class="b">是否发生劳动争议或仲裁?</span><span>否</span></div>' + ' <div class="info"><span class="b">是否有签订培训协议?</span><span>否</span></div>' + ' <div class="info"><span class="b">是否签订竞业禁止协议?</span><span>否</span></div>' + ' <div class="info"><span class="b">是否愿意再次雇佣/共事?</span><span>是</span></div>' + ' <div class="title"><span>工作表现访谈</span></div>' + ' <div class="info"><em class="work-em"></em><span class="work-title">证明人B</span></div>' + ' <div class="info"><span class="b">姓名:</span><span>许总</span></div>' + ' <div class="info"><span class="b">共事时长:</span><span>四个月</span></div>' + ' <div class="info"><span class="b">职位:</span><span>项目经理</span></div>' + ' <div class="info"><span class="b">联系方式:</span><span>136****5588</span></div>' + ' <div class="info"><em class="work-em"></em><span class="work-title">工作表现鉴定</span></div>' + ' <div class="info"><span class="b">工作职责:</span><span>负责前期准备、协作等工作。</span></div>' + ' <div class="info"><span class="b">职业素养:</span><span>认真负责,富有自己的想法。</span></div>' + ' <div class="info"><span class="b">自我管理:</span><span>自我管理能力还不错。</span></div>' + ' <div class="info"><span class="b">工作业绩:</span><span>其工作没有出现问题。</span></div>' + ' <div class="info"><span class="b">性格特征:</span><span>与同事相处和谐、融洽。</span></div>' + ' <div class="info"><span class="b">团队合作:</span><span>其跨部门沟通、协作能力好。</span></div>' + ' <div class="info"><span class="b">抗压能力:</span><span>具备超强的抗压能力。</span></div>' + ' </div>' + '</div>'; jQuery(".beidiao-payment-body").css({"background-color":"#fff"}); jQuery(".beidiao-payment-top").html('背调案例<span class="beidiao-payment-close"></span>'); jQuery(".beidiao-payment-create").hide(); jQuery(".beidiao-payment-info").html(ShareHtml); jQuery(".beidiao-payment").show(); jQuery(".beidiao-payment-info").scrollTop(0); mySwiper = new Swiper('.swiper-container', { speed: 1000, pagination: '.swiper-pagination', paginationClickable: true, loop: true }) }else if(objText=="康强客服"){ kfShow() }else if(objText=="批量背调"){ jQuery(".beidiao-selected-btn").trigger("click"); }else if(objText=="合作伙伴"){ location.href = "https://3g.kq36.com/bd/beidiaopartner.asp"; } e.preventDefault(); e.stopPropagation(); return false }); jQuery(document).on("click", ".shareimgbtn", function(e) { //var obj=jQuery(this); //html2canvas(jQuery('.wxpay_qcrode')[0],{ // useCORS:true, // allowTaint:false, //}).then(function(canvas) { // var dataUrl = canvas.toDataURL('image/jpeg'); // jQuery('.wxpay_qcrode').html('<img src="'+dataUrl+'" style="width:200px;height:200px;">'); jQuery(".wxpaymsg").html('识别二维码支付'); jQuery("[data-html2canvas-ignore]").hide(); html2canvas(jQuery('#trpay')[0],{ useCORS:true, allowTaint:false, //ignoreElements:function(element){ // console.log("element:",element); //}, }).then(function(canvas) { jQuery(".wxpaymsg").html('微信扫一扫支付'); jQuery("[data-html2canvas-ignore]").show(); var dataUrl = canvas.toDataURL('image/jpeg'); uni.postMessage({data: {action: 'shareimg',sharetype:'0',imgurl:dataUrl}});//分享 }); //}); e.preventDefault(); e.stopPropagation(); return false }); function beidiaoCopyText(text,msgText,msgType,MsgTime) { isCopyText = true; if(msgText==""){msgText = "复制成功"} if(msgType==""){MsgTime = 0} if(MsgTime==""){MsgTime = 1000} var textarea = document.createElement("textarea");//创建input对象 textarea.style.fontSize = '12pt'; textarea.style.border = '0'; textarea.style.padding = '0'; textarea.style.margin = '0'; textarea.style.position = 'absolute'; textarea.style.left = '-9999px'; var yPosition = window.pageYOffset || document.documentElement.scrollTop; textarea.style.top = `${yPosition}px`; //var currentFocus = document.activeElement;//当前获得焦点的元素 document.body.appendChild(textarea);//添加元素 textarea.value = text.replace("&amp;","&"); textarea.focus(); if(textarea.setSelectionRange){ textarea.setSelectionRange(0, textarea.value.length);//获取光标起始位置到结束位置 }else{ textarea.select(); } try { var flag = document.execCommand("copy");//执行复制 } catch(eo) { var flag = false; msgText = "复制失败"; } document.body.removeChild(textarea);//删除元素 //currentFocus.focus(); layer.msg(msgText,{type:msgType,time: MsgTime}); setTimeout(function(){isCopyText = false;},300); return flag; } jQuery(document).on("click", "#weiShare", function(e) { var ShareHtml = ''+ '<div class="beidiao-Share-menu">' + ' <span class="beidiao-Share-item ShareweixinFriend">' + ' <div class="beidiao-Share-icon"></div>' + ' <div class="beidiao-Share-item">微信朋友圈</div>' + ' </span>' + ' <span class="beidiao-Share-item Shareweixin">' + ' <div class="beidiao-Share-icon"></div>' + ' <div class="beidiao-Share-item">微信好友</div>' + ' </span>' + ' <span class="beidiao-Share-item ShareQRCode">' + ' <div class="beidiao-Share-icon"></div>' + ' <div class="beidiao-Share-item">二维码</div>' + ' </span>' + ' <span class="beidiao-Share-item Sharecopy">' + ' <div class="beidiao-Share-icon"></div>' + ' <div class="beidiao-Share-item">标题/网址</div>' + ' </span>' + '</div>'; jQuery(".beidiao-payment-body").css({"background-color":"#f0f0f0"}); jQuery(".beidiao-payment-top").html('分享<span class="beidiao-payment-close"></span>'); jQuery(".beidiao-payment-create").hide(); jQuery(".beidiao-payment-info").html(ShareHtml); jQuery(".beidiao-payment").show(); jQuery(".beidiao-payment-info").scrollTop(0); e.preventDefault(); e.stopPropagation(); return false }); jQuery(document).on("click", ".beidiao-Share-item", function(e) { var obj = jQuery(this); if(obj.hasClass("Sharecopy")){ var TextStr = "康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历 https://3g.kq36.com/bd"; beidiaoCopyText(TextStr,"复制成功",1,1000); jQuery(".beidiao-payment").hide(); }else if(obj.hasClass("ShareQRCode")){ var tip_info = '<div class="QRCodeDiv"><img id="QRCodeLogo" style="width:320px;height:320px;" src="https://img.kq36.com.cn/im/img/beidiao/bd.png"></div>'; var auto_confirm = layer.confirm(tip_info, { title:'',type:1, shadeClose:true, success:function (layero, index){ var thisTop = ((parseInt(document.body.clientHeight) - parseInt(layero.height()))/2).toString() + "px"; var thisLeft = ((parseInt(document.body.clientWidth) - parseInt(layero.width()))/2).toString() + "px"; layero.css({"top":thisTop,"left":thisLeft}); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': '45%'}); layero.find(".layui-layer-btn").css({"display":"flex","justify-content":"center"}); layero.find(".layui-layer-btn0").css({"padding":"0 40px"}); layero.find(".layui-layer-btn1").css({"padding":"0 40px","border-color":"#1E9FFF","background-color":"#1E9FFF","color":"#fff"}); if(WxApp&&!isPC){ layero.find(".layui-layer-btn").html('<div style="text-align:center;font-size:18px;">长按图片可 分享 和 保存</div>'); }else if(baiduMiniApp){ layero.find(".layui-layer-btn").html(''); }else if(UniIosApp || UniAndApp){ if(UniIosApp && AppVersion>=8.1){ }else if(UniAndApp && AppVersion>=8.9){ }else{ layero.find(".layui-layer-btn").hide(); } } jQuery(".beidiao-payment").hide(); }, btn: ['下载','分享'], closeBtn:true }, function(index){ var baseobj = jQuery("#QRCodeLogo"); var base64 = baseobj.attr("src"); downloadIamge(base64,"bd.png"); //saveBase64ToLocal(base64,"bd.png") }, function(index){ jQuery(".layui-layer-btn0").trigger("click"); return false; }); /* var sid = ""; var postdata = { scene:'3g-bd/', } jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?cmd=QRCode&callback=?", type: "POST", data: postdata, dataType: "json", success: function(d) { if (d.code == "200") { var tip_info = '<div class="QRCodeDiv"><img id="QRCodeLogo" style="width:320px;height:320px;" src="data:image/jpeg;base64,' + d.qrcode + '"></div>'; var auto_confirm = layer.confirm(tip_info, { title:'',type:1, shadeClose:true, success:function (layero, index){ var thisTop = ((parseInt(document.body.clientHeight) - parseInt(layero.height()))/2).toString() + "px"; var thisLeft = ((parseInt(document.body.clientWidth) - parseInt(layero.width()))/2).toString() + "px"; layero.css({"top":thisTop,"left":thisLeft}); layero.find(".layui-layer-setwin").css({ 'top': 'auto', 'right': 'auto', 'bottom': '-40px', 'left': '45%'}); layero.find(".layui-layer-btn").css({"display":"flex","justify-content":"center"}); layero.find(".layui-layer-btn0").css({"padding":"0 40px"}); layero.find(".layui-layer-btn1").css({"padding":"0 40px","border-color":"#1E9FFF","background-color":"#1E9FFF","color":"#fff"}); if(WxApp&&!isPC){ layero.find(".layui-layer-btn").html('<div style="text-align:center;font-size:18px;">长按图片可 分享 和 保存</div>'); }else if(baiduMiniApp){ layero.find(".layui-layer-btn").html(''); }else if(UniIosApp || UniAndApp){ if(UniIosApp && AppVersion>=8.1){ }else if(UniAndApp && AppVersion>=8.9){ }else{ layero.find(".layui-layer-btn").hide(); } } jQuery(".beidiao-payment").hide(); }, btn: ['下载','分享'], closeBtn:true }, function(index){ var baseobj = jQuery("#QRCodeLogo"); var base64 = baseobj.attr("src"); saveBase64ToLocal(base64,"bd.png") }, function(index){ jQuery(".layui-layer-btn0").trigger("click"); return false; }); }else{ console.log("Load_Share_Logo:Err", d); } } }); */ }else{ if(WxApp||MiniAppWx||AlipayMiniApp||QQMiniApp||toutiaoMiniApp||baiduMiniApp){ jQuery(".beidiao-payment").hide(); jQuery(".ShareDiv").show(); setTimeout(function(){jQuery(".ShareDiv").hide()},2000); }else{ var tip_info = '<div class="accusation_auto_tip pay_qcrode_tip wxpay">'+ ' <div style="text-align:center;">分享到-微信</div>'+ ' <div class="wxpay_info">'+ ' <div style="display: flex;justify-content: center;margin-top: 10px;"><div class="wxpay_qcrode"></div></div>'+ ' <div class="wxpaymsg" style="margin-top:10px">微信扫一扫</div>'+ ' <div class="wxpaymsg" style="margin-top:10px"><a href="https://app.kq36.com/" style="color:#285682;" target="_blank"><u>康强APP</u></a>、微信浏览器可直接分享</div>'+ ' </div>'+ '</div>'; auto_confirm = layer.confirm(tip_info, { title:'', id:'trpay', time:0, shadeClose:true, success:function (layero, index){ layero.append('<div class="auto_tip_close"><span></span></div>'); jQuery('.wxpay_qcrode').qrcode({ text:'https://3g.kq36.com/bd', //设置二维码内容 render:"canvas",//设置渲染方式 width:200, //设置宽度 height:200, //设置高度 typeNumber:-1, //计算模式 correctLevel:0,//纠错等级 background:"#ffffff",//背景颜色 foreground:"#000" //前景颜色 }); var thisTop = ((parseInt(document.body.clientHeight) - parseInt(layero.height()))/2).toString() + "px"; var thisLeft = ((parseInt(document.body.clientWidth) - parseInt(layero.width()))/2).toString() + "px"; layero.css({"border-radius":"10px","top":thisTop,"left":thisLeft}); jQuery(".beidiao-payment").hide(); }, end:function(){ },btn:false,closeBtn:false }); } } e.preventDefault(); e.stopPropagation(); return false }); function chatList(a,b){} </script> <iframe style="position: fixed; right: 0px; bottom: 0px; z-index: 999999998;background:white;" src="" id="WEBimIframe" scrolling="no" name="webim" width="0" height="0" frameborder="0"></iframe> <script> if(opencase=="1"){ jQuery(".beidiao-body-menu>span:eq(0)").trigger("click"); } </script> <script> function goaction(actionname){ if (actionname=='shareresume'){ shareresume() } } function shareresume(){ uni.postMessage({ data: { action:'share', btns:[{"title":document.title,"url":"https://3g.kq36.com/bd","mini_url":"pagesub/pages/home/webtip/webtip?url=https://3g.kq36.com/bd"}] } }); } function WxSharePost(){ var titleShow = "1"; var share_title = "康强医疗人才网,背景调查员工,最低11元,查诉讼,查失信人,查工商,查省份,查学历"; var share_url = "https://3g.kq36.com/bd"; if(titleShow=="1"){ document.title = share_title; } if(MiniAppWx){ uni.postMessage({ data: { action: "share", title: share_title, url: share_url } }); }else if(UniIosApp || UniAndApp){ document.addEventListener('UniAppJSBridgeReady', function () { uni.postMessage({ data: { action:'btntitle', btns:[{"title":"分享","actionname":"shareresume"}] } }); }) } } var _hmt = _hmt || []; (function() { if(getQuery("cmd")=="mybd"){ jQuery(".my-beidiao-btn").trigger("click"); }else if(getQuery("cmd")=="batch"){ jQuery(".beidiao-selected-btn").find(".title").html("批量背调员工"); jQuery(".beidiao-flie").css({"display":"flex"}); jQuery(".beidiao-create").addClass("batch").html("批量背景调查").attr("data","0"); } if(wx_share_id!=""&&openShare){ if(MiniAppWx){ //jQuery(".my-beidiao-btn").trigger("click"); layer.load(1,{time:5*1000}); postdata = "cmd=bdlist&bdtype=9&lastid="+wx_share_id; jQuery.ajax({ url: "https://imapi.kq36.com/im/config.aspx?callback=?", type: "POST", data: postdata,timeout: 5000, dataType: "json", success: function(d) { console.log("bdlist:",d); if (d.code == "200") { var o = d.list[0]; var fileName = o.iName+'_背调报告·康强医疗人才网'; if(o.finalVersion=="0"){ fileName += '_阶段性报告'; }else{ fileName += '_终版报告'; } if(o.finalReportResSel=="1"){ fileName += '_属实'; }else if(o.finalReportResSel=="2"){ fileName += '_较严重问题'; }else if(o.finalReportResSel=="3"){ fileName += '_部分差异'; }else if(o.finalReportResSel=="10"){ fileName += '_略微差异'; } fileName += '_'+o.srcOrderNo + '.pdf'; var fileUrl = 'https://img.kq36.com.cn/bd/'+o.srcOrderNo+'/'+fileName; uni.navigateTo({ url: '/pagesub/pages/home/webtip/gotip?typen=sharefile_btn&btnname='+encodeURIComponent('分享报告')+'&name='+encodeURIComponent(fileName.replace('.pdf',''))+'&url='+encodeURIComponent(fileUrl) }); /* if(Ios){ uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(Android){ uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } */ }else if(d.code == "90000" || d.code == "90001"){ userlogin() }else{ layer.msg(d.msg); } layer.closeAll('loading'); },error:function(x,t,e){ layer.closeAll('loading'); } }); /* if(Ios){ var fileUrl = 'https://im.kq36.com/pdf/'+file_Name; uni.navigateTo({url: '/pagesub/pages/home/webtip/webtip?url='+encodeURIComponent(fileUrl)}); }else if(Android || isPC){ if (AlipayMiniApp || QQMiniApp || toutiaoMiniApp || baiduMiniApp){ var fileUrl = 'https://img.kq36.com.cn/beidiao/'+encodeURIComponent(file_Url)+'/pdf/down/'+file_Name; }else{ var fileUrl = 'https://im.kq36.com/m/pdfshow.pdf?fileName='+fileName+'&fileUrl=' + encodeURIComponent(d.data); } uni.navigateTo({url: '/pagesub/pages/home/webtip/gotip?typen=openDocument&fileName='+encodeURIComponent(fileName)+'&url='+encodeURIComponent(fileUrl)}); } */ } } WxSharePost(); if(payopen=="t"){ payShow(); } Tip15DayShow(); var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?a2f6ee5c5c2efc17b10dc0659462df30"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>