CINXE.COM

idp-国际教育专家,雅思主办方之一 - 客服咨询

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="renderer" content="webkit|ie-stand|ie-comp"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta itemprop="name" content="idp-国际教育专家,雅思主办方之一" /> <!-- <title>idp-国际教育专家,雅思主办方之一 - 客服咨询</title> --> <title>idp-国际教育专家,雅思主办方之一-在线咨询</title> <meta name="description" content="53KF客服系统作为行业领先品牌。入口全渠道覆盖,界面外观高度自定义,客服全链路工作平台。智能机器人辅助接待,全维度数据分析报表,帮助企业提高销售额、提升留存率、减少人工成本。" /> <meta name="keywords" content="客服系统、在线客服、在线客服系统、智能客服机器人、网站客服系统、免费在线客服系统、网页聊天、在线客服工具、企业级客服软件、微信客服、快手抖音客服系统" /> <!--引入头部文件--> <script> var company_id = "72203883";//公司id var obj_id = 0; // 客服ID var myid = "-1"; // 访客id var style = "1"; var style_id = "106276777"; var guest_id = "8509722910010";//备用访客编号 var server_guest_id = "8509722910010";//服务器端生成的访客编号 var http_pro = (document.location.protocol == 'https:')?'https://':'http://';//区分HTTP和HTTPS var host = "www10.53kf.com"; var language = "cn"; var remote_port = "39220"; //获取用户机器上连接到 Web 服务器所使用的端口号 </script> <span id="plugin_snapshot" style="display: none;"></span> <!--客户自定义icon--> <!--引入CSS--> <link rel="stylesheet" type="text/css" href="/js/swiper/swiper.min.css"> <link rel="stylesheet" href="/walnutui/css/walnutui.css?2020032501"> <link rel="stylesheet" href="/walnutui/font/font_kfxt/iconfont.css?2020060201"> <link rel="stylesheet" href="style/chat/new2017/css/index.css?202409031708"> <!-- 别删这段注释=====================start===================== --> <!--[if IE 8]> <style> .newWindow { border:1px solid #ccc; } </style> <![endif]--> <!-- 别删这段注释=====================end===================== --> <style> /* 消息展示区域高度判断 19.2.4 无回呼接默认159px,回呼30px */ .talk .pc-visitor-main { padding-bottom: 159px; } .talk.hasCallBack .pc-visitor-main { padding-bottom: 189px; } .talk.hasScene .pc-visitor-main {padding-bottom: 40px;} .loading_box{ width: 50px; height: 47px; position: relative; } .message_loading { width: 6px; height: 6px; border-radius: 50%; position: absolute; animation: loader 0.5s linear alternate infinite; top: -25px; left: 15px; } @keyframes loader { 0% { box-shadow: -14px 40px 0 2px #8DA2B5, 0 40px 0 0 #8DA2B5, 14px 40px 0 0 #8DA2B5; } 50% { box-shadow: -14px 40px 0 0 #8DA2B5, 0 40px 0 2px #8DA2B5, 14px 40px 0 0 #8DA2B5; } 100% { box-shadow: -14px 40px 0 0 #8DA2B5, 0 40px 0 0 #8DA2B5, 14px 40px 0 2px #8DA2B5; } } /* 互动菜单预览 */ #scroll_menu_box_by53kf{width:100%; height:30px;position: absolute; top: -32px; z-index: 0;display: none; } .menu_open{position: absolute; top: 0;background: #FFF; left: 0; height: 32px; width: 24px; z-index: 99; display: none; font-size: 18px;line-height: 38px;border-radius:0 4px 4px 0; border:1px solid #D8DFEA; cursor: pointer;color:#62778C; } .menu_open .open_btn_line{float: left; width: 2px; height: 24px; background: #CED5E0; margin-right: 4px; } .scroll_body{width:100%; height:30px; padding-right: 17px;} #scroll_menu{width: 100%; height: 32px;padding: 4px 10px 0 6px; overflow: hidden; background:#FFFFFF; position: relative; margin: 0 !important; cursor: move; position: relative; } #scroll_menu.btn_left{padding: 3px 6px 0 44px; } #scroll_menu_box_by53kf .menu_btn{cursor: pointer;font-size: 12px; color: #62778C; padding: 0 8px; line-height: 22px;height: 24px; border-radius:15px; border:1px solid #CED5E0; text-align: center; display: inline-block; width: auto;margin: 0 4px; background: #FFF; } #scroll_menu_box_by53kf .menu_btn:hover {background: #3B99FC; border-color: #3B99FC; color: #fff;} #scroll_menu_box_by53kf .menu_btn:active{background: #3489E2; border-color:#3B99FC; color: #fff; } #scroll_menu_box_by53kf .menu_close{display: none !important; height: 100%; width: 48px; background: #FFF; position: absolute; top: 0; right: 0; padding-top: 4px; z-index: 100; text-align: center; cursor: pointer;} #scroll_menu_box_by53kf .menu_up{height: 100%; width: 48px; background: #FFFFFF; position: absolute; top: 0; left: 0; padding-top: 3px; z-index: 100; text-align: center; cursor: pointer; display: none;} #scroll_menu_box_by53kf .menu_close .menu_btn{width: 32px; } #scroll_menu_box_by53kf .menu_up .menu_btn{width: 32px; } .iconfont.icon-Mobilephonemodel-new:after{content:' ▼';font-size: 8px; margin-right: 2px;vertical-align: 1px; } .menu_lv2{display: none;} .iconfont.icon-Close-new:before{font-size: 12px; line-height: 18px; } .iconfont.icon-xiangqian-new:before{font-size: 12px; line-height: 18px; } /* 访客表单 */ .phone_visitor_form{margin: 16px auto;border:1px solid #CED5E0;border-radius: 4px;width: 320px;padding: 12px;} .phone_visitor_form .visitor_form_title{width: 100%;height:20px;text-align: center;font-size:14px;line-height: 20px; overflow: hidden;text-overflow: ellipsis; white-space: nowrap;margin-bottom: 12px} .phone_visitor_form .visitor_form_ques{width: 100%;margin-bottom: 12px} .phone_visitor_form .visitor_form_ques input{width: 100%;border:1px solid #CED5E0;border-radius: 2px;height: 30px;padding-left: 5px} .phone_visitor_form .visitor_form_ques .tip_error{font-size: 12px;text-align: left;width: 100%;height: 18px;line-height: 18px;color: #F44024;margin-top: 4px;display: none} .phone_visitor_form .visitor_form_ques.single_choose{position: relative;} .phone_visitor_form .visitor_form_ques.single_choose .slide_down_btn{position:absolute;width: 16px;height: 16px;top: 12px;right: 5px} .phone_visitor_form .visitor_form_ques.single_choose .slide_down_btn:after{content: '';height: 0;width: 0;position: absolute;right: 5px;top: 50%;border: 4px solid transparent;border-top: 5px solid #466080;border-bottom: none;margin-top: -2px;} .phone_visitor_form .visitor_form_submit{width: 100%;border-radius: 2px;height: 30px;text-align: center;color: #fff;background: #218BFC;font-size: 14px;line-height: 30px} .phone_visitor_form .visitor_form_submit:active{background: #3489E2} /* 解决互动菜单兼容问题 */ .input-bar{position: relative; } .popup{z-index: 1; position: relative; } /* 电话回呼样式 */ .window-content .hasCallBack .net_callBack{ top: 8px; right: 0px; left: auto; width: auto; border:0 none; background: inherit; } .hasCallBack .net_callBack .net_callBack_wrap{ background: inherit; width: 200px !important; } .talk.hasCallBack .pc-visitor-main { padding-bottom: 159px !important; } .net_callBack_input{ width: 200px !important; } .net_callBack_btn{ padding: 0 5px; width: 70px !important; } /* 存在互动菜单时,增加内容区域底部padding 20200429*/ .talk.hasMenuLoop .pc_talk_content{ padding-bottom: 30px !important; } /** * 2021.01.06 * 欢迎语过滤快速提问 */ .check_welcomeServlets{ color:#218bfc; cursor:pointer; display: inline-block; margin-top: 8px; } .check_welcomeServlets:hover{ color: #4DA2FD !important; } /** * 2021.03.30 * 问题+选项 */ .check_outside_row{ color:#218bfc; cursor:pointer; display: block; margin-top: 8px; } .check_welcomeServlets:hover,.check_outside_row:hover{ color: #4DA2FD; } /** * 2022.04.26 * 消息+列表 */ .form_list_box { text-align: left; font-size: 14px; margin-top: 15px; color: #218bfc; /* padding: 0 8px; */ background-color: #eff3f6; } .form_list_input { cursor: pointer; padding-bottom: 8px; } /** * 2022.04.26 * 消息+列表 */ .form_box { clear: both; text-align: center; font-size: 12px; background: linear-gradient(180deg, #007BFF 0%, rgba(33, 139, 252, 0.9) 21%, #E7F2FF 51%, #EEF6FF 100%); border-radius: 4px; width: 296px; margin: auto; padding: 4px 4px 0 4px; margin-bottom: 15px; } .form_box .form_box_bg { background: #EEF6FF; border-radius: 2px 2px 0 0; display: flex; } .form_box .form_box_bg .form_box_textbox { text-align: left; max-width: 51px; display: inline-block; margin-left: 12px; margin-right: 8px; margin-top: 16px; } .form_box .form_box_bg .form_box_textbox .form_input_text { font-size: 12px; color: #28334B; display: flex; height: 32px; margin-bottom: 8px; align-items: center; } .form_box .form_box_bg .form_box_inputbox { display: inline-block; margin-top: 16px; margin-right: 12px; width: 100%; flex: 1; } .form_box .form_box_bg .form_box_inputbox .form_input_input { margin-bottom: 8px; } .form_box .form_preview_btn_box { background: #EEF6FF; border-radius: 0 0 2px 2px; padding: 8px 12px 16px 12px; } .form_box .form_preview_btn_box .form_preview_btn { width: 100%; padding-top: 6px; padding-bottom: 6px; height: 32px; line-height: 20px; font-size: 14px; } .form_box .form_box_bg .form_box_inputbox .form_input_input input { width: 100%; height: 32px; background: #FFFFFF; border-radius: 2px; } /** * 2021.01.26 * 评分新增留言板 */ .evaluation{ height: auto !important; background: #FFF; } .evaluation .ly_content_box{ height: 71px; padding: 0 16px; padding-bottom: 16px; display: none; } .evaluation .ly_content_box textarea{ resize:none; width: 100%; height: 100%; border: 1px solid #CED5E0; padding: 5px; } .evaluation .ly_content_box textarea:focus{ outline: medium; } .evaluation ul li:last-child{ margin-right: 0; } .customer-lists>p{ font-size: 12px; } .pc-visitor .leave-message { height: auto; } /** * 新窗口客服卡片信息溢出滚动 * 2021.08.06 */ .kf-info>div>span { white-space: nowrap; } /** * 2021.12.21 * 开通预览页添加引导点击按钮 */ .fu_fx{width: 20px; height: 20px; position: absolute; top: -40px; left: 96px; z-index: 101;pointer-events: none; } .fx{position: absolute; right: 70px; top: 40px; } .fx .dot {align-items: center; background-color: #79B9FD; border: 1px solid #79B9FD; border-radius: 50%; box-shadow: 0 1px 10px 0 rgba(0,0,0,.15); cursor: pointer; display: flex; justify-content: center; position: absolute; transition: border 200ms,background-color 200ms,height 200ms,width 200ms; width: 20px; height: 20px; opacity: 0.9; } .fx .dot-center {background-color: #218BFC; border-radius: 50%; height: 0px; width: 0px; } .fx .dot-pulse::before,.fx .dot-pulse::after {background: transparent; border: solid 1px #218BFC; border-radius: 50%; content: ""; height: 100%; left: -1px; position: absolute; top: -1px; transform-origin: center center; width: 100%; } .fx .dot-pulse::before {animation: ripple 1.4s infinite; } .fx .dot-pulse::after {animation: ripple 1.4s infinite; animation-delay: .8s; } @keyframes ripple {0% {opacity: .75; transform: scale(1) } 100% {opacity: 0; transform: scale(2) } } #scroll_menu_box_by53kf #scroll_menu{cursor: default} /** * 2022.1.10 * 用户信息保护协议 */ .user-informations-box{min-height: 72px; background: #e8f3fe; border: 1px solid #d1e7fd; border-radius: 2px; position: absolute; padding: 8px; bottom: 8px; left: 8px; right: 8px; z-index: 999999;margin-bottom: 159px; display: none; } .user-informations-box .user-informations-box-content{padding-bottom: 38px; } .user-informations-box .user-informations-box-content .user-informations-box-content-title{ font-size: 12px; font-weight: 400; color: #28334B; line-height: 18px;} .user-informations-box .user-informations-box-content .info-item-box{overflow: hidden; } .user-informations-box .user-informations-box-content .info-item-box>div{float: left; } .user-informations-box .user-informations-box-content .info-item-box .info-item{line-height: 18px; font-size: 12px; } .user-informations-box .user-informations-box-content .info-item-box .info-item>div{float: left; } .user-informations-box .user-informations-box-content .info-item-box .info-item .info-item-title{cursor: pointer; color: #218BFC; } .user-informations-box-close{font-size: 20px; position: absolute; width: 15px; height: 20px; top: 0; right: 0px; cursor: pointer; color: #869AB3; text-align: center; line-height: 10px; z-index: 99; } .user-informations-box-close:hover{color: #6d7c8f; } .user-informations-box-btn{position: absolute; height: 28px; box-sizing: border-box; font-size: 12px; position: absolute; right: 8px; left: 8px; bottom: 8px; text-align: center; line-height: 26px; background: rgb(59, 153, 252); color: rgb(255, 255, 255); border: 1px solid rgb(59, 153, 252); cursor: pointer; border-radius: 2px; } .user-informations-box-btn:hover{background: #53A5FC; border-color: #53A5FC; } .user-informations-box-btn:active{background: #358AE6; border-color: #358AE6; } /* 用户信息保护弹层 */ .user-informations-popup{position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999999; display: none; } .user-informations-masking{position: absolute; top: 0; left: 0; bottom: 0; right: 0; background: #0F0100; opacity: 0.7; z-index: 1; } .user-informations-modal{position: absolute; left: 8px; right: 8px; top: 32px; bottom: 32px; z-index: 2; display: flex; justify-content: center; align-items: center; } .user-informations-modal-box{width: 100%; height: 100%; max-width: 480px; max-height: 540px; background: #FFFFFF; border-radius: 2px; border: 1px solid #D8DFEA; position: relative; } .user-informations-modal-box-head{width: 100%; border-bottom: 1px solid #D8DFEA; text-align: center; line-height: 40px; height: 40px; font-size: 14px; } .user-informations-modal-box-body{position: absolute; top: 41px; left: 0; bottom: 0; right: 0; padding: 8px; overflow-y: auto; overflow-x: hidden; } .user-informations-modal-box-body-weburl{width: 100%; height: 100%; position: absolute; top: 0; bottom: 0; right: 0; } .user-informations-modal-box-close{width: 32px; height: 40px; position: absolute; font-size: 24px; text-align: center; line-height: 30px; cursor: pointer; z-index: 99; top: 0; right: 0; color: #869AB3; } /** * 2022.01.13 * 欢迎语按钮 hlm */ .btn_welcomeServlets{margin: 8px 8px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; } .blue_btn{display: inline-block; height: 28px; line-height: 26px; border:1px solid #3B99FC; border-radius: 2px; color: #FFF; background: #3B99FC; padding:0 10px; text-align: center; cursor: pointer; } .blue_btn:hover{background: #4EA3FC; border-color: #4EA3FC;} .blue_btn:active{background: #3489E2; border-color: #3489E2;} /** * 2022.02.23 * 活动公告P标签处理 hlm */ .guanggao-area p:nth-child(1) { min-height: auto; } .guanggao-area p:nth-last-child(1) { min-height: auto; } .guanggao-area p { min-height: 18px; } .guanggao-area video{ max-width: 100%; } /* 2022.08.30 关于该账号 */ .about_accout{ position: relative; display: none; } .about_accout .about_accout_title{ color: #8DA2B5; } .about_accout .about_accout_title:hover{ cursor: pointer; color: #218BFC; } .about_accout .about_accout_title.active{ color: #218BFC; } .about_accout .about_box{ display: none; position: absolute; left: -78px; bottom: 20px; width: 216px; padding: 8px; background: #FFFFFF; box-shadow: 0px 9px 28px 8px rgba(0,0,0,0.05), 0px 6px 16px 0px rgba(0,0,0,0.08), 0px 3px 6px -4px rgba(0,0,0,0.12); border-radius: 4px; z-index: 99999; } .about_accout .about_box .about_box_close{ position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; cursor: pointer; } .about_accout .about_box .about_box_head{ display: flex; } .about_accout .about_box .about_box_head .accout_type{ margin-right: 16px; color: #8DA2B5; } .about_accout .about_box .about_box_head .accout_ip{ display: flex; } .about_accout .about_box .about_box_head .accout_ip .accout_ip_tips{ position: relative; } .about_accout .about_box .about_box_head .accout_ip .accout_ip_tips:hover .accout_icon_tips{ display: block; } .about_accout .about_box .about_box_head .accout_ip svg{margin-left: 2px; display: inline-block;width: 19px;height: 18px;cursor: pointer;} .about_accout .about_box .about_box_head .accout_ip .accout_icon_tips{ display: none;padding: 2px 4px;width: 122px;height: 22px;background: #39414D;border-radius: 2px;opacity: 0.9;color: #fff;position: absolute;left: -60px;bottom: 22px } .about_accout .about_box .accout_name,.about_accout .about_box .accout_code{ margin-top: 8px;text-align: left; } .about_accout .about_box .accout_name p,.about_accout .about_box .accout_code p{ margin-bottom: 4px } .about_accout .about_box .accout_name div,.about_accout .about_box .accout_code div{ color: #62778C; } .about_accout .about_box .complaint_box{text-align: left; margin-top: 8px;} .about_accout .about_box .complaint_box .complaint{text-decoration: underline !important;color: #218BFC !important;cursor: pointer;} /* 2022.11.18 机器人其他消息类型 */ .robot-card-list{ max-height: 320px;overflow-y: auto; } .robot-card-list .robot-card-list-item{ background: #FFFFFF;border-radius: 4px;padding: 4px;display: flex;align-items: center;margin-top: 8px;width: 290px; } .robot-card-list .robot-card-list-item img{ display: block;border-radius: 2px;width: 72px;height: 72px;margin: 0; } .robot-card-list .robot-card-list-item .robot-card-list-item-right{ margin-left: 8px;width:calc(100% - 80px);min-height: 72px } .robot-card-list-item-right .rcli-right-title{ line-height:22px;font-size: 14px;font-weight:bold;color: #000000; } .robot-card-list-item-right .rcli-right-explain{ font-size: 12px;height: 20px;line-height: 20px;color: rgba(0,0,0,0.6);overflow-x: hidden;text-overflow: ellipsis;white-space: nowrap; } .robot-card-list-item-right .rcli-right-bottom{ height: 22px;display: flex;justify-content: space-between;align-items: center;line-height: 22px;margin-top: 6px; } .robot-card-list-item-right .rcli-right-bottom .rcli-right-bottom-norms{ font-size: 12px;color: rgba(0,0,0,0.6); } .robot-card-list-item-right .rcli-right-bottom .rcli-right-bottom-price{ font-size: 14px; color: #FAAD14; } .robot-table-title{ padding: 8px;font-size: 14px;font-weight: bold;color: #000000;line-height: 22px;border-bottom: 1px solid #EBEBEB; } .robot-table-content{padding: 12px 8px;} .robot-table-content .robot-table-content-item{ font-size: 14px; line-height: 22px;margin-bottom: 8px; } .robot-table-content .robot-table-content-item:last-child{margin-bottom: 0;} .robot-drawer-box{ width: 100%; height: 100%; position: absolute; left: 0; bottom: 0; z-index: 99999; font-size: 12px;} .robot-drawer-box .robot-drawer-bg{ width: 100%; height: 100%; position: absolute; left: 0; top: 0; background: rgba(0, 0, 0, 0.5); } .robot-drawer-drawer{ width: 100%; position: absolute; bottom: 0; background: #ffffff; border-radius: 4px 4px 0px 0px; } .robot-drawer-drawer .robot-drawer-header{ width: 100%; height: 32px; padding: 0 8px; display: flex; justify-content: space-between; align-items: center; box-shadow: inset 0px -1px 0px 0px #EBEBEB; } .robot-drawer-drawer .robot-drawer-header .robot-drawer-title{ font-size: 12px; line-height: 20px; } .robot-drawer-drawer .robot-drawer-header .robot-drawer-close{ font-size: 24px; width: 24px; height: 24px; line-height: 22px; text-align: center; cursor: pointer;} .robot-drawer-drawer .robot-card-list-item.drawer-item{ width: 100%; border-bottom: 1px solid #EBEBEB; margin-top: 0; padding: 8px 0; } /* 2022.02.03 网页回呼短信验证 */ .net_callback_phone_box{ display:none;position: absolute;bottom: 40px;width: 210px;padding: 10px 15px;background: #FFFFFF;box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.25);border-radius: 4px;border: 1px solid #D8DFEA; } .net_callback_phone_box .net_callback_phone_box_title{ color: #1F2532; font-size: 14px; line-height: 20px;margin-bottom: 10px; } .net_callback_phone_box .net_callback_phone_box_content{ display: flex; justify-content: space-between; } .net_callback_phone_box .net_callback_phone_box_content.phone_num input{ width: 100%; padding: 0 5px; } .net_callback_phone_box .net_callback_phone_box_content.phone_code{ margin-top: 5px; } .send_verification_code{ width: 80px;color:#1F2532;border-radius: 2px; border: 1px solid #D3D9E0; height: 28px;line-height: 26px;text-align: center; cursor: pointer; } .net_callback_phone_box input{ border-radius: 2px; border: 1px solid #D3D9E0; height: 28px; padding: 0 5px; } .net_callback_phone_box .net_callback_phone_box_callbtn{ background: #218BFC;color: #ffffff;border-radius: 2px;margin-top: 10px; height: 28px;line-height: 28px;text-align: center;cursor: pointer; } .call_phone_box.code_mode{ width: 210px !important;padding:10px !important; height: 150px !important; } .call_phone_box.code_mode .call_phone_box_title{ height: 20px; line-height: 20px; font-size: 14px;margin-bottom: 10px; } .call_phone_box.code_mode .call_phone_input{ width: 100% !important; float: none !important;border: 1px solid #D8DFEA !important;height: 28px !important;line-height: 28px !important; } .call_phone_box .code_box{ margin-top: 5px; height: 28px;display: flex;justify-content: space-between;margin-bottom: 10px; } .call_phone_box .code_box .code_input{ border: 1px solid #D8DFEA !important; width: 92px !important;height: 28px !important; } .call_phone_box .code_box .send_phone_code{ width: 83px; height: 28px;line-height: 28px; border-radius: 2px; border: 1px solid #D8DFEA;text-align: center; } .call_phone_box.code_mode .call_phone_btn{ height: 28px !important;line-height: 28px !important;width: 100% !important; font-size: 12px !important; } /* 2024.05.27 查看更多聊天记录 */ .tips_up_lastmsg{ width:100%;margin-bottom: 10px;text-align: center; } .tips_up_lastmsg label{ display: block;padding: 5px;font-size: 12px;color:#62778C } </style> <script> //前端异常监控(语法、运行、异步错误) var error_arr = []; window.onerror = function (msg, url, row, col, error) { console.log('前端错误报错',{ msg, url, row, col }) if(msg.indexOf('Swiper')==-1&&msg.indexOf('play()')==-1){ error_arr.push({ msg, url, row, col }) } return true; }; setTimeout(function(){ if(error_arr.length>0){ var err_str = ''; for(var i=0; i<error_arr.length;i++){ if(i==0){ err_str+='msg='+error_arr[i].msg+'url='+error_arr[i].url+'row='+error_arr[i].row+'col='+error_arr[i].col; }else{ err_str+='msg'+i+'='+error_arr[i].msg } } $.get("wnn_debug.php",{"type":"html_js_error","error_info":err_str}); } },2500) </script> </head> <body onunload="window_unload();"> <div class="img_bgmask"><span class="close_bgmask"></span><div class="view_img_wrap"><img src="https://www10.53kf.com/img/upload/10203883/mobile/temp/mobile_53kf_1559811692.png" alt=""></div></div> <div class="newWindow auto_size"> <div class="window-header" style="background:rgb(31, 140, 235)"> <img src="https://www10.53kf.com/img/upload/10203883/mobile/temp/mobile_53kf_1559811692.png" height="40px" style="max-width:120px;margin-right:10px;float:left;margin-top:4px;border-radius:2px;" alt="头像"> <p class="company-name font16">idp-国际教育专家,雅思主办方之一</p> <p class="autograph font12" title="为您提供专业的、个性的留学评估方案!">为您提供专业的、个性的留学评估方案!</p> </div> <div class="window-content"> <div class="content-left"> <div class="connectionFail font12 color-red" style="display: hidden"></div> <div class="toasts"><div><span class="toastsText font14">异常</span></div></div> <div id="pcWrap"> <div class="pc-visitor" style="display:block;height:100%;overflow:auto;"> <!-- 留言成功 --> <div class="leaveMsg-suc color-grey-deep font13"> <div class="leaveBg"></div> <div class="suc-text"> <p>已收到了您的留言</p><!-- 已收到了您的留言 --> <p>我们会在第一时间内给予您回复!</p><!-- 我们会在第一时间内给予您回复 --> </div> <div class="close-suc font12"> <span class="close-suc-btn buttonType2 color-grey-middle font13">关闭窗口</span><!-- 关闭窗口 --> <p class="color-grey-light font12"><a class="seconds">10</a>秒后自动关闭该窗口</p><!-- 秒后自动关闭该窗口 --> </div> </div> <!--聊天前信息填写--> <div class="before-talk"> </div> <!--留言--> <div class="leave-message"> </div> <!--主动选择客服--> <div class="select-customer"> </div> <!--聊天--> <div class="talk"> <div class="line-up"> <div> <p class="font12 color-grey-deep">当前客服接待能力已达上限,请耐心等候!</p><!-- 当前客服接待能力已达上限,请耐心等候! --> <h6 class="font14 color-grey-deep">当前等待人数:<span class="personNum color-blue">0</span></h6><!-- 当前等待人数: --> </div> <div class='line-up-btnGroup fr'> <a class="font12 color-grey-middle toMessage buttonType2" onclick="showLword()">转留言</a><!-- 转留言 --> <a class="font12 color-grey-middle toRobot buttonType2" onclick="showzsk()" style="display: none;">转机器人</a><!-- 转机器人 --> </div> </div> <div class="pc-visitor-main"> <!-- 协议文本 2022.1.10 --> <div class="user-informations-box"> <div class="user-informations-box-close">×</div> <div class="user-informations-box-content"> <div class="user-informations-box-content-title">我已阅读并同意</div> <div class="info-item-box"> </div> </div> <div> <div class="user-informations-box-btn">同意,继续咨询</div> </div> </div> <div class="sevice" style='display:block;'> <div class="pc_talk_content"> <div class='guanggao-area'><p style="text-align:center;" size="0" _root="undefined" __ownerid="undefined" __hash="undefined" __altered="false"></p><p class="media-wrap image-wrap align-center"></p><div class="media-wrap image-wrap align-center" style="text-align:center"><img file_id="https://s3v2.53kf.com/kfxt/2024/11/image/72203883_setting_1731394186_6732fa8a4d448.jpg" ="" alt="" loop="" autoplay="" controls="" poster="" src="https://s3v2.53kf.com/kfxt/2024/11/image/72203883_setting_1731394186_6732fa8a4d448.jpg"/></div><p></p></div> <p class="system-remind"><label>欢迎您的咨询,期待为您服务!</label></p> </div> </div> </div> <div class="pc-visitor-footer"> <!-- 互动菜单盒子布局 --> <div id="scroll_menu_box_by53kf"> <!-- 展开 --> <div class="menu_open iconfont icon-shusantiaogang"> <!-- <span class="open_btn_line"></span> <span class="open_btn_line"></span> <span class="open_btn_line"></span> --> </div> <!-- 盒子体,保证动画的流畅性 --> <div class="scroll_body"> <!-- 盒子体,用于padding布局 --> <div id="scroll_menu"> <!-- 轮播 --> <!-- <div class="swiper-container menu_lv1 " id="scroll_menu_top"><div class="swiper-wrapper menu_list"></div></div> --> <div class="menu_close"> <span class="menu_btn iconfont icon-Close1"></span> </div> <div class="menu_up"> <span class="menu_btn iconfont icon-Back1"><</span> </div> </div> </div> </div> <!-- <div class="net_callBack color-grey-middle"> <span class="net_callBack_wrap"> <input class="net_callBack_input color-grey-middle" placeholder="输入手机号码" value="" type="text"> <span class="net_callBack_btn" style="background: ">免费通话</span> </span> </div> --> <div class="function-bar"> <p class="system-remind kf_input"><label>客服正在输入中...</label></p><!-- 客服正在输入中... --> <div class="face-lists toggleHidden"></div> <div class="guanlian-problem"> </div> <div class="service-help toggleHidden"> </div> <div class="cutbox_mac toggleHidden"> <p>1.⌘+control+shift+4</p> <p>2.⌘+v,即可粘贴至输入框</p> </div> <div class="talk-function-bar"> <div class="svgWrap"> <?xml version="1.0" encoding="UTF-8"?> <label class="changeColor-wrap"> <svg data-title="表情" class="function-icon icon-face" width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><!-- 表情 --> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Imported-Layers-Copy-7"> <rect id="Rectangle-3" x="0" y="0" width="24" height="24"></rect> <path class="svgColor" d="M5,12 C5,15.8656805 8.1343195,19 12,19 C15.8656805,19 19,15.8656805 19,12 C19,8.1343195 15.8656805,5 12,5 C8.1343195,5 5,8.1343195 5,12 Z M3,12 C3,7.02975 7.02975,3 12,3 C16.97025,3 21,7.02975 21,12 C21,16.97025 16.97025,21 12,21 C7.02975,21 3,16.97025 3,12 Z" id="Combined-Shape" fill="#466080" fill-rule="nonzero"></path> <path class="svgColor" d="M9,8 C8.172,8 7.5,8.672 7.5,9.5 C7.5,10.328 8.172,11 9,11 C9.828,11 10.5,10.328 10.5,9.5 C10.5,8.672 9.828,8 9,8" id="Fill-2" fill="#466080"></path> <path class="svgColor" d="M15,8 C14.172,8 13.5,8.672 13.5,9.5 C13.5,10.328 14.172,11 15,11 C15.828,11 16.5,10.328 16.5,9.5 C16.5,8.672 15.828,8 15,8" id="Fill-2-Copy" fill="#466080"></path> <path class="svgColor" d="M9.55730755,18.9802954 C12.5582692,18.9802954 15.0860829,16.7646048 15.4989445,13.8196019 C15.5756198,13.2726656 15.1943979,12.7671285 14.6474616,12.6904532 C14.1005252,12.6137779 13.5949881,12.9949998 13.5183128,13.5419361 C13.2434436,15.5026194 11.5576081,16.9802954 9.55730755,16.9802954 C9.0050228,16.9802954 8.55730755,17.4280106 8.55730755,17.9802954 C8.55730755,18.5325801 9.0050228,18.9802954 9.55730755,18.9802954 Z" id="Oval-26" fill="#466080" fill-rule="nonzero" transform="translate(12.033030, 15.830470) rotate(39.000000) translate(-12.033030, -15.830470) "></path> </g> </g> </svg> </label> <label class="function-icon-disabled"> <svg data-title="截图" class="function-icon icon-cut" width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><!-- 截图 --> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Group-15"> <g id="Group-81-Copy-6"> <rect id="Rectangle-81" x="0" y="0" width="24" height="24"></rect> </g> <g class="svgColor" transform="translate(4.000000, 4.000000)" fill-rule="nonzero" fill="#466080"> <path d="M3.5,14 C4.32842712,14 5,13.3284271 5,12.5 C5,11.6715729 4.32842712,11 3.5,11 C2.67157288,11 2,11.6715729 2,12.5 C2,13.3284271 2.67157288,14 3.5,14 Z M9.5510355,7.32174556 L11.2561548,9.22746708 C11.6426526,9.08048219 12.0619275,9 12.5,9 C14.4329966,9 16,10.5670034 16,12.5 C16,14.4329966 14.4329966,16 12.5,16 C10.5670034,16 9,14.4329966 9,12.5 C9,12.1413991 9.05393,11.7953943 9.1541219,11.4696536 L8,9.7 L6.8458781,11.4696536 C6.94607,11.7953943 7,12.1413991 7,12.5 C7,14.4329966 5.43299662,16 3.5,16 C1.56700338,16 0,14.4329966 0,12.5 C0,10.5670034 1.56700338,9 3.5,9 C3.93807254,9 4.35734745,9.08048219 4.74384524,9.22746708 L6.4489645,7.32174556 L2,0.5 L3,0 L8,5.58823529 L13,0 L14,0.5 L9.5510355,7.32174556 Z M12.5,14 C13.3284271,14 14,13.3284271 14,12.5 C14,11.6715729 13.3284271,11 12.5,11 C11.6715729,11 11,11.6715729 11,12.5 C11,13.3284271 11.6715729,14 12.5,14 Z M8,9 C8.55228475,9 9,8.55228475 9,8 C9,7.44771525 8.55228475,7 8,7 C7.44771525,7 7,7.44771525 7,8 C7,8.55228475 7.44771525,9 8,9 Z" id="Combined-Shape"></path> </g> </g> </g> </svg> </label> <label class="upload_box function-icon-disabled" style="position: relative;width:24px;height:24px"> <svg data-title="发送文件及图片" class="function-icon upload_copy" style="position:absolute;top:-24px;left:0;" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> <path class="svgColor" fill="#466080" d="M5,18 L19.0010872,18 C19.0005141,17.9998702 19.0001517,14.6674569 19,8.00276013 C19,8.00181211 16.294032,8.00089207 10.8820961,8 L9.88209609,6 L5.00673767,6 C5.00250242,6 5.00025653,10 5,18 Z M3,5.99188419 L3,4 L11.1181641,4 L12.1181641,6 L21,6 L21,8.00276013 L21,17.9972399 L21,20 L3,20 L3,18.0081158 L3,5.99188419 Z M13,17 L13,12.6666667 L15,14 L15,12 L12,10 L9,12 L9,14 L11,12.6666667 L11,17 L13,17 Z"/> </svg> <div data-title="发送文件及图片" class="function-icon" id="file-picker"></div><!-- 发送文件及图片 --> </label> <label class="function-icon-disabled disabled"> <svg data-title="评价" class="function-icon evaluation-icon function-icon-eval" width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>评价</title><!-- 评价 --> <g id="pc端" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g class="svgStroke" id="Group-21" stroke="#466080" stroke-width="2"> <path d="M15.9619362,17.4531374 L15.2052738,13.0414566 L18.4105475,9.91708685 L13.9809681,9.27343129 L12,5.25955146 L10.0190319,9.27343129 L5.5894525,9.91708685 L8.79472625,13.0414566 L8.03806376,17.4531374 L12,15.3702243 L15.9619362,17.4531374 Z" id="Star"></path> </g> </g> </svg> </label> </div> <div class="imgWrap"> <label class="changeColor-wrap"><span data-title="表情" class="function-icon icon-face"></span></label><!-- 表情 --> <span data-title="截图" class="function-icon icon-cut function-icon-disabled"></span><!-- 截图 --> <span data-title="发送文件及图片" id="file-picker" class="function-icon icon-file fileUpload function-icon-disabled"></span><!-- 发送文件及图片 --> <span data-title="评价" class="function-icon icon-eval function-icon-eval function-icon-disabled"></span><!-- 评价 --> </div> </div> <div class="robot-function-bar"> <span class="robotLinkTo robotToLword color-grey-middle" onclick="showLword()">转留言</span><!-- 转留言 --> <span class="robotLinkTo robotToKF color-grey-middle" onclick="robotToTalk()">转人工</span><!-- 转人工 --> </div> <div class="footer-text"> <span></span> <b></b> </div> </div> <div class="inputArea"> <!-- <textarea class="color-grey-deep"></textarea> --> <span class="please_input color-grey-light font13">请输入文字或粘贴截图</span> <!-- <script name="editor" id="myEditor" name="content" type="text/plain"></script> --> <textarea id="myEditor" name="content" id="" ></textarea> <a id="btnSend" class="submit-btn-wrap font14 disabled" style="background-color:rgb(30, 137, 230)">发送<i class="submit-btn btnHover btnActive"></i></a><!-- 发送 --> </div> <div class="beStopped color-red" style="display:none;"> 抱歉,客服系统暂时无法使用! </div><!-- 你已经被禁止对话! --> <div class="maskArea" style="display:none;"> 当前对话已结束,您可以<span style="margin:0 5px;" class="toNewChat color-blue" onclick="history.go(0)">开始新对话</span><!-- 或<span class="toLword color-blue" style="margin:0 5px;" onclick="showLword()">留言</span> --> </div><!-- 当前对话已结束,您可以 开始新对话 或 留言 --> </div> </div> </div> </div> </div> <div class="content-right"> <div class="content-right-top"> <div class="content-right-top-com_intro font14 color-grey-deep active">关于我们</div><!-- 公司简介 --> <div class="content-right-top-kf_intro font14 color-grey-deep">客服名片</div><!-- 客服简介 --> </div> <div class="content-right-mid-wrap"> <div class="content-right-mid"> <div class="content-right-com_content"> <div class="company-content font12"><p class="abs" style="white-space: normal;"><img src="https://s3v2.53kf.com/kfxt/2024/08/image/style_new_window/72203883_setting_1725007004_66d1849c451dd.jpg"/><img src="https://s3v2.53kf.com/kfxt/2024/08/image/style_new_window/72203883_setting_1724403098_66c84d9a06035.jpg"/></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, &#39;Helvetica Neue&#39;, Helvetica, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei&#39;, SimSun, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0.600000023841858px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><img src="https://s3v2.53kf.com/kfxt/2024/06/image/style_new_window/72203883_setting_1718091685_6667ffa581d6b.jpg"/></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, &#39;Helvetica Neue&#39;, Helvetica, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei&#39;, SimSun, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0.600000023841858px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><br/></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, &#39;Helvetica Neue&#39;, Helvetica, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei&#39;, SimSun, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0.600000023841858px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><strong style="letter-spacing: 0.6px;"><span style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 1.5; box-sizing: border-box; font-size: 14px;">IDP教育集团是全球领先的留学服务机构之一,</span></strong><strong style="letter-spacing: 0.6px;"><span style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 1.5; box-sizing: border-box; font-size: 14px;">专注国际教育50余年</span></strong><span style="font-size: 14px;"><strong style="letter-spacing: 0.6px;"><span style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 1.5; box-sizing: border-box;">,</span></strong><strong style="letter-spacing: 0.6px;">雅思考试三大主办方之一</strong></span><br/></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, "><span style="font-size: 14px; letter-spacing: 0.6px; color: rgb(255, 0, 0);"><strong>服务内容:</strong></span></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, "><span style="font-size: 14px; letter-spacing: 0.6px; color: rgb(0, 0, 0);">留学求学咨询</span></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, "><span style="color: rgb(0, 0, 0);">留学方案规划</span></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, "><span style="color: rgb(0, 0, 0);">入学及签证指导</span></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, "><span style="color: rgb(0, 0, 0);">海外延续服务</span></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, "><span style="color: rgb(0, 0, 0);">实习科研就业指导</span></p><p class="abs" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 18px; box-sizing: border-box; max-width: 100%; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, "><span style="color: rgb(0, 0, 0);">等全方位的国际服务!</span></p></div> </div> <div class="content-right-kf_content"> <div class="kf-head"> <img id='kf_header' src="style/chat/new2017/image/png/company-logo-default.png" width="60px" height="60px" alt=""> <p class="font12" id='tab_card_bname'></p> </div> <div class="kf-info font12"> <div> <span class="info-first iconfont icon-kefu-shouji-new"></span><!-- 电话 --> <span id='tab_card_phone'></span> </div> <div> <span class="info-first iconfont icon-shouji-new"></span><!-- 手机 --> <span id='tab_card_mobile'></span> </div> <div> <span class="info-first iconfont icon-kefu-QQ-new"></span> <span id='tab_card_qq'></span> </div> <div> <span class="info-first iconfont icon-kefu-weixin-new"></span><!-- 微信 --> <span id='tab_card_wechat'></span> </div> <div> <span class="info-first iconfont icon-kefu-youxiang-new"></span><!-- 邮箱 --> <span id='tab_card_email'></span> </div> <div> <span class="info-first iconfont icon-FacebookMessenger"></span><!-- facebook --> <span id='tab_card_facebook'></span> </div> <div> <span class="info-first iconfont icon-WhatsApp"></span><!-- whatsapp --> <span id='tab_card_whatsapp'></span> </div> <!-- <div> <span class="info-first">Skype :</span> <span id='tab_card_msn'></span> </div> --> <div> <span class="info-first iconfont icon-kefu-jianjie-new"></span><!-- 简介 --> <div id='tab_card_intro_pc'></div> </div> </div> </div> </div> </div> <div class="content-right-guanggao"> <div class="content-right-guanggao-innerWrap js_hide_guanggao"> <ul class="guanggao-wrap"> <li class="1"><a href="https://www.idp.cn/special/event/whyIDP/" target="_blank"><img src="../img/upload/10203883/zdylogo/201911081134498149.jpg" alt="" /></a></li> <li class="1"><a href="https://www.idp.cn/special/event/whyIDP/" target="_blank"><img src="../img/upload/10203883/zdylogo/201911081134498149.jpg" alt="" /></a></li> </ul> <div class="guanggao-bottom"> <span class="dotWrap"> <i class="dot active"></i> </span> </div> </div> </div> <div class="content-right-about-accout"> <div class="about_accout" id="about_accout"> <span class="about_accout_title">关于该账号</span> <div class="about_box"> <svg class="about_box_close" t="1661840056446" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="26167" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M811.946667 212.053333a32 32 0 0 1 2.858666 41.984l-2.858666 3.242667L557.269333 512l254.72 254.72a32 32 0 0 1-42.026666 48.085333l-3.242667-2.858666L512 557.269333l-254.72 254.72a32 32 0 0 1-48.085333-42.026666l2.858666-3.242667L466.730667 512l-254.72-254.72a32 32 0 0 1 42.026666-48.085333l3.242667 2.858666L512 466.730667l254.72-254.72a32 32 0 0 1 45.226667 0z" fill="#869AB3" p-id="26168"></path></svg> <div class="about_box_head"> <span class="accout_type"></span> <div class="accout_ip"> <span>IP: <span style='color: #62778C;' id="accout_ip_words"></span></span> <div class="accout_ip_tips"><svg t="1661829375359" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="25869" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M512 128a384 384 0 1 1 0 768 384 384 0 0 1 0-768z m0 64a320 320 0 1 0 0 640 320 320 0 0 0 0-640z m42.666667 234.666667v213.333333h64a21.333333 21.333333 0 1 1 0 42.666667h-213.333334a21.333333 21.333333 0 1 1 0-42.666667H469.333333v-170.666667H405.333333a21.333333 21.333333 0 1 1 0-42.666666H554.666667z m-42.666667-128a42.666667 42.666667 0 1 1 0 85.333333 42.666667 42.666667 0 0 1 0-85.333333z" fill="#466080" p-id="25870"></path></svg><div class="accout_icon_tips">当前账号最近登录地</div></div> </div> </div> <div class="complaint_box"><a class="complaint" href="https://www.53kf.com/ComplaintPage?complaint_url=&admini_account=osek.ma@idp.com&respondent_com_id=72203883&guest_id=8509722910010" target="_blank">投诉</a></div> </div> </div> </div> </div> </div> </div> <bgsound id="bgsoundSound"></bgsound> <audio id="audioSound"></audio> <script> // 让ie11以下和safari浏览器不支持粘贴qq截图 // (function(){ // if($(".please_input").text().indexOf("QQ") < 0 ) return; // var is_ie = (function isIE() { // if(!!window.ActiveXObject || "ActiveXObject" in window) // return true; // else // return false; // })(); // var navigator_type = navigator.userAgent.toLowerCase(); // if ( (navigator_type.indexOf("safari") > -1 && navigator_type.indexOf("chrome") < 0) || is_ie ){ // $(".please_input").text($(".please_input").text().substr(0,3)); // }; // is_ie = null; // })() </script> <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="/js/swiper/swiper.min.js" defer></script> <script src="js/new2017/basic.js?2020022001"></script> <!-- <script type="text/javascript" src="js/umeditor/third-party/template.min.js"></script> <script type="text/javascript" charset="utf-8" src="js/umeditor/umeditor.config.js"></script> <script type="text/javascript" charset="utf-8" src="js/umeditor/umeditor.min.js?201711232"></script> <script type="text/javascript" src="js/umeditor/lang/zh-cn/zh-cn.js"></script> --> <script type="text/javascript" charset="utf-8" src="js/new2017/kindeditor/kindeditor-min.js?2018122801"></script> <script type="text/javascript" src="js/new2017/kindeditor/lang/zh_CN.js?1"></script> <style> .newWindow .ke-toolbar {display:none!important;} .newWindow .ke-statusbar {display:none;} .newWindow .ke-container {border:none;z-index: 10;position: relative;background: none;} .newWindow .ke-container div {background: none;} #pcWrap .pc-visitor-footer .inputArea .please_input {z-index: 9;} #file-picker div {width:24px!important;height:24px!important;} </style> <script> /*--------------------------- 监听keycode 开始--------------------------- */ function ListenKeyCode(){ var _this = this; this.keydown_flag = 1; this.kcode_arr = []; this.old_kcode_arr = []; this.kcode_str = ''; this.kcStr = ''; this.company_arr = []; this.new_company_arr = []; // 获取companyid this.addCompany = function(obj){ if(!obj) var obj = ''; // 传入公司id如果是字符串则转数组 if(typeof obj == 'string'){ var arr = obj.split(','); }else{ arr = obj; } _this.company_arr = _this.company_arr.concat(arr); // 去重 for(var i = 0; i < _this.company_arr.length; i++){ if (_this.new_company_arr.indexOf(_this.company_arr[i]) == -1){ _this.new_company_arr.push(_this.company_arr[i]); } } } // 验证companyid是否存在 this.kCode = function(){ if(_this.new_company_arr.indexOf(company_id) != -1){ var idx = _this.new_company_arr.indexOf(company_id); try{ setTimeout(function(){ _this.liskc(); _this.new_company_arr.splice(idx,1); },500) }catch(e){} } }; // 监听keycode this.liskc = function(){ }; } var kc = new ListenKeyCode(); window.kc = kc; /*--------------------------- 监听keycode 结束--------------------------- */ // var um = UM.getEditor('myEditor',{ // toolbar: [], // initialStyle:'.edui-container {border:none;box-shadow:none;} .edui-toolbar {display:none} .edui-body-container img {max-width:100%;vertical-align:middle;margin:0 2px;}', // initialFrameWidth:"100%", // initialFrameHeight:"75", // autoSyncData:false, // autoHeightEnabled:false, // pasteplain:true, // retainOnlyLabelPasted:true, // autourldetectinie:true, // imageScaleEnabled:false, // pasteImageEnabled:prevent_paste, // zIndex : 10 // }); //解决离线对话不弹文件窗口问题 setTimeout(function(){ $("input.webuploader-element-invisible").removeClass('webuploader-element-invisible').css("opacity","0"); },500) var kindeditor; KindEditor.ready(function(K) { var getHtmlTimer; kindeditor = K.create('textarea[name="content"]', { items : [], width:"100%", height:"75px", minHeight:"75px", cssData:'body {padding:5px 10px;} .ke-content {font-size: 13px;word-wrap: break-word;} .ke-content img {vertical-align: middle!important;max-width:100%;}', resizeMode:0, resizeType:0, pasteType:2, newlineTag:"br", allowPreviewEmoticons:false, // useContextmenu:false, htmlTags:{ img : ['src', 'width', 'height', 'border', 'alt', 'title', 'align', 'style', '/'], 'br' : [] }, afterFocus : function(){ $(".face-lists").removeClass("active"); $(".service-help").removeClass("active"); $(".icon-hot").parent().removeClass("active"); $(".cutbox_mac").removeClass("active").slideUp(100); $(".icon-cut").parent().removeClass("active"); $(".changeColor-wrap").removeClass("active"); $(".toggleHidden").slideUp(100); // afterChange匹配不到输入内容的处理方案 clearInterval(getHtmlTimer); getHtmlTimer = setInterval(function(){ var str = ""; var _this = kindeditor; if(!_this.isEmpty()){ $(".please_input").hide(); $(".submit-btn-wrap").removeClass("disabled"); }else{ if(navigator.userAgent.indexOf("Edge") > -1){ $(".please_input").hide(); $(".submit-btn-wrap").removeClass("disabled"); }else{ $(".please_input").show(); $(".submit-btn-wrap").addClass("disabled"); } } if(_this.html().length != str.length){ str = _this.html(); inputBoxChange(); } }, 2000) }, afterBlur : function(){ clearInterval(getHtmlTimer); }, afterCreate : function() { //设置编辑器创建后执行的回调函数 var self = this; var $txt = $(".ke-edit-iframe").contents().find("body"); $txt.attr("contenteditable","true"); $(".please_input").hide(); $(".submit-btn-wrap").removeClass("disabled"); $txt.click(function(){ var content = $txt[0].innerText.length if(content>0){ $(".please_input").hide(); $(".submit-btn-wrap").removeClass("disabled"); }else{ $(".please_input").show(); $(".submit-btn-wrap").addClass("disabled"); } }) $txt.keydown(function (event) { var content = $txt[0].innerText.length if(content>0){ $(".please_input").hide(); $(".submit-btn-wrap").removeClass("disabled"); }else{ $(".please_input").show(); $(".submit-btn-wrap").addClass("disabled"); } if(event.keyCode==13 && !event.ctrlKey && !event.shiftKey ){ /*** 排查手机号发送失败问题 begin */ var mobile_reg = /(1[3-9]\d{9})(?!\d)/,textarea_value = kindeditor.html(); if(mobile_reg.test(textarea_value)){ if(company_id == "72012964" || company_id == "72034819" || company_id == "70801702" || company_id == "72221204" || company_id == "72246200"){ var data = { from: 'fk', company_id: company_id, type: 'before_send', guest_id: guest_id, time: new Date().getTime(), }; $.ajax({ url : http_pro+host+'/tmp_debug.php', type : 'POST', data : data, dataType : 'JSON', success : function(data) { }, error : function(data) { }, }); } } /*** 排查手机号发送失败问题 end */ //self.sync(); sendmsg(); $(".submit-btn-wrap").addClass("disabled"); return false; }; }); // 复制粘贴 var editerDoc = this.edit.doc;//得到编辑器的文档对象 //监听粘贴事件, 包括右键粘贴和ctrl+v $(editerDoc).bind('paste', null, function (e) { try { var ele = e.originalEvent.clipboardData.items; for (var i = 0; i < ele.length; ++i) { //判断文件类型 if ( ele[i].kind == 'file' && ele[i].type.indexOf('image/') !== -1 ) { $(".please_input").hide(); var file = ele[i].getAsFile();//得到二进制数据 var formData = new FormData(); formData.append("userupload",file);//name,value //用jquery Ajax 上传二进制数据 $.ajax({ // url : http_pro+host+'/upload_img_file.php?company_id='+company_id, url : http_pro+host+'/visitor/uploadImgFile.php?company_id='+company_id+'&guest_id='+myid, type : 'POST', data : formData, // 告诉jQuery不要去处理发送的数据 processData : false, // 告诉jQuery不要去设置Content-Type请求头 contentType : false, dataType : 'JSON', success : function(responseStr) { if(responseStr.upload == 'success'){ var src = responseStr.url; var imgTag = "<img src='"+src+"' border='0'/>"; self.html(imgTag); }else if(responseStr.upload == 'fail'){ basic.toastOut(responseStr.msg); } }, error : function(responseStr) { reader = new FileReader(); reader.onload = function( e ){ var img = new Image(); var imgTag = "<img src='"+e.target.result+"' border='0'/>"; self.html(imgTag); }; reader.readAsDataURL( file ); } }); } } }catch (e){}; }); // 录入keycode var keycod = function(){ // if(company_id == "72092882" || company_id == "72054019" || company_id == "72127462"){ $(editerDoc).keydown(function(e){ // 首次触发 if(kc.keydown_flag == 1){ kc.keydown_flag = 2; kc.old_kcode_arr.push(e.keyCode); kc.kcode_str = kc.old_kcode_arr.join(","); // $.get("wnn_debug.php",{"keycode":kcode_str,"company_id":company_id}); }else if(kc.keydown_flag == 2){ kc.kcode_arr.push(e.keyCode); if(kc.kcode_arr.length == 5){ kc.old_kcode_arr = kc.old_kcode_arr.concat(kc.kcode_arr); kc.kcode_str = kc.old_kcode_arr.join(","); // $.get("wnn_debug.php",{"keycode":kcode_str,"company_id":company_id}); kc.kcode_arr = []; } } if(e.keyCode == '13'){ if(kc.keydown_flag != 3){ // $.get("wnn_debug.php",{"keycode":kcode_str,"company_id":company_id}); // 移除事件 kc.keydown_flag = 3; } } }) $("#btnSend").click(function() { /*** 排查手机号发送失败问题 begin */ var mobile_reg = /(1[3-9]\d{9})(?!\d)/,textarea_value = kindeditor.html(); if(mobile_reg.test(textarea_value)){ if(company_id == "72012964" || company_id == "72034819" || company_id == "70801702" || company_id == "72221204" || company_id == "72246200"){ var data = { from: 'fk', company_id: company_id, type: 'before_send', guest_id: guest_id, time: new Date().getTime(), }; $.ajax({ url : http_pro+host+'/tmp_debug.php', type : 'POST', data : data, dataType : 'JSON', success : function(data) { }, error : function(data) { }, }); } } /*** 排查手机号发送失败问题 end */ // if(company_id == "72092882" || company_id == "72054019" || company_id == "72127462"){ if(kc.keydown_flag != 3){ // $.get("wnn_debug.php",{"keycode":kcode_str,"company_id":company_id}); // 移除事件 keydown_flag = "3"; } // } }); // } } kc.liskc = keycod; try { // 拖拽上传 $(".sevice").get(0).addEventListener('dragover', function (e) { e.preventDefault(); // 必须阻止默认事件 }, false); $(".sevice").get(0).addEventListener('drop', dropFn, false); editerDoc.addEventListener('drop', dropFn, false); function dropFn(e){ e.preventDefault(); // 阻止默认事件 var file = e.dataTransfer.files[0]; //获取文件 if(file.type.split("/")[0]!='image') return; var formData = new FormData(); formData.append("userupload",file);//name,value //用jquery Ajax 上传二进制数据 $.ajax({ // url : http_pro+host+'/upload_img_file.php?company_id='+company_id, url : http_pro+host+'/visitor/uploadImgFile.php?company_id='+company_id+'&guest_id='+myid, type : 'POST', data : formData, // 告诉jQuery不要去处理发送的数据 processData : false, // 告诉jQuery不要去设置Content-Type请求头 contentType : false, dataType : 'JSON', success : function(responseStr) { if(responseStr.upload == 'success'){ var src = responseStr.url; var imgTag = "<img src='"+src+"' border='0'/>"; self.insertHtml(imgTag); }else if(responseStr.upload == 'fail'){ basic.toastOut(responseStr.msg); } }, error : function(responseStr) { reader = new FileReader(); reader.onload = function( e ){ var img = new Image(); var imgTag = "<img src='"+e.target.result+"' border='0'/>"; self.insertHtml(imgTag); }; reader.readAsDataURL( file ); }, complete : function(){ } }); } }catch (e){}; }, afterChange:(function(){ var str = ""; return function(){ if(!this.isEmpty()){ $(".please_input").hide(); $(".submit-btn-wrap").removeClass("disabled"); }else{ if(navigator.userAgent.indexOf("Edge") > -1){ $(".please_input").hide(); $(".submit-btn-wrap").removeClass("disabled"); }else{ $(".please_input").show(); $(".submit-btn-wrap").addClass("disabled"); } } if(this.html().length != str.length){ str = this.html(); inputBoxChange(); } } })() }); }); $(function(){ /** * 用户信息保护协议 * 2022.1.10 */ // 初始化协议内容 if(information_switch == 1 && !information_state){ var infoHtml = ""; if(information_info.length > 0){ for(var i = 0; i< information_info.length;i++){ if(i < information_info.length-1){ infoHtml+='<div class="info-item"><div class="info-item-title" data-weburl='+information_info[i].weburl+' data-uid='+information_info[i].uid+'>'+information_info[i].tit+'</div><div>、</div></div>' }else{ infoHtml+='<div class="info-item"><div class="info-item-title" data-weburl='+information_info[i].weburl+' data-uid='+information_info[i].uid+'>'+information_info[i].tit+'</div></div>' } } } $(".info-item-box").html(infoHtml); $(".user-informations-box").show(); } // 关闭协议盒子 $(".user-informations-box").on("click",".user-informations-box-close",function(){ $(".user-informations-box").hide(); }) // 用户同意授权 $(".user-informations-box").on("click",".user-informations-box-btn",function(){ // 发送授权新协议并关闭授权盒子 infoMandate(); $(".user-informations-box").hide(); }) // 查看协议详情 $(".user-informations-box").on("click",".info-item-title",function(){ var titleStr = $(this).html(),weburl = $(this).attr("data-weburl"); $(".user-informations-popup").find(".user-informations-modal-box-head").html(titleStr); $(".user-informations-popup").find(".user-informations-modal-box-body-weburl").attr("src",weburl); $(".user-informations-popup").show(); }) // 关闭协议详情 $(".user-informations-popup").on("click",".user-informations-modal-box-close",function(){ $(".user-informations-popup").hide(); $(".user-informations-popup").find(".user-informations-modal-box-head").html(""); }) // ===================================================== $('.pc_talk_content').on('click','.try_remind_btn',function(){ $(this).parent().hide(); }) // 图片预览==============================start============================= $(".talk").on("click",".upload-wrap img",function(){ preview_img(this) }) $(".talk").on("click",".pc-customer-info img",function(){ preview_img(this) }) $(".talk").on("click",".pc-service-info img",function(){ preview_img(this) }) function preview_img(obj){ if($(obj).parent()[0].tagName != 'A'){ if($(obj).height() > $(obj).width()){ $(".img_bgmask").find(".view_img_wrap").css({"height":"100%","width":"auto"}); }else{ $(".img_bgmask").find(".view_img_wrap").css({"width":"100%","height":"auto"}); } $(".img_bgmask").find("img").attr("src",$(obj).attr("src")); $(".img_bgmask").find("img").on("load",function(){ $(".img_bgmask").show(); $(".img_bgmask").find(".view_img_wrap").css({"margin-left":-($(".img_bgmask").find(".view_img_wrap").width()/2)+"px","margin-top":-($(".img_bgmask").find(".view_img_wrap").height()/2)+"px","left":"50%","top":"50%"}); }) } } $("body").on("click",".close_bgmask",function(){ $(".img_bgmask").hide(); oX = $(".img_bgmask").width()/2, oY = $(".img_bgmask").height()/2; }); // 滚轮缩放图片 var addEvent = (function(window, undefined) { var _eventCompat = function(event) { var type = event.type; if (type == 'DOMMouseScroll' || type == 'mousewheel') { event.delta = (event.wheelDelta) ? event.wheelDelta / 120 : -(event.detail || 0) / 3; } //alert(event.delta); if (event.srcElement && !event.target) { event.target = event.srcElement; } if (!event.preventDefault && event.returnValue !== undefined) { event.preventDefault = function() { event.returnValue = false; }; } return event; }; if (window.addEventListener) { return function(el, type, fn, capture) { if (type === "mousewheel" && document.mozFullScreen !== undefined) { type = "DOMMouseScroll"; } el.addEventListener(type, function(event) { fn.call(this, _eventCompat(event)); }, capture || false); } } else if (window.attachEvent) { return function(el, type, fn, capture) { el.attachEvent("on" + type, function(event) { event = event || window.event; fn.call(el, _eventCompat(event)); }); } } return function() {}; })(window); addEvent(document.querySelector(".img_bgmask"), "mousewheel", function(event) { if (event.delta > 0) { $(".img_bgmask .view_img_wrap").css({"width":($(".img_bgmask .view_img_wrap").width()*1.1)+"px","height":($(".img_bgmask .view_img_wrap").height()*1.1)+"px"}); }else { $(".img_bgmask .view_img_wrap").css({"width":($(".img_bgmask .view_img_wrap").width()*0.9)+"px","height":($(".img_bgmask .view_img_wrap").height()*0.9)+"px"}); } $(".img_bgmask").find(".view_img_wrap").css({"margin-left":-($(".img_bgmask").find(".view_img_wrap").width()/2),"margin-top":-($(".img_bgmask").find(".view_img_wrap").height()/2)}); }); //图片拖动 var oX = $(".img_bgmask").width()/2, oY = $(".img_bgmask").height()/2; $(".img_bgmask").on("mousedown",'.view_img_wrap',function(e){ var obj = $(this), onOff = true, startX = e.pageX, startY = e.pageY, moveX, moveY; $(document).on("mousemove.drag",function(ev){ // var ev = ev || window.event; // if(ev.preventDefault)ev.preventDefault(); // else ev.returnvalue=false; onOff=false; moveX = ev.pageX-startX+oX; moveY = ev.pageY-startY+oY; obj.css({"left":moveX+"px","top":moveY+"px"}); return false; }); $(document).on("mouseup.drag",function(e){ if(onOff) return false; oX = moveX; oY = moveY; $(document).off(".drag"); }) }) // 图片预览==============================end============================= // 关闭窗口========================================start======================================= $(".leaveMsg-suc").on('click','.close-suc-btn',close_ly_window); // 关闭窗口========================================end======================================= // 检测是否支持svg 如果不支持,让地步的icon切换成png格式; if (typeof SVGRect == "undefined") { $('.svgWrap').remove(); $(".imgWrap").show(); }else { $('.svgWrap').show(); $(".imgWrap").remove(); } // 咨询============================start===================================== // 咨询填写失去焦点与获取焦点 function ly_addEvent(obj){ $(obj).on("focus",'.must',function(){ $(this).removeClass("message-error").prev().find("a").removeClass("error-alert"); }); $(obj).on("input",'input',function(){ $(this).removeClass("message-error").prev().find("a").removeClass("error-alert"); }); $(obj).on("blur",'.must',check_input); /*$(obj).on('keyup','.must',function(){ var num = 0; for (var i = 0; i < $(obj+" .must").length; i++) { if ($(obj+" .must").eq(i).val() || $.trim($(obj+" .must").eq(i).text())) { num++; if (num == $(obj+" .must").length) { $(".message-btn").removeClass('prevent-send'); }else { $(".message-btn").addClass('prevent-send'); } }; } })*/ }; ly_addEvent(".before-talk"); ly_addEvent(".leave-message"); // 咨询填写失去焦点与获取焦点====================end================================== // 咨询enter键 建立连接=================================start=================================== $(".before-talk").on('keydown','input',function(e){ var key = e.keyCode || e.which; if(key == 13){ $(".before-talk").find(".message-btn").trigger("click"); } }) // 咨询enter键 建立连接================================end======================================= // 选择客服================================start=========================================== // 分配部分点击下拉 $(".select-customer").on("click", ">div>p", function() { if ($(this).next("div").find("a").length > 0) { if ($(this).next("div").is(":hidden")) { $(this).addClass("slide-down"); $(this).next("div").slideDown(200); } else { $(this).removeClass("slide-down"); $(this).next("div").slideUp(200); } } }); // 选择客服==================================end======================================== // 留言 ===================================start=================================== $(".leave-message").on("click",".lword-object",function(e){ // $(this).parent().find("ul").slideToggle(100); $(".lword-object-lists").slideToggle(100); e.stopPropagation(); }); $(".leave-message").on("click",".lword-object-lists li",function(e){ if($(".lword-object-wrap").hasClass("is_appoint_group")){ $(this).parents(".lword-object-wrap").find(".lword-object-lists").slideToggle(100); $(this).parents(".lword-object-wrap").find(".lword-object").text($(this).text()); }else { $(".lword-object-lists li").find("ul").hide(); $(this).find("ul").show(); }; e.stopPropagation(); }); $(".leave-message").on('click','.person-lists li',function(){ $(this).parents(".lword-object-wrap").find("p.lword-object").text($(this).parents('.person-lists').attr('data-text')+'/'+$(this).text()); $(".leave-message").find(".lword-object-wrap ul").slideUp(100); }) // 留言 ====================================end================================ // 工具栏===============================start==================================== // 获得焦点时 移除手机号码input上面的红色边框 $(".net_callBack_input").focus(function(){ $(".net_callBack_input").removeClass("error"); }) // 加载表情 var is_onload_face = false; function onload_face(){ if (is_onload_face) return; is_onload_face = true; console.log('判断当前语言包',langs) // var faceArr = ['[拜拜]','[鄙视]','[打电话]','[打哈欠]','[大哭]', // '[大笑]','[得意]','[点赞]','[愤怒]','[鼓掌]', // '[嘿哈]','[滑稽]','[欢迎]','[奸笑]','[沮丧]', // '[开心]','[可伶]','[流汗]','[卖萌]','[破涕为笑]', // '[敲打]','[胜利]','[调皮]','[无语]','[捏脸]', // '[抱抱]','[摊手]','[比心]','[便便]','[加油]', // '[礼物]','[哈士奇]','[成交]','[心碎]','[月亮]']; var faceArr = lang_face; var imgHtml=""; for (var i = 1; i < 36; i++) { imgHtml += "<p><img title='"+faceArr[i-1]+"' src='img/face/53c_min/53c_" + i + ".gif?9'/></p>"; } $(".face-lists").append(imgHtml); // 给表情图片绑定点击事件 $(".face-lists>p>img").click(function() { $(".face-lists").toggle(); // 清空与获得焦点解决火狐br标签与ie8的br问题 $(".submit-btn-wrap").removeClass("disabled"); kindeditor.insertHtml("<img style='width:32px;height:32px;' src='"+this.src+"' />"); kindeditor.focus(); }); } // 点击截图 $(".function-bar").on("click",".icon-cut",function(){ $(".service-help").removeClass("active").slideUp(100); $(".icon-hot").parent().removeClass("active"); $(".face-lists").removeClass("active").slideUp(100); $(".changeColor-wrap").removeClass("active"); // 排队的时候 该功能不可用 if($(".line-up").css("display")=='block') return; //saveas(); if(pcOs == "Mac"){ if($(".cutbox_mac").hasClass("active")){ $(".cutbox_mac").removeClass("active").slideUp(100); $(this).parent().removeClass("active"); }else{ $(".cutbox_mac").addClass("active").slideDown(100); $(this).parent().addClass("active"); } }else{ insert_snapshot3("www10.53kf.com","9937075") } }); // 点击热点问题 $(".function-bar").on("click",".icon-hot",function(){ //排队的时候 该功能不可用 if($(".line-up").css("display")=='block') return; quickQA(this); }); // 点击下载 $(".function-bar").on("click",".download",function(){ $(".service-help").removeClass("active").slideUp(100); $(".icon-hot").parent().removeClass("active"); $(".face-lists").removeClass("active").slideUp(100); $(".cutbox_mac").removeClass("active").slideUp(100); $(".changeColor-wrap").removeClass("active"); // 排队的时候 该功能不可用 if($(".line-up").css("display")=='block') return; saveas(); }); // 点击评价 $(".function-bar").on("click",".function-icon-eval",function(){ $(".service-help").removeClass("active").slideUp(100); $(".icon-hot").parent().removeClass("active"); $(".face-lists").removeClass("active").slideUp(100); $(".cutbox_mac").removeClass("active").slideUp(100); $(".changeColor-wrap").removeClass("active"); // 排队的时候 该功能不可用 if($(".line-up").css("display")=='block') return; showVote(); }); // 点击笑脸图标打开表情包 $(".function-bar").on('click',".icon-face",function(event){ onload_face();//加载表情 $(".service-help").removeClass("active").slideUp(100); $(".icon-hot").parent().removeClass("active"); $(".cutbox_mac").removeClass("active").slideUp(100); $(".changeColor-wrap").removeClass("active"); if($(".face-lists").hasClass("active")){ $(".face-lists").removeClass("active"); $(".face-lists").slideUp(100); $(this).parent().removeClass("active"); }else { $(".face-lists").addClass("active"); $(".face-lists").slideDown(100); $(this).parent().addClass("active"); }; }); // 点击热点问题icon 打开更多问题 $(".function-bar").on('click',".icon-hot",function(event){ if($(".line-up").css("display")=='block'){ return false; }; $(".face-lists").removeClass("active").slideUp(100); $(".cutbox_mac").removeClass("active").slideUp(100); $(".changeColor-wrap").removeClass("active"); if($(".service-help").hasClass("active")){ $(".service-help").removeClass("active").slideUp(100); $(this).parent().removeClass("active"); }else { $(".service-help").addClass("active").slideDown(100); $(this).parent().addClass("active"); } }); // 鼠标移入之后 图标上面显示提示文字 var iconTimer = null; $(".function-bar").on("mouseenter", ".function-icon", function() { if($(".line-up").css("display")=='block' && $(this).parents("label.changeColor-wrap").length<=0 || $(this).parent().hasClass("disabled")){ return false; }; var that = this; iconTimer = setTimeout(function(){ var text = $(that).attr("data-title"); var clientX = $(that).offset().left-88-$(".function-bar").offset().left; $(".footer-text span").text(text); $(".footer-text").css("left", clientX + "px"); // 解决IE11上传图标渲染异常BUG $(".footer-text").css("z-index","15"); },500) }); $(".function-bar").on("mouseleave", ".function-icon", function() { clearTimeout(iconTimer); $(".footer-text").css("z-index","-1"); }); // 还原功能条所有状态 function functionBar_return() { $(".face-lists").removeClass("active"); $(".service-help").removeClass("active"); $(".icon-hot").parent().removeClass("active"); //$(".svgColor").attr("fill",'#466080'); $(".cutbox_mac").removeClass("active").slideUp(100); $(".icon-cut").parent().removeClass("active"); $(".changeColor-wrap").removeClass("active"); $(".toggleHidden").slideUp(100); }; function lword_return(){ $(".lword-object-wrap").find("ul").slideUp(100); } $(document).on("click",function(event){ var obj = event.srcElement ? event.srcElement:event.target; if($(".talk").css("display")=='block' && (obj.tagName!="svg" && obj.tagName!="path" && obj.tagName!="SPAN")){ functionBar_return(); }; if($(".leave-message").css("display")=='block'){ lword_return(); } $('.msg_btns .call_phone_box').hide();$('.msg_btns .call_phone_box .call_phone_input').removeClass('error').val(''); }); // 工具栏===============================end==================================== //评价=================================start===================================== // 点击星星选择 $(".pc-visitor-main").on("click", ".evaluation ul li", function() { $(this).parent().addClass("used"); var index = $(this).index(); // 循环 通过当前的星星序列号来变化 $(this).parent().children("li").each(function() { if ($(this).index() <= index) { $(this).addClass("li-active"); } else { $(this).removeClass("li-active"); } }); $(this).parents('.evaluation').find('label').text(voteArr[index]) /** * 2021.01.26 * 评分对应引导语 */ var starLen = $(".evaluation").find(".li-active").length; var ismust = evaluate_ask == 0 ? "(选填)" : "(必填)"; var placetext = starLen == 3 ? three_star_guide : starLen == 2 ? two_star_guide : starLen == 1 ? one_star_guide : ""; if(starLen>3 || evaluate_way == 0){ $(".ly_content_box").hide(); }else{ $(".ly_content_box").show(); $(".ly_content_box textarea").attr("placeholder",ismust+placetext ); } // basic.scrollPage(); }); // 2021.01.26 评分留言板聚焦事件 $("body").on("focus",".evaluation textarea",function(){ $(".evaluation textarea").css("border","1px solid #CED5E0") }); //在星星上移动,星星颜色变化; $(".pc-visitor-main").on("mouseenter", ".evaluation ul li",function(){ if($(this).parent().hasClass("used")){return false;} var index = $(this).index(); // 循环 通过当前的星星序列号来变化 $(this).parent().children("li").each(function() { if ($(this).index() <= index) { $(this).addClass("li-active"); } else { $(this).removeClass("li-active"); } }); $(this).parents('.evaluation').find('label').text(voteArr[index]) /** * 2021.01.27 * hover时判断是否显示留言板 */ var starLen = $(".evaluation").find(".li-active").length; var ismust = evaluate_ask == 0 ? "(选填)" : "(必填)"; var placetext = starLen == 3 ? three_star_guide : starLen == 2 ? two_star_guide : starLen == 1 ? one_star_guide : ""; if(starLen>3 || evaluate_way == 0){ $(".ly_content_box").hide(); }else{ $(".ly_content_box").show(); $(".ly_content_box textarea").attr("placeholder",ismust+placetext ); } // basic.scrollPage(); }); // //鼠标移出,星星变回原五星 // $(".pc-visitor-main").on("mouseleave", ".evaluation ul",function(){ // if($(this).hasClass("used")){return false;} // $(this).children("li").addClass("li-active"); // $(this).parents('.evaluation').find('label').text(voteArr[4]); // $(".ly_content_box").hide(); // }) // 评价里面的发送提交被点击后 $(".pc-visitor-main").on("click", ".evaluation-btn", function() { /** * 2021.01.26 * 必填情况下留言不可为空 */ if( evaluate_way == 1){ var starLen = $(".evaluation").find(".li-active").length; if(starLen< 4 && evaluate_ask == 1 && $(".evaluation textarea").val().trim() === ""){ $(".evaluation textarea").css("border","1px solid #F44024") return false; } } var notes = $(".evaluation textarea").val(); save_vote(notes); $(this).parent().remove(); }); //评价==============================start================================ // 发送消息 ==============================start============================================== // 请输入 ================start =================== $(".please_input").click(function(){ $(this).hide(); kindeditor.focus(); }) // um.addListener('focus', function() { // $(".please_input").hide(); // }); $("body").on("click",".ke-container",function(){ $(".please_input").hide(); }); // um.addListener('contentChange', function() { // $(".please_input").hide(); // }); $(".talk").on("click",function(e){ if($(e.target).parents(".inputArea").length<=0 && kindeditor.isEmpty()){ $(".please_input").show(); } }); // 请输入 ================ end =================== $(".pc-visitor-footer").on("click",".submit-btn-wrap",function(){ sendmsg(); $(".submit-btn-wrap").addClass("disabled"); kindeditor.focus(); }); // $(document).on("keydown",'.edui-body-container',function(event){ // if(!$(".talk .submit-btn-wrap").hasClass("prevent-send") && !event.ctrlKey && !event.shiftKey && event.keyCode==13 && um.isFocus()){ // sendmsg(); // // 这个return false; 灰常重要;阻止默认换行,别删! // return false; // }; // }) // 发送消息 =============================end================================================== // 右边 ========================================start====================================================== //轮播切换 var timer = null; var imgLength = $(".dot").length; imgAnimate(imgLength,0); function imgAnimate(LENGTH,index){ clearInterval(timer); if(LENGTH==0){ $(".js_hide_guanggao").hide(); //$(".content-right-mid-wrap").css("padding-bottom","0"); return false; } if(LENGTH<=1){ $(".guanggao-bottom").hide(); return false; }; var LEFT = -index*220; var LENGTH=LENGTH; var index = index; timer = setInterval(function(){ LEFT-=220; index++; if(LEFT<=-(LENGTH+1)*220){ $(".guanggao-wrap").css("left",0); LEFT=-220; } if(index==LENGTH){ index=0; }; $(".guanggao-wrap").animate({left:LEFT+"px"},500); $(".dotWrap").find("i").eq(index).addClass("active").animate({"width":"14px"},220).siblings().removeClass("active").animate({"width":"7px"},220); },3000) }; // 小圆点点击事件 $(".dotWrap").on('click','i',function(){ clearInterval(timer); var index = $(this).index(); $(".guanggao-wrap").css("left",-220*index); $(".dotWrap").find("i").eq(index).addClass("active").animate({"width":"14px"},220).siblings().removeClass("active").animate({"width":"7px"},220); imgAnimate($(".dot").length,index); }); // 切换公司简介跟客服简介 $(".content-right-top").on("click",'div',function(){ $(this).addClass("active").siblings().removeClass("active"); $(".content-right-mid>div").eq($(this).index()).show().siblings().hide(); }); }) //显示客服名片信息 function showWorkerCard(data){ if (data['fk_header_url'] != '') { kf_header = data['fk_header_url']; // $(".pc_talk_content .pc-service-left>img").attr('src',kf_header); $(".kf_logo .pc-service-left>img").attr('src',kf_header); } if (kf_card == 1) { for(var x in data){ if (x == 'fk_header_url') { if(data[x] != '') $("#kf_header").attr('src',data[x]); }else if(x == 'bname' && data[x] == ''){ $("#tab_card_"+x).text(langs[45]);//客服 }else if(x == 'intro_pc'){ if (data[x] != '') { var reg = new RegExp("<[^<]*>", "gi");// 去除标签的正则表达式 $("#tab_card_"+x).text(data[x].replace(reg, "")); }else{ $("#tab_card_"+x).parent().hide(); } }else if (data[x] != '') { $("#tab_card_"+x).text(data[x]); }else{ $("#tab_card_"+x).parent().hide(); } } $(".window-content").addClass('on-talking');//显示客服名片 } } //显示对话框自定义格式的内容 function display_talk_msg(msg){ $(".pc_talk_content").append(msg); basic.scrollPage(); } //显示系统消息 function display_sys_msg(msg,type){ var show_msg = ''; if (type == 'wait') {//系统提示:人工客服接入中... show_msg = '<p class="system-remind system-wait"><label>'+langs[74]+'</label></p>'; }else if (type == 'no_kf') { if(robot_runkf_fail_msg!=''&&robot_runkf_fail_msg!=undefined){//机器人转人工失败话术 show_msg = '<div class="system-remind"><label>'+robot_runkf_fail_msg+'</label></div>'; }else{ //由于当前人工客服不在线,你可以选择 给我们留言 show_msg = '<p class="system-remind"><label>'+langs[75]+'<a class="color-blue" style="cursor:pointer;"onclick="showLword()">'+langs[10]+'</a></label></p>'; } }else if (type == 'cannot_answer') {//机器人超过两次无法回答访客的问题,给予系统提示 //很抱歉我们的机器人无法回答您的问题,你可以选择 人工咨询 或 给我们留言 if (zsk_admit_rule == '2') { show_msg = '<p class="system-remind"><label>'+langs[7]+'<a class="color-blue" style="cursor:pointer;"onclick="showLword()">'+langs[10]+'</a></label></p>'; }else{ show_msg = '<p class="system-remind"><label>'+langs[7]+'<a class="color-blue" style="cursor:pointer;" onclick="robotToTalk();">'+langs[8]+'</a>'+langs[9]+'<a class="color-blue" style="cursor:pointer;"onclick="showLword()">'+langs[10]+'</a></label></p>'; } }else{ show_msg = '<div style="min-height: 30px;font-size:12px" class="system-remind a1"><div>'+msg+'</div></div>'; } $(".pc_talk_content").append(show_msg); basic.scrollPage(); } //知识空间匹配图文访客口吻 function getNewImgText_fk(now_match){ return '<div style="height:88px;width: 248px;padding-right: 30px;margin:6px 0 "><a class="pc_ptlink_notice_new" target="_blank" href="'+now_match.event_data+'" style="width: 248px;border:1px solid #D8DFEA;border-radius: 4px;background-color: #fff;height:102px;max-width: 512px;float: left;padding: 8px;position: relative;cursor: pointer;text-decoration: none"><div style="width:72px;height: 72px;float: left;"><img src="'+now_match.img_url+'" alt="" style="pointer-events:none;width: 100%;height:100%;"></div><div class="pc_ptlink_notice_text" style=" display: flex;flex-direction: column;height: 86px;padding-left: 8px;"><p class="pc_ptlink_title" style="width:100%;font-size:14px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color:#28334B;">'+now_match.card_title+'</p><p class="pc_ptlink_price" style="color:#8DA2B5;overflow: hidden;text-overflow: ellipsis; display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;font-size:12px;height: 32px;margin-bottom:8px">'+now_match.card_intr+'</p><div><p class="pc_ptlink_price" style="float:left;max-width:100px;color:#ED5A07;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size:12px;line-height: 24px;">'+now_match.card_notes+'</p></div></div></a></div>' } //知识空间匹配图文 function getNewImgText(now_match){ var media_args = ''; if(now_match.event_type == 'link' && now_match.event_link_medium == 1 && medium_args!=''){//跳转类型是链接,且开启了媒体参数自动拼接 if(now_match.event_data.indexOf('?')>-1){ media_args = '&'+medium_args; }else{ media_args = '?'+medium_args; } } var matchlink = '' if(now_match.event_data){ matchlink = 'href="'+now_match.event_data+media_args+'"' } return '</br><div style="height:88px;width: 248px;padding-right: 30px;margin:6px 0 "><a class="pc_ptlink_notice_new" target="_blank" '+matchlink+' style="width: 248px;border:1px solid #D8DFEA;border-radius: 4px;background-color: #fff;height:102px;max-width: 512px;float: left;padding: 8px;position: relative;cursor: pointer;text-decoration: none"><div style="width:72px;height: 72px;float: left;"><img src="'+now_match.img_url+'" alt="" style="pointer-events:none;width: 100%;height:100%;"></div><div class="pc_ptlink_notice_text" style=" display: flex;flex-direction: column;height: 86px;padding-left: 8px;"><p class="pc_ptlink_title" style="width:100%;font-size:14px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color:#28334B;">'+now_match.card_title+'</p><p class="pc_ptlink_price" style="color:#8DA2B5;overflow: hidden;text-overflow: ellipsis; display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;font-size:12px;height: 32px;margin-bottom:8px">'+now_match.card_intr+'</p><div><p class="pc_ptlink_price" style="float:left;max-width:100px;color:#ED5A07;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size:12px;line-height: 24px;">'+now_match.card_notes+'</p></div></div></a></div>' } //知识空间匹配图文抽屉 function getNewImgText_drawer(now_match){ var media_args = ''; if(now_match.event_type == 'link' && now_match.event_link_medium == 1 && medium_args!=''){//跳转类型是链接,且开启了媒体参数自动拼接 if(now_match.event_data.indexOf('?')>-1){ media_args = '&'+medium_args; }else{ media_args = '?'+medium_args; } } var matchlink = '' if(now_match.event_data){ matchlink = 'href="'+now_match.event_data+media_args+'"' } return '</br><div style="height:88px;width: 248px;padding-right: 30px;margin:6px 0 1"><a class="pc_ptlink_notice_new" target="_blank" '+matchlink+' style="width: 248px;border:1px solid #D8DFEA;border-radius: 4px;background-color: #fff;height:102px;max-width: 512px;float: left;padding: 8px;position: relative;cursor: pointer;text-decoration: none"><div style="width:72px;height: 72px;float: left;"><img src="'+now_match.img_url+'" alt="" style="pointer-events:none;width: 100%;height:100%;"></div><div class="pc_ptlink_notice_text" style=" display: flex;flex-direction: column;height: 86px;padding-left: 8px;"><p class="pc_ptlink_title" style="width:100%;font-size:14px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color:#28334B;">'+now_match.card_title+'</p><p class="pc_ptlink_price" style="color:#8DA2B5;overflow: hidden;text-overflow: ellipsis; display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;font-size:12px;height: 32px;margin-bottom:8px">'+now_match.card_intr+'</p><div><p class="pc_ptlink_price" style="float:left;max-width:100px;color:#ED5A07;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size:12px;line-height: 24px;">'+now_match.card_notes+'</p><div style="display: flex;height: 24px;padding: 6px 12px;flex-direction: column;justify-content: center;align-items: center;border-radius: 48px;border: 1px solid #218BFC;background: #FFF;box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02);float:right;cursor: pointer;color:#218BFC;font-family: PingFang SC;font-size: 12px;font-weight: 400;" data='+JSON.stringify(now_match)+' onclick="sendknowledgeImgText_drawer(event)">发送</div></div></div></a></div>' } //知识空间图文抽屉发送 function sendknowledgeImgText_drawer(e){ var data = e.target.getAttribute('data') console.log(data) var msg = '[image-text]'+data+'[/image-text]' e.preventDefault() sendmsg(msg,true) } //显示机器人知识空间匹配图文 function display_robot_NewImgText(q_id, answer, matches ,type){//matches:筛选出的匹配数组 type:是否是抽屉 changeUpDownMsg(setupFilter(UBBCode(UBBEncode(answer))))//获取上下文 var msg_time = getTime2(); var msg_btns=auto_msg_handle(answer); for(var i=0;i<matches.length;i++){ console.log(matches[i]) var now_match = JSON.parse(matches[i].replace(/\[image-text\]/g, "").replace(/\[\/image-text\]/g, "")) var match_html if(type){ match_html = getNewImgText_drawer(now_match) }else{ match_html = getNewImgText(now_match) } answer = answer.replace(matches[i], match_html) } //机器人消息微信号格式 if(answer.presentation){ answer.presentation = answer.presentation.replace(/\[rbt_wechat\]/g,'').replace(/\[\/rbt_wechat\]/g,'') }else if(typeof answer == 'string'){ answer = answer.replace(/\[rbt_wechat\]/g,'').replace(/\[\/rbt_wechat\]/g,'') } if(q_id != '0'){ var html = ''; var msg = '<div class="pc-service"><div class="pc-service-left" style="display: inline-block;"><img src="'+zsk_zsktb_url+'" alt="'+langs[11]+'"></div><div class="pc-service-right"><p><label>'+zsk_name+'</label><span>'+msg_time+'</span></p><div class="pc-service-info pc-robot-info"><div class="pc-robot-answer" id="'+q_id+'" style="overflow-x:auto;">'+answer+'</div>'; if(cloud_robot_feedback == 1 || (task_robot_use != 1 && zsk_feedback == '1')) msg += '<div class="pc-robot-eval"><p class="user-unuser"><a class="user answer_helpful buttonType2" data-value="4">'+langs[35]+'</a><a class="unuser buttonType2">'+langs[36]+'</a></p><div class="df"><p>'+langs[37]+'</p><ul><li data-value="0">'+langs[38]+'</li><li data-value="1">'+langs[39]+'</li><li data-value="2">'+langs[40]+'</li><li class="otherOption" data-value="3">'+langs[41]+'</li></ul><div class="triangleUp"></div></div></div>'; msg += html+'</div>'+msg_btns+'</div></div>'; }else{ var html = ''; var msg = '<div class="pc-service"><div class="pc-service-left" style="display: inline-block;"><img src="'+zsk_zsktb_url+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><p><label>'+zsk_name+'</label><span>'+msg_time+'</span></p><div class="pc-service-info"><div style="overflow-x:auto;">'+answer+'</div>'+html+'</div>'+msg_btns+'</div></div>'; } $(".pc_talk_content").append(msg); basic.scrollPage(); } //显示机器人答案 function display_robot_answer(q_id, answer, rela_ques,hots_info){ changeUpDownMsg(setupFilter(UBBCode(UBBEncode(answer))))//获取上下文 var msg_time = getTime2(); var msg_btns=auto_msg_handle(answer); if(answer.indexOf('[image-text]')>-1){//匹配知识空间图文 var regex = /\[image-text\](.*?)\/image-text\]/g; var matches = answer.match(regex); for(var i=0;i<matches.length;i++){ var now_match = JSON.parse(matches[i].replace(/\[image-text\]/g, "").replace(/\[\/image-text\]/g, "")) var match_html = getNewImgText(now_match) answer = answer.replace(matches[i], match_html) } } //机器人消息微信号格式 answer = answer.replace(/\[rbt_wechat\]/g,'').replace(/\[\/rbt_wechat\]/g,'') if(q_id != '0'){ var html = ''; if(rela_ques != ''){ html += '<div class="question-lists"><p>'+langs[34]+'</p><ul class="questions">';//相关问题: for(var i=0;i<rela_ques.length;i++){ html += '<li onmouseup="this.style.color=\'#62778C\'" onclick="dealRobotQa(\''+rela_ques[i].id+'\', \''+rela_ques[i].question.replace(/\'/g,"\\\'")+'\',\''+rela_ques[i].answer+'\')">'+rela_ques[i].question+'</li>'; } html += '</ul></div>'; } var msg = '<div class="pc-service"><div class="pc-service-left" style="display: inline-block;"><img src="'+zsk_zsktb_url+'" alt="'+langs[11]+'"></div><div class="pc-service-right"><p><label>'+zsk_name+'</label><span>'+msg_time+'</span></p><div class="pc-service-info pc-robot-info"><div style="overflow-x:auto;" class="pc-robot-answer" id="'+q_id+'">'+answer+'</div>'; if (cloud_robot_feedback == 1 || (task_robot_use != 1 && zsk_feedback == '1')) msg += '<div class="pc-robot-eval"><p class="user-unuser"><a class="user answer_helpful" data-value="4">'+langs[35]+'</a><a class="unuser">'+langs[36]+'</a></p><div class="df"><p>'+langs[37]+'</p><ul><li data-value="0">'+langs[38]+'</li><li data-value="1">'+langs[39]+'</li><li data-value="2">'+langs[40]+'</li><li class="otherOption" data-value="3">'+langs[41]+'</li></ul><div class="triangleUp"></div></div></div>'; msg += html+'</div>'+msg_btns+'</div></div>'; }else{ var html = ''; if (hots_info != undefined && hots_info != '') { html += '<div class="question-lists"><ul class="questions">'; //相关问题: for(var i=0;i<hots_info.length;i++){ html += '<li style="cursor: pointer; color: #1F8CEB; line-height: 24px; font-size: 13px; height: 24px; max-width: 427px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" onmouseup="this.style.color=\'#62778C\'" onclick="dealRobotQa(\''+hots_info[i].id+'\', \''+hots_info[i].question.replace(/\'/g,"\\\'")+'\',\''+hots_info[i].answer+'\')">'+(i+1)+'.'+hots_info[i].question+'</li>'; } html += '</ul></div>'; } var msg = '<div class="pc-service"><div class="pc-service-left" style="display: inline-block;"><img src="'+zsk_zsktb_url+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><p><label>'+zsk_name+'</label><span>'+msg_time+'</span></p><div class="pc-service-info"><div style="overflow-x:auto;">'+answer+'</div>'+html+'</div>'+msg_btns+'</div></div>'; } $(".pc_talk_content").append(msg); basic.scrollPage(); } //获取机器人其他类型的dom内容 function get_robot_type_html(q_id,answer,type,is_kf){ if(is_kf){ answer = JSON.parse(answer) if(type=='X'){ type='option' }else if(type=='K'){ type='card' }else if(type=='Q'){ type='form' } } var msg = ''; //option和new_option展示底下QQ微信手机按钮auto_msg_handle var msg_btns = ''; if(type=='option'||type=='new_option'){ msg_btns=auto_msg_handle(answer.presentation); } answer.presentation = answer.presentation.replace(/\[rbt_wechat\]/g,'').replace(/\[\/rbt_wechat\]/g,''); if(type=='option'){//选项 var title = '<div style="overflow-x:auto;font-size:14px">'+answer.presentation+'</div>'+msg_btns; var list_content = ""; $.each(answer.info, function (i, v) { var list_str = ""; list_str = '<div class="form_list_input" '+(q_id=='from_ghqst'?'':is_kf ?'onclick="clickKfList(this)"':'onclick="clickTastList(this)"')+' data-id="'+v.id+'">'+(i+1)+'.<span>'+v.content+'</span></div>'; list_content += list_str; }); msg ='<div class="pc-robot-othertype-answer" data-id="'+q_id+'">'+title+'<div class="form_list_box">' + list_content + '</div></div>'; }else if(type=='new_option'){//新选项,机器人场景选择 var title = '<div style="overflow-x:auto;font-size:14px">'+answer.presentation+'</div>'; msg ='<div class="pc-robot-othertype-answer" data-id="'+q_id+'">'+title+'</div>'+msg_btns; }else if(type=='card'){//卡片 var title = '<div style="overflow-x:auto;font-size:14px;margin-bottom:4px;">'+answer.presentation+'</div>'; var list_content = ""; $.each(answer.cards, function (i, v) { var list_str = ""; list_str = '<li class="robot-card-list-item" data-id="'+v.id+'" '+(v.card_url?'onclick="window.open(\''+v.card_url+'\',\'_blank\')"':'')+(v.card_url?'style="cursor: pointer"':'')+'>'; list_str += '<img src="'+v.img_url+'" />'; list_str += '<div class="robot-card-list-item-right">'; list_str += '<p class="rcli-right-title">'+v.title+'</p>'; list_str += (v.state1==''?'':'<div class="rcli-right-explain">'+v.state1+'</div>'); list_str += (v.state2==''?'':'<div class="rcli-right-explain">'+v.state2+'</div>'); list_str += ((v.price==''&&v.size=='')?'':'<div class="rcli-right-bottom">'+(v.price?('<span class="rcli-right-bottom-price">'+v.price+'</span>'):'')+'<span class="rcli-right-bottom-norms">'+v.size+'</span></div>'); list_str += '</div></li>'; list_content += list_str; }); msg ='<div class="pc-robot-othertype-answer" data-id="'+q_id+'">'+title+'<ul class="robot-card-list">' + list_content + '</ul></div>'; }else if(type=='form'){//表格 var title = '<div class="robot-table-title">'+answer.presentation+'</div>'; var list_content = ""; $.each(answer.info, function (i, v) { var list_str = ""; list_str = '<div class="robot-table-content-item" data-id="'+v.id+'"><span>'+v.content+'</span></div>'; list_content += list_str; }); msg = '<div class="pc-robot-othertype-answer" style="background:#ffffff;border-radius: 4px;" data-id="'+q_id+'">'+title+'<div class="robot-table-content">'+list_content+'</div>'+'</div>'; } return msg; } var robot_drawer_cards = [];//显示机器人抽屉模式的答案集 //显示其他类型的机器人答案(选项,卡片,抽屉,表格) function display_robot_answer_othertype(q_id, answer, answer_type, rela_ques, answer_time, head_url) { if(answer.presentation){ answer.presentation = robotMsgReplace(answer.presentation); } if(answer_type=='drawer'){//抽屉 var html = '<div class="robot-drawer-box"><div class="robot-drawer-bg" onclick="$(this).parent().remove()"></div>'; html+='<div class="robot-drawer-drawer"><div class="robot-drawer-header"><span class="robot-drawer-title">'+answer.presentation+'</span><span class="robot-drawer-close" onclick="$(this).parents(\'.robot-drawer-box\').remove()">×</span></div>'; var list_content = ""; robot_drawer_cards = answer; $.each(answer.cards, function (i, v) { var list_str = ""; list_str = '<li class="robot-card-list-item drawer-item" data-id="'+v.id+'" '+(v.card_url?'onclick="getRobotReply_drawer('+v.id+')"':'')+(v.card_url?' style="cursor: pointer"':'')+'>'; list_str += '<img src="'+v.img_url+'" />'; list_str += '<div class="robot-card-list-item-right">'; list_str += '<p class="rcli-right-title">'+v.title+'</p>'; list_str += (v.state1==''?'':'<div class="rcli-right-explain">'+v.state1+'</div>'); list_str += (v.state2==''?'':'<div class="rcli-right-explain">'+v.state2+'</div>'); list_str += ((v.price==''&&v.size=='')?'':'<div class="rcli-right-bottom">'+(v.price?('<span class="rcli-right-bottom-price">'+v.price+'</span>'):'')+'<span class="rcli-right-bottom-norms">'+v.size+'</span></div>'); list_str += '</div></li>'; list_content += list_str; }); html+='<ul class="robot-card-list" style="padding: 0 16px">' + list_content + '</ul>'; html+='</div></div>'; $('.robot-drawer-box').remove(); $('.pc-visitor-main').append(html); }else{ //不执行changeUpDownMsg,这些类型的机器人答案不再存入上下文 var msg_time = answer_time?answer_time:getTime2(); //option和new_option展示底下QQ微信手机按钮auto_msg_handle var html = ''; if(rela_ques != ''){ html += '<div class="question-lists"><p>'+langs[34]+'</p><ul class="questions">';//相关问题: for(var i=0;i<rela_ques.length;i++){ html += '<li onmouseup="this.style.color=\'#62778C\'" onclick="dealRobotQa(\''+rela_ques[i].id+'\', \''+rela_ques[i].question.replace(/\'/g,"\\\'")+'\',\''+rela_ques[i].answer+'\')">'+rela_ques[i].question+'</li>'; } html += '</ul></div>'; } var outside_html = '' if(answer_type=='new_option'&&answer.info.length>0){ var new_option_item = ''; for(var i=0;i<answer.info.length;i++){ new_option_item+='<div class="form_option_btn white_btn" onclick="clickTaskOption(0,this)">'+answer.info[i].content+'</div>' } outside_html = '<div class="form_btn_box">'+new_option_item+'</div>'; } var content_html = get_robot_type_html(q_id,answer,answer_type); var msg = '<div class="pc-service"><div class="pc-service-left" style="display: inline-block;"><img src="'+(head_url?head_url:zsk_zsktb_url)+'" alt="'+langs[11]+'"></div><div class="pc-service-right"><p><label>'+zsk_name+'</label><span>'+msg_time+'</span></p><div class="pc-service-info pc-robot-info">'+content_html; if(q_id!='from_ghqst'){ if(cloud_robot_feedback == 1 || (task_robot_use != 1 && zsk_feedback == '1')) msg += '<div class="pc-robot-eval"><p class="user-unuser"><a class="user answer_helpful buttonType2" data-value="4">'+langs[35]+'</a><a class="unuser buttonType2">'+langs[36]+'</a></p><div class="df"><p>'+langs[37]+'</p><ul><li data-value="0">'+langs[38]+'</li><li data-value="1">'+langs[39]+'</li><li data-value="2">'+langs[40]+'</li><li class="otherOption" data-value="3">'+langs[41]+'</li></ul><div class="triangleUp"></div></div></div>'; } msg += html+'</div></div></div>'+outside_html; $(".pc_talk_content").append(msg); basic.scrollPage(); } } //显示客服消息 function display_kf_msg(msg,talkname,style,msg_time,msgid,type,iskflogo,is_hyy,msg_type){ if (talkname == undefined) talkname = obj_name; if (talkname == '') talkname = langs[45];//客服 if (style == undefined) style = "color:"+color_kfxx+";background-color:"+color_kfqp+";"; if (msg_time == undefined) msg_time = getTime2(); if (msgid == undefined || msgid == ''){ msgid = ''; }else{ msgid = 'id="'+msgid+'"'; } var qrcode_str = ''; if (qrcode_url != '') { qrcode_str = '<span class="qr_code_53kf"><span class="qr_box_53kf"><span class="qr_img_53kf"><img src="'+qrcode_url+'" alt=""></span><em>'+langs[80]+'</em></span></span>'; } if(lnkover==1 || lnkover==4 || lnkover==6 || lnkover==7){ var msg_btns=auto_msg_handle(msg); }else{ var msg_btns=''; } var kf_logo_class = iskflogo ? ' kf_logo' : ''; var hyy_background = '' if(is_hyy){ hyy_background = 'background:'+conn_prompt_bgcolor; } var msg_content = '<div style="overflow-x:auto;">'+msg+'</div>' if(msg_type == 'X'|| msg_type == 'K'|| msg_type == 'Q'){ msg_content = get_robot_type_html(msgid,msg,msg_type,true) } var show_msg = '<div class="pc-service'+kf_logo_class+'" '+msgid+'><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><p><label>'+talkname+'</label><span>'+msg_time+'</span>'+qrcode_str+'</p><div class="pc-service-info" style="'+style+hyy_background+'">'+msg_content+'</div>'+msg_btns+'</div></div>'; if (type == 'offline') {//离线消息 $('.pc_talk_content').children('#talk_pos').last().before(show_msg); }else if (type == 'last') {//历史记录 if($('.tips_up_lastmsg').length>0){ var tips_up_lastmsg = ''; }else{ var tips_up_lastmsg = '<div class="tips_up_lastmsg"><label>'+langs[70]+'</label></div>'; } // $(".pc_talk_content").html(show_msg+tips_up_lastmsg+$(".pc_talk_content").html()); $(".pc_talk_content").prepend(show_msg+tips_up_lastmsg) // $('.show_history').after(show_msg+tips_up_lastmsg); }else{ $(".pc_talk_content").append(show_msg); } //处理二维码的hover if (qrcode_url != '') { $(".pc-service-right").on("mouseover",".qr_code_53kf",function(){ $(this).find(".qr_box_53kf").css("display","block") var offsetTop = $(this).offset().top; var $insertEm = $(this).find(".qr_box_53kf em"),$insertImg = $(this).find(".qr_img_53kf"); if(offsetTop<185){ $(this).find(".qr_box_53kf").css("bottom","-126px"); $insertImg.insertAfter($insertEm); $insertEm.css("margin-top","5px"); }else{ $(this).find(".qr_box_53kf").css("bottom","21px"); $insertEm.insertAfter($insertImg); $insertImg.css("margin-top",0); $insertEm.css("margin-top",0); } }) $(".pc-service-right").on("mouseout",".qr_code_53kf",function(){ $(this).find(".qr_box_53kf").css("display","none") }) } if(type!='last'){ basic.scrollPage(); } } //显示访客消息 function display_fk_msg(msg,fk_msgid,msg_time,type,NewKnowledge_id){ if (fk_msgid == undefined) { var fk_msgid_str = ''; }else{ var fk_msgid_str = ' id="'+fk_msgid+'" class="info-status"'; } if (msg_time == undefined) msg_time = getTime2(); if(msg.indexOf('[image-text]')>-1){//匹配知识空间图文 var regex = /\[image-text\](.*?)\/image-text\]/g; var matches = msg.match(regex); for(var i=0;i<matches.length;i++){ var _newMatch = matchKnowledgeImgText_fk(matches[i])//兼容历史消息从移动端到访客端 var now_match = JSON.parse(_newMatch.replace(/\[image-text\]/g, "").replace(/\[\/image-text\]/g, "")) var match_html = getNewImgText(now_match) msg = msg.replace(matches[i], match_html) } } var idHtml = '' if(NewKnowledge_id){ idHtml = 'id="'+NewKnowledge_id+'"' } var show_msg = '<div class="pc-customer"><p><label>'+langs[49]+'</label><span>'+msg_time+'</span></p><div class="pc-customer-info" style="background-color:'+color_fkqp+';"><div class="textWrap" '+idHtml+' style="color:'+color_fkxx+';">'+msg+'</div><i'+fk_msgid_str+'></i></div></div>'; if (type == 'last') { if($('.tips_up_lastmsg').length>0){ var tips_up_lastmsg = ''; }else{ var tips_up_lastmsg = '<div class="tips_up_lastmsg"><label>'+langs[70]+'</label></div>'; } // $('.show_history').after(show_msg+tips_up_lastmsg); $(".pc_talk_content").prepend(show_msg+tips_up_lastmsg) // $(".pc_talk_content").html(show_msg+$(".pc_talk_content").html()); }else{ $(".pc_talk_content").append(show_msg); } if(type!='last'){ basic.scrollPage(); }else{//历史记录定位 } setQstResTimer(fk_msgid); } //显示访客信息(抽屉) function display_fk_msg_drawer(answer,msg_time) { if (msg_time == undefined) msg_time = getTime2(); var list_content = ""; var list_str = ""; list_str = '<li class="robot-card-list-item" data-id="'+answer.id+'" '+(answer.card_url?'onclick="window.open(\''+answer.card_url+'\',\'_blank\')"':'')+(answer.card_url?'style="cursor: pointer"':'')+'>'; list_str += '<img src="'+answer.img_url+'" />'; list_str += '<div class="robot-card-list-item-right">'; list_str += '<p class="rcli-right-title">'+answer.title+'</p>'; list_str += (answer.state1==''?'':'<div class="rcli-right-explain">'+answer.state1+'</div>'); list_str += (answer.state2==''?'':'<div class="rcli-right-explain">'+answer.state2+'</div>'); list_str += ((answer.price==''&&answer.size=='')?'':'<div class="rcli-right-bottom">'+(answer.price?('<span class="rcli-right-bottom-price">'+answer.price+'</span>'):'')+'<span class="rcli-right-bottom-norms">'+answer.size+'</span></div>'); list_str += '</div></li>'; list_content += list_str; var msg ='<ul class="robot-card-list">' + list_content + '</ul>'; var show_msg = '<div class="pc-customer"><p><label>'+langs[49]+'</label><span>'+msg_time+'</span></p><div class="pc-customer-info" style="background-color:'+color_fkqp+';">'+msg+'</div></div>'; $(".pc_talk_content").append(show_msg); basic.scrollPage(); } //知识空间图文公告信息 function diaplay_newImageText_msg(msg){ if(msg.img_url != "" && msg.card_title != "" && msg.card_intr != "" && msg.card_notes != ""){ var msg_html = '<div class="newknowledgeImgText" style="height:88px;width: calc(100% - 250px);position: fixed;padding-right: 30px;z-index: 99;top: 285px;"><div class="pc_ptlink_notice" style="width: 100%;border:1px solid #D8DFEA;border-radius: 4px;background-color: #fff;height:88px;max-width: 512px;float: left;padding: 8px;position: relative;"><div style="width:72px;height: 72px;float: left;"><img src="'+msg.img_url+'" alt="" style="pointer-events:none;width: 100%;height:100%;"></div><div class="pc_ptlink_notice_text" style=" display: flex;flex-direction: column;height: 68px;padding-left: 8px;"><p class="pc_ptlink_title" style="width:100%;margin-bottom: 2px;font-size:14px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color:#28334B;">'+msg.card_title+'<span class="icon iconfont icon-Close1" onclick="hide_ImageTextMsg()" style="color: #869AB3;float:right;cursor: pointer;"></span></p><p class="pc_ptlink_price" style="color:#8DA2B5;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size:12px;line-height: 20px;margin-bottom:2px">'+msg.card_intr+'</p><div><p class="pc_ptlink_price" style="float:left;max-width:100px;color:#ED5A07;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size:12px;line-height: 24px;">'+msg.card_notes+'</p><div style="display: flex;height: 24px;padding: 6px 12px;flex-direction: column;justify-content: center;align-items: center;border-radius: 48px;border: 1px solid #218BFC;background: #FFF;box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02);float:right;cursor: pointer;color:#218BFC;font-family: PingFang SC;font-size: 12px;font-weight: 400;" onclick="sendknowledgeImgText()"">发送</div></div></div></div></div>'; $(".pc_talk_content").append(msg_html); basic.scrollPage(); } } //发送知识空间图文 function sendknowledgeImgText(){ console.log(JSON.stringify(now_knowledgeImgText)) var msg = '[image-text]'+JSON.stringify(now_knowledgeImgText)+'[/image-text]' sendmsg(msg,true) $(".pc_ptlink_notice").css('display','none') $(".newknowledgeImgText").css('display','none') } //显示图文公告信息 function diaplay_cinfo_msg(msg){ if(msg.logo != "" && msg.title != "" && msg.content != "" && msg.curl != ""){ var msg_html = '<div style="height:88px;width: calc(100% - 250px);position: fixed;padding-right: 30px;z-index: 999;top: 285px;"><div class="pc_ptlink_notice" style="width: 100%;border:1px solid #D8DFEA;border-radius: 4px;background-color: #fff;height:88px;max-width: 512px;float: left;padding: 8px;position: relative;"><div style="width:72px;height: 72px;float: left;"><img src="'+msg.logo+'" alt="" style="pointer-events:none;width: 100%;height:100%;"></div><div class="pc_ptlink_notice_text" style=" display: flex;flex-direction: column;height: 68px;padding-left: 8px;"><p class="pc_ptlink_title" style="width:100%;margin-bottom: 2px;font-size:14px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color:#28334B;">'+msg.title+'<span class="icon iconfont icon-Close1" onclick="hide_ImageTextMsg()" style="color: #869AB3;float:right;cursor: pointer;"></span></p><p class="pc_ptlink_price" style="color:#8DA2B5;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size:12px;line-height: 20px;margin-bottom:2px">'+msg.content+'</p><div><div style="display: flex;height: 24px;padding: 6px 12px;flex-direction: column;justify-content: center;align-items: center;border-radius: 48px;border: 1px solid #218BFC;background: #FFF;box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02);float:right;cursor: pointer;color:#218BFC;font-family: PingFang SC;font-size: 12px;font-weight: 400;" onclick="sendCinfo()"> 发送</div></div></div></div></div>'; $(".pc_talk_content").append(msg_html); basic.scrollPage(); } } function hide_ImageTextMsg(){ $(".pc_ptlink_notice").css('display','none') $(".newknowledgeImgText").css('display','none') } //获取图文消息模板 function getCinfoHtml(logo,title,content,curl){ var html_str = ''; if(logo != "" && title != "" && content != "" && curl != ""){ html_str = '<div class="pc_ptlink_bubble" onclick="window.open(\''+curl+'\',\'_blank\')" style="width: 230px;background-color: #fff;height:68px;box-sizing:border-box; padding:10px;"><div style="width: 48px;height: 48px; float: left;"><img src="'+logo+'" alt="" style="pointer-events:none; width: 100%;height:100%;"></div><div class="pc_ptlink_bubble_text" style="margin-left: 10px;float: left;height: 48px;width: 150px;"><p class="pc_ptlink_title" style="width:100%;margin-bottom: 10px;font-size: 12px ;line-height: 18px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color:#28334B;">'+title+'</p><p class="pc_ptlink_price" style="color:#F44024;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size:12px;line-height: 20px">'+content+'</p></div></div>'; } return html_str; } //显示收到文件消息 function display_fil_msg(name,url,sid,jid6d,type,file_cancel_id,size){//44 未知 68 下载 14 上传成功 if(company_id==72177773) { var autoplay="autoplay='autoplay'"; }else { var autoplay=""; } if (file_cancel_id != undefined && file_cancel_id != '') { file_cancel_id = 'id="'+file_cancel_id+'"'; }else{ file_cancel_id = ''; } if (size != undefined && size != '') { size = size>1024? Math.floor(size/1024)>1024? Math.floor(size/1024/1024)+"M":Math.floor(size/1024)+"KB":Math.floor(size)+"B"; }else{ size = langs[44]; } if (sid == obj_id || sid == jid6d) {//收到客服发送 if(type=='video' && !(!!window.ActiveXObject&&document.documentMode==8)){ var msg = '<div class="pc-service file_cancel" '+file_cancel_id+'><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><div class="upload-wrap kf-uploadFile" >'+'<div class="upload-file fl" style="width:340px;">'+'<video '+autoplay+' class="upload-video" style="background-color:black;width:320px;height:240px;" src="'+url+'" controls="controls">抱歉,您的浏览器不支持视频播放</video></div>'+ '</div>'+'</div></div></div>'; }else if(type=='audio' && !(!!window.ActiveXObject&&document.documentMode==8)){ var msg = '<div class="pc-service file_cancel" '+file_cancel_id+'><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><div class="upload-wrap kf-uploadFile" style="width:262px;">'+'<div class="upload-file fl" style="width:262px;">'+'<audio class="upload-audio" '+autoplay+' style="background-color:white;width:250px;height:55px;margin-left:-5px;" src="'+url+'" controls="controls">抱歉,您的浏览器不支持音频播放</audio></div>'+'</div>'+'</div></div></div>'; }else{ var msg = '<div class="pc-service file_cancel" '+file_cancel_id+'><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right"><div class="upload-wrap kf-uploadFile">'+ '<div class="upload-file fl">'+ '<p class="file-header">'+ '<span class="fileName">'+basic.beforeRender(name)+'</span>'+ '<span class="fileSize fr">'+size+'</span>'+ '</p>'+ '<div class="uploadStatus color-blue fr"><a href="'+url+'" target="_blank">'+langs[68]+'</a></div>'+ '<div class="statusIcon"></div>'+ '</div>'+ '</div></div></div>'; } }else{//收到访客发送 if(type=='video' && !(!!window.ActiveXObject&&document.documentMode==8)){ var msg = '<div class="pc-customer"><div class="pc-customer-info" style="background-color:'+minicolor_fkqp+';"><div class="textWrap" style="color:'+minicolor_fkxx+';"><video class="upload-video" '+autoplay+' style="background-color:black;width:320px;height:240px;" controls="controls" src='+url+'></video></div></div></div>'; }else if(type=='audio' && !(!!window.ActiveXObject&&document.documentMode==8)){ var msg = '<div class="pc-customer"><div class="pc-customer-info" style="width:262px;"><div class="textWrap" style="color:white;width:262px;"><audio class="upload-audio" '+autoplay+' style="width:250px;height:55px;margin-left:-2px;" controls="controls" src='+url+'></audio></div></div></div>'; }else{ var msg = '<div class="upload-wrap kf-uploadFile">'+ '<div class="upload-file fr">'+ '<p class="file-header">'+ '<span class="fileName">'+basic.beforeRender(name)+'</span>'+ '<span class="fileSize fr">'+size+'</span>'+ '</p>'+ '<div class="uploadStatus color-blue fr"><a href="'+url+'" target="_blank">'+langs[68]+'</a></div>'+ '<div class="statusIcon"></div>'+ '</div>'+ '</div>'; } } display_talk_msg(msg); } // 场景引导表单输出 function display_scene_form(obj,id,num){ var step_id = 'scene_'+id+'_'+num; var form_str="",input_str="",form_box=""; // 获取场景引导表单结构 form_box = ""; $.each(obj,function(x,y){ // 英文兼容 var placeholderStr = y.name =='name' ? langs[100] : y.name =='phone' ? langs[101] : y.name =='wechat' ? langs[104] : y.name =='qq' ? langs[98] : y.name =='address' ? langs[102] : y.name =='email' ? langs[103] : y.name == 'card' ? langs[106] : y.bname; if(y.name == 'phone'){ var check = y.is_check == 1 ? ' ischeck' : ''; form_str = '<div class="from_box form_'+y.name+check+'"><input class="from_input input_'+y.name+'" type="text" placeholder="'+placeholderStr+'"/><div class="phone_ver_code" onclick ="formVerCode(this)">'+langs[87]+'</div></div>'; }else{ form_str = '<div class="from_box form_'+y.name+'"><input class="from_input input_'+y.name+'" type="text" placeholder="'+placeholderStr+'"/></div>'; } form_box += form_str; }) var msg_time = getTime2(); var form_msg = '<div class="pc-service"><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><p><label>'+admin_bname+'</label><span>'+msg_time+'</span></p><div class="pc-service-info guide_form"><div style="overflow-x:auto;"><div id="'+step_id+'" class="reception_talk_info guide_f">'+form_box+'<span class="blue_btn form_send" onclick ="formSend('+id+','+num+',this)">'+langs[105]+'</span></div></div></div></div></div>' $(".pc_talk_content").append(form_msg); basic.scrollPage(); }; // 场景引导按钮输出 function display_scene_option(obj,id,num){ var step_id = 'scene_'+id+'_'+num; var step = id+'-'+num; var option_content = ""; $.each(obj,function(i,v){ var btn_str = ""; var btn_step = step+'-'+i; btn_str = '<div class="form_option_btn white_btn" onclick="chooseCard(\''+v.point+'\',\''+btn_step+'\',this)">'+v.name+'</div>' option_content += btn_str; }); $(".pc_talk_content").append("<div id='"+step_id+"' class='form_btn_box'>"+option_content+"</div>"); basic.scrollPage(); } </script> </body> <script type="text/javascript" src="js/crypto/crypto-js.js" defer></script> <script src="min/?g=.js?newkh_2024092701" type="text/javascript"></script> <script type="text/javascript"> /* * @Author: star * @Date: 2019-09-17 17:28:37 * @Last Modified by: star * @Last Modified time: 2019-09-25 15:02:57 */ /* ------------------------ 互动菜单开始 ------------------------ */ // 记录下menu的渲染type和操作节点。一级菜单为空,二级菜单则记录下进入二级菜单的入口ID(这两个变量仅解决浮动窗口的兼容问题) var menu_sgin_obj = { menu_type : 1, menu_id:'', menu_idx:'' }; var is_robot_menu = false //是否是机器人互动菜单 function MenuLoop(){ // rem为单位的内容高度 this.content_bottom = parseInt($(".talk-content-wrap").css("padding-bottom"))/10; this.data_menu = []; this.initFlag = true; this.isRender = true; }; // MenuLoop.prototype = { init:function(data){ if(data.length == 0) return false; if(this.initFlag){ this.initFlag = false; is_robot_menu = false; // 数据 this.data_menu = $.extend(true, [], data); // 添加类表示有多级菜单 $(".talk").addClass("hasMenuLoop"); // 浮动窗口特殊处理电话回呼的高度 if(company_tpl == "minichat"){ // 是否开启网络回呼 if(net_callBack == 1){ if(mini_size == 1){ $(".talk").addClass("minisize460"); }else{ $(".talk").addClass("minisize400"); } } } $("#scroll_menu_box_by53kf").show(); // 预览渲染(首次进入默认渲染一级菜单,动态生成唯一标识) menu_sgin_obj.menu_type = 1; menu_sgin_obj.menu_id = this.postId(); this.render(1,this.postId()); // 2021.12.21特殊处理预览页的'你好'按钮(44jev55kv) if($(".swiper-container").find(".menu_btn").length === 1){ $(".scroll_body").find(".menu_btn").each(function(index, el) { if($(el).attr("data-idx") == 0 && $(el).html() == '你好' && $(el).attr('data-id') == '44jev55kv'){ var checkBtn = '<div class="fu_fx"><div class="fx" style="display: block;box-sizing: border-box;"><div class="top-right dot dot-pulse"><div class="dot-center"></div></div></div></div>' $(".scroll_body").css("position","absolute").append(checkBtn) } }); } var _this = this; /* 事件绑定 */ // 菜单收起 $("#scroll_menu_box_by53kf").on("click",".menu_close",function(){ $(".scroll_body").animate({width:'0'},200,function(){ $("#scroll_menu").hide(); setTimeout(function(){ $(".menu_open").show(); },10) }); // 内容高度调整 if($('html').hasClass('is_ios11') && $("#mobile").hasClass('newchat_type')){ $(".talk-content-wrap").css("padding-bottom","15.2rem") }else{ $(".talk-content-wrap").css("padding-bottom",(_this.content_bottom)+'rem') } }) // 菜单展开 $("#scroll_menu_box_by53kf").on("click",".menu_open",function(){ $(".menu_open").hide(); $("#scroll_menu").show(); $(".scroll_body").animate({width:'100%'},200); // 内容高度调整 if($('html').hasClass('is_ios11') && $("#mobile").hasClass('newchat_type')){ $(".talk-content-wrap").css("padding-bottom","19.2rem") }else{ $(".talk-content-wrap").css("padding-bottom",(_this.content_bottom+4)+'rem') } }) // 点击菜单按钮 $("#scroll_menu_box_by53kf").on("click",".menu_btn",function(){ // 2021.12.21特殊处理预览页的'你好'按钮 $(".fu_fx").hide(); if($(this).parent().hasClass('menu_up')){ menu_sgin_obj.menu_type = 4; menu_sgin_obj.menu_id = $(this).attr('data-id'); menu_type = 4; _this.render(4,$(this).attr('data-id')) return false; } ; // q是快问 var vMsg = '',cMsg = '',qType = 'q'; // 一级菜单进二级菜单 if($(this).hasClass('icon-Mobilephonemodel-new')){ // 预览渲染(一级进二级渲染) menu_sgin_obj.menu_type = 3; menu_sgin_obj.menu_id = $(this).attr('data-id'); menu_sgin_obj.menu_idx = $(this).attr('data-idx'); menu_type = 3; _this.render(3,$(this).attr('data-id'),$(this).attr('data-idx')); } // 问问题 else{ if($(this).parents('.swiper-container').hasClass('menu_lv1')){ var idx = $(this).attr('data-idx'),actionType = _this.data_menu[idx].type; vMsg = _this.data_menu[idx].name; cMsg = _this.data_menu[idx].content; qType = actionType == "2" ? "k" : "q"; }else{ vMsg = $(this).text(); // k代表快速提问 qType = 'k'; } sendQaMsg(vMsg,qType); if(cMsg != ""){ setTimeout(function(){ // a代表快答 sendQaMsg(cMsg,'a'); }, inertactMenuAnswerTime) } } }) // 二级菜单进一级菜单 $("#scroll_menu_box_by53kf").on("click",".menu_up",function(){ // 预览渲染(二级进一级渲染,动态生成唯一标识) menu_sgin_obj.menu_type = 4; menu_sgin_obj.menu_id = $(this).attr('data-id'); _this.render(4,$(this).attr('data-id')); }) }else{ if(this.data_menu.length > 0){ $("#scroll_menu_box_by53kf").show(); } } }, postId:function (){ return Number(Math.random().toString().substr(3,length) + Date.now()).toString(36); }, // 注册实例 signLoop:function(el){ try{ if(!el) var el = '#scroll_menu_top'; var swiper = new Swiper(el, { slidesPerView: 'auto', speed:200, spaceBetween: 0, pagination: { el: '.swiper-pagination', clickable: true, }, }); }catch(e){} }, // 互动菜单隐藏 menuhide : function(){ // 隐藏互动菜单 if(!is_robot_menu){ $("#scroll_menu_box_by53kf").hide(); // 去除互动菜单相关样式 $(".talk").removeClass("hasMenuLoop"); $(".talk").removeClass("minisize460"); $(".talk").removeClass("minisize400"); // 鼠标移出不可渲染互动菜单(针对浮动窗口移出文档设置) this.isRender = false; } }, // 预览渲染(type参数:1新增,2修改,3一级进二级,4二级返回一级||还原) render:function(type,pid,idx){ var _this = this; if (_this.isRender == false) return; // 问答菜单初始化 if(is_robot_menu){ return } if(this.data_menu.length == 0){ $("#scroll_menu_box_by53kf").hide(); }else{ // 内容高度调整 if($('html').hasClass('is_ios11') && $("#mobile").hasClass('newchat_type')){ $(".talk-content-wrap").css("padding-bottom","19.2rem") }else{ $(".talk-content-wrap").css("padding-bottom",(_this.content_bottom+4)+'rem') } $("#scroll_menu_box_by53kf").show(); // 各种特殊情况 // 编辑的菜单和展示的菜单非同级 if($(".menu_lv2").is(':visible') && type == 1) return false; if($(".menu_lv1").is(':visible') && type == 2) return false; // 传入了不同的二级 if($(".menu_lv2").is(':visible') && type == 2 && $(".menu_lv2").attr('data-idx') != idx) return false; // dom var menu_list = ''; var menu_str = ''; // 初始化 $(".menu_lv1").remove(); $(".menu_lv2").remove(); // 渲染一级菜单列表 if(type == 1 || type == 4){ for(var i = 0;i<this.data_menu.length;i++){ var str = ''; if(this.data_menu[i].type == 2 && Object.prototype.toString.call(this.data_menu[i].content) == '[object Array]' && this.data_menu[i].content.length > 0){ str = '<div class="swiper-slide menu_btn iconfont icon-Mobilephonemodel-new" data-id="'+this.data_menu[i].postId+'" data-idx="'+i+'">'+this.data_menu[i].name+'</div>'; }else{ str = '<div class="swiper-slide menu_btn" data-id="'+this.data_menu[i].postId+'" data-idx="'+i+'">'+this.data_menu[i].name+'</div>'; } menu_list += str; } menu_str = '<div class="swiper-container menu_lv1" id="'+pid+'" data-idx=""><div class="swiper-wrapper menu_list">'+menu_list+'</div></div>'; $("#scroll_menu").append(menu_str); setTimeout(function(){ _this.signLoop('#'+pid); },100) $("#"+pid).show().siblings().hide(); $('.menu_close').show().siblings('.menu_up').hide(); $('#scroll_menu').removeClass('btn_left'); } // 渲染修改后的二级菜单内容 && 渲染一级菜单点击进入的二级菜单 else if(type == 2 || type == 3){ var lv2data = this.data_menu[idx].content; for(var j = 0;j<lv2data.length;j++){ var lv2_str = ''; lv2_str = '<div class="swiper-slide menu_btn">'+lv2data[j]+'</div>'; menu_list += lv2_str; } menu_str = '<div class="swiper-container menu_lv2" id="'+pid+'" data-idx="'+idx+'"><div class="swiper-wrapper menu_list">'+menu_list+'</div></div>'; $("#scroll_menu").append(menu_str); // 注册swiper实例,加入到异步队列下方 setTimeout(function(){ _this.signLoop('#'+pid); },100) $("#"+pid).show().siblings().hide(); $('#scroll_menu').addClass('btn_left'); $('.menu_up').show().siblings('.menu_close').hide(); } } }, menuHide : function(){ if(!is_robot_menu){ $("#scroll_menu_box_by53kf").hide(); } }, }; var menu = new MenuLoop(); window.menu = menu; function RobotMenuLoop(){ // rem为单位的内容高度 this.robot_content_bottom = parseInt($(".talk-content-wrap").css("padding-bottom"))/10; this.robot_data_menu = []; this.robot_initFlag = true; this.robot_isRender = true; }; RobotMenuLoop.prototype = { init:function(data){ if(data.length == 0) return false; //this.robot_initFlag = false; is_robot_menu = true; // 数据 console.log(data) this.robot_data_menu = $.extend(true, [], data); // 添加类表示有多级菜单 $(".talk").addClass("hasMenuLoop"); // 浮动窗口特殊处理电话回呼的高度 if(company_tpl == "minichat"){ // 是否开启网络回呼 if(net_callBack == 1){ if(mini_size == 1){ $(".talk").addClass("minisize460"); }else{ $(".talk").addClass("minisize400"); } } } $("#scroll_menu_box_by53kf").show(); // 预览渲染(首次进入默认渲染一级菜单,动态生成唯一标识) menu_sgin_obj.menu_type = 1; menu_sgin_obj.menu_id = this.postId(); this.render(1,this.postId()); // 2021.12.21特殊处理预览页的'你好'按钮(44jev55kv) if($(".swiper-container").find(".menu_btn").length === 1){ $(".scroll_body").find(".menu_btn").each(function(index, el) { if($(el).attr("data-idx") == 0 && $(el).html() == '你好' && $(el).attr('data-id') == '44jev55kv'){ var checkBtn = '<div class="fu_fx"><div class="fx" style="display: block;box-sizing: border-box;"><div class="top-right dot dot-pulse"><div class="dot-center"></div></div></div></div>' $(".scroll_body").css("position","absolute").append(checkBtn) } }); } var _this = this; /* 事件绑定 */ // 菜单收起 if(this.robot_initFlag){ this.robot_initFlag = false; $("#scroll_menu_box_by53kf").on("click",".menu_close",function(){ $(".scroll_body").animate({width:'0'},200,function(){ $("#scroll_menu").hide(); setTimeout(function(){ $(".menu_open").show(); },10) }); // 内容高度调整 if($('html').hasClass('is_ios11') && $("#mobile").hasClass('newchat_type')){ $(".talk-content-wrap").css("padding-bottom","15.2rem") }else{ $(".talk-content-wrap").css("padding-bottom",(_this.robot_content_bottom)+'rem') } }) // 菜单展开 $("#scroll_menu_box_by53kf").on("click",".menu_open",function(){ $(".menu_open").hide(); $("#scroll_menu").show(); $(".scroll_body").animate({width:'100%'},200); // 内容高度调整 if($('html').hasClass('is_ios11') && $("#mobile").hasClass('newchat_type')){ $(".talk-content-wrap").css("padding-bottom","19.2rem") }else{ $(".talk-content-wrap").css("padding-bottom",(_this.robot_content_bottom+4)+'rem') } }) // 点击菜单按钮 $("#scroll_menu_box_by53kf").on("click",".menu_btn",function(){ // 2021.12.21特殊处理预览页的'你好'按钮 $(".fu_fx").hide(); // sendQaMsg(vMsg,qType); var idx = $(this).attr('data-idx'); getRobotReply(_this.robot_data_menu[idx].question) console.log('触发机器人的互动菜单') }) } if(this.robot_data_menu.length > 0){ $("#scroll_menu_box_by53kf").show(); } }, postId:function (){ return Number(Math.random().toString().substr(3,length) + Date.now()).toString(36); }, // 注册实例 signLoop:function(el){ try{ if(!el) var el = '#scroll_menu_top'; var swiper = new Swiper(el, { slidesPerView: 'auto', speed:200, spaceBetween: 0, pagination: { el: '.swiper-pagination', clickable: true, }, }); }catch(e){} }, // 互动菜单隐藏 menuhide : function(){ if(is_robot_menu){ // 隐藏互动菜单 $("#scroll_menu_box_by53kf").hide(); // 去除互动菜单相关样式 $(".talk").removeClass("hasMenuLoop"); $(".talk").removeClass("minisize460"); $(".talk").removeClass("minisize400"); // 鼠标移出不可渲染互动菜单(针对浮动窗口移出文档设置) this.robot_isRender = false; } }, // 预览渲染(type参数:1新增,2修改,3一级进二级,4二级返回一级||还原) render:function(type,pid,idx){ var _this = this; if (_this.robot_isRender == false) return; if(!is_robot_menu){ return } // 问答菜单初始化 if(this.robot_data_menu.length == 0){ $("#scroll_menu_box_by53kf").hide(); }else{ // 内容高度调整 if($('html').hasClass('is_ios11') && $("#mobile").hasClass('newchat_type')){ $(".talk-content-wrap").css("padding-bottom","19.2rem") }else{ $(".talk-content-wrap").css("padding-bottom",(_this.robot_content_bottom+4)+'rem') } $("#scroll_menu_box_by53kf").show(); // 各种特殊情况 // 编辑的菜单和展示的菜单非同级 if($(".menu_lv2").is(':visible') && type == 1) return false; if($(".menu_lv1").is(':visible') && type == 2) return false; // 传入了不同的二级 if($(".menu_lv2").is(':visible') && type == 2 && $(".menu_lv2").attr('data-idx') != idx) return false; // dom var menu_list = ''; var menu_str = ''; // 初始化 $(".menu_lv1").remove(); $(".menu_lv2").remove(); // 渲染一级菜单列表 if(type == 1 || type == 4){ for(var i = 0;i<this.robot_data_menu.length;i++){ var str = ''; str = '<div class="swiper-slide menu_btn" data-id="'+'postId'+i+'" data-idx="'+i+'">'+this.robot_data_menu[i].title+'</div>'; menu_list += str; } menu_str = '<div class="swiper-container menu_lv1" id="'+pid+'" data-idx=""><div class="swiper-wrapper menu_list">'+menu_list+'</div></div>'; $("#scroll_menu").append(menu_str); setTimeout(function(){ _this.signLoop('#'+pid); },100) $("#"+pid).show().siblings().hide(); $('.menu_close').show().siblings('.menu_up').hide(); $('#scroll_menu').removeClass('btn_left'); } // 渲染修改后的二级菜单内容 && 渲染一级菜单点击进入的二级菜单 // else if(type == 2 || type == 3){ // var lv2data = this.robot_data_menu[idx].content; // for(var j = 0;j<lv2data.length;j++){ // var lv2_str = ''; // lv2_str = '<div class="swiper-slide menu_btn">'+lv2data[j]+'</div>'; // menu_list += lv2_str; // } // menu_str = '<div class="swiper-container menu_lv2" id="'+pid+'" data-idx="'+idx+'"><div class="swiper-wrapper menu_list">'+menu_list+'</div></div>'; // $("#scroll_menu").append(menu_str); // // 注册swiper实例,加入到异步队列下方 // setTimeout(function(){ // _this.signLoop('#'+pid); // },100) // $("#"+pid).show().siblings().hide(); // $('#scroll_menu').addClass('btn_left'); // $('.menu_up').show().siblings('.menu_close').hide(); // } } }, changeMenu : function(message){ var _this = this; var r_id = robot_id?robot_id:frobot_id $.ajax({ type: "POST", url: 'https://aibot.53kf.com/chatrobot_manage/recommend_phrase', data: {'rbt_id':robotList[r_id].api_robot_id,'message':message,'company_id':company_id,'talk_id':myfirst_tempid,'token':'Aj|uU620cjJ`53kf'}, dataType: "json", success: function(result){ if(result.code==200){//成功 // _this.robot_data_menu = result.data.recommend // _this.render(1,_this.postId()) if(result.data.recommend > 0){ $("#scroll_menu_box_by53kf").show(); }else{ $("#scroll_menu_box_by53kf").hide(); } _this.init(result.data.recommend); } }, error:function(e){ console.log(e) } }); }, menuHide : function(){ if(is_robot_menu){ $("#scroll_menu_box_by53kf").hide(); } }, }; var robot_menu = new RobotMenuLoop(); window.robot_menu = robot_menu; try{ var langs = {"0":"\u8bf7\u8f93\u5165\u6709\u6548\u7684","1":"\u624b\u673a","2":"\u7559\u8a00\u5185\u5bb9","3":"\u4e0d\u80fd\u4e3a\u7a7a","4":"\u53d1\u9001\u5e76\u54a8\u8be2","5":"\u5fc5\u586b","6":"\u63d0\u4ea4\u7559\u8a00","7":"\u5f88\u62b1\u6b49\u6211\u4eec\u7684\u673a\u5668\u4eba\u65e0\u6cd5\u56de\u7b54\u60a8\u7684\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9","8":"\u4eba\u5de5\u54a8\u8be2","9":"\u6216","10":"\u7ed9\u6211\u4eec\u7559\u8a00","11":"\u5934\u50cf","12":"\u5f53\u524d\u5ba2\u670d\u7e41\u5fd9\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9","13":"\u673a\u5668\u4eba\u54a8\u8be2","14":"\u4e0a\u4f20\u6210\u529f","15":"\u8bf7\u60a8\u4e3a\u6211\u7684\u670d\u52a1\u8bc4\u5206\uff1a","16":"\u6ee1\u610f","17":"\u53d1\u9001\u63d0\u4ea4","18":"\u611f\u8c22\u60a8\u7684\u8bc4\u4ef7\uff0c\u6211\u4eec\u4f1a\u7ee7\u7eed\u52aa\u529b!","19":"\u7559\u8a00","20":"\u5168\u90e8\u5ba2\u670d","21":"\u5168\u90e8\u90e8\u95e8","22":"\u79bb\u7ebf","23":"\u5728\u7ebf","24":"\u4f4d\u5ba2\u670d\u5728\u7ebf","25":"\u672a\u5206\u914d\u90e8\u95e8","26":"\u5168\u90e8\u5206\u7ec4","27":"\u667a\u80fd\u673a\u5668\u4eba\uff08\u81ea\u52a9\u7b54\u7591\uff09","28":"\u7559\u8a00\u5bf9\u8c61","29":"\u8bf7\u9009\u62e9\u7559\u8a00\u5bf9\u8c61","30":"","31":"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5","32":"\u6392\u961f","33":"\u7e41\u5fd9","34":"\u76f8\u5173\u95ee\u9898\uff1a","35":"\u6709\u7528","36":"\u65e0\u7528","37":"\u8ba9\u60a8\u89c9\u5f97\u6ca1\u7528\u7684\u539f\u56e0\uff1a","38":"\u7b80\u5355","39":"\u590d\u6742","40":"\u65e0\u5173","41":"\u5176\u4ed6","42":"\u6b22\u8fce\u60a8\u7684\u54a8\u8be2\uff0c\u671f\u5f85\u4e3a\u60a8\u670d\u52a1!","44":"\u672a\u77e5","45":"\u5ba2\u670d","46":"\u53c2\u6570\u9519\u8bef\uff01","47":"\u65e0\u6548\u7684cmd\uff01","48":"\u65e0\u70ed\u95e8\u95ee\u9898","49":"\u6211","50":"\u8bf7\u8f93\u5165\u53d1\u9001\u5185\u5bb9","51":"\u5bf9\u8bdd\u5df2\u7ed3\u675f\uff0c\u4e0d\u80fd\u53d1\u9001\u6d88\u606f\u3002","52":"\u5c1a\u672a\u4e0e\u5ba2\u670d\u5efa\u7acb\u5bf9\u8bdd\uff0c\u4e0d\u80fd\u8bc4\u5206!","53":"\u60a8\u5df2\u7ecf\u8bc4\u8fc7\u5206\uff01","54":"\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\uff0c\u63d0\u4ea4\u8bc4\u5206\u5931\u8d25","55":"\u8bf7\u586b\u5199\u7559\u8a00\u5185\u5bb9\uff01","56":"\u79d2\u540e\u81ea\u52a8\u4e3a\u60a8\u5206\u914d\u5ba2\u670d\u63a5\u5f85...","57":"\u60a8\u592a\u4e45\u6ca1\u6709\u64cd\u4f5c\uff0c\u9875\u9762\u5df2\u8fc7\u671f\uff0c\u8bf7\u5728\u5237\u65b0\u540e\u91cd\u65b0\u64cd\u4f5c\uff01","58":"\u6765\u81ea\u624b\u673a\u5ba2\u670d\u7aef\uff1a<a href=\"http:\/\/www.53kf.com\" target=\"_blank\">http:\/\/www.53kf.com<\/a>","59":"\u7f51\u7edc\u8fde\u63a5\u5df2\u4fee\u590d\uff0c\u60a8\u53ef\u4ee5\u7ee7\u7eed\u53d1\u9001\u5bf9\u8bdd","60":"\u662f\u5426\u63a5\u53d7","61":"\u7684\u8bc4\u5206\u8bf7\u6c42\uff1f","62":"\u5efa\u7acb\u5bf9\u8bdd\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\u540e\u91cd\u8bd5","63":"\u6587\u4ef6\u53d1\u9001\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\u540e\u91cd\u8bd5","64":"\u672a\u5206\u7ec4","65":"\u6682\u65e0\u804a\u5929\u8bb0\u5f55","66":"\u83b7\u53d6\u6570\u636e\u5931\u8d25","67":"\u663e\u793a\u4e0a\u6b21\u804a\u5929\u8bb0\u5f55","68":"\u4e0b\u8f7d","69":"\u611f\u8c22\u60a8\u7684\u53cd\u9988","70":"\u4ee5\u4e0a\u4e3a\u5386\u53f2\u8bb0\u5f55","71":"\u53d1\u9001\u6210\u529f\uff0c\u8bf7\u7559\u610f\u60a8\u7684\u7535\u8bdd\u8fdb\u884c\u63a5\u542c","72":"\u5f53\u524d\u5ba2\u670d\u6b63\u5728\u901a\u8bdd\u4e2d\uff0c\u8bf7\u7b49\u5f85\u5ba2\u670d\u56de\u62e8","73":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u624b\u673a\u53f7\u7801!","74":"\u4eba\u5de5\u5ba2\u670d\u63a5\u5165\u4e2d...","75":"\u7531\u4e8e\u5f53\u524d\u4eba\u5de5\u5ba2\u670d\u4e0d\u5728\u7ebf\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9 ","76":"\u56de\u547c\u529f\u80fd\u5df2\u5173\u95ed","77":"\u4e0e\u5ba2\u670d\u53f7\u7801\u76f8\u540c\uff0c\u8bf7\u786e\u8ba4\u540e\u91cd\u8bd5","78":"\u77ed\u65f6\u95f4\u5b58\u5728\u76f8\u540c\u7684\u547c\u53eb\uff0c\u8bf7\u52ff\u91cd\u590d\u53d1\u8d77","79":"\u5f53\u524d\u901a\u8bdd\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u62e8\u6253","80":"\u5fae\u4fe1\u626b\u7801&nbsp;\u54a8\u8be2\u540c\u6b65","81":"\u63d0\u4ea4\u8868\u5355","82":"\u63d0\u4ea4\u6210\u529f","83":"\u8bf7\u8f93\u5165","84":"\u8bf7\u9009\u62e9","85":"\u63d0\u4ea4\u4e2d...","86":"\u53d1\u9001\u6210\u529f","87":"\u83b7\u53d6\u9a8c\u8bc1\u7801","88":"\u8bf7\u83b7\u53d6\u9a8c\u8bc1\u7801!","89":"\u53d1\u9001","90":"\u624b\u673a\u9a8c\u8bc1\u7801","91":"\u91cd\u65b0\u53d1\u9001","92":"\u5411\u60a8\u7684\u624b\u673a\u53d1\u9001\u4e86\u9a8c\u8bc1\u7801\uff0c\u8bf7\u5728\u4e0b\u65b9\u8f93\u5165\u5e76\u53d1\u9001","93":"\u626b\u7801+\u5fae\u4fe1","94":"\u590d\u5236\u5fae\u4fe1","95":"\u5728\u7ebf\u62e8\u6253","96":"\u8f93\u5165\u624b\u673a\u53f7\u7801","97":"\u70b9\u51fb\u514d\u8d39\u901a\u8bdd","98":"\u52a0 QQ","99":"\u5f53\u524d\u901a\u8bdd\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u62e8\u6253","100":"\u59d3\u540d","101":"\u624b\u673a\u53f7\u7801","102":"\u5730\u5740","103":"\u90ae\u7bb1","104":"\u5fae\u4fe1","105":"\u53d1\u9001","106":"\u8eab\u4efd\u8bc1","107":"\u4e3a\u60a8\u670d\u52a1","108":"\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e","109":"\u6ca1\u6709\u66f4\u591a\u6d88\u606f\u5566","110":"\u590d\u5236"};//语言包 var lang_face = ["[\u62dc\u62dc]","[\u9119\u89c6]","[\u6253\u7535\u8bdd]","[\u6253\u54c8\u6b20]","[\u5927\u54ed]","[\u5927\u7b11]","[\u5f97\u610f]","[\u70b9\u8d5e]","[\u6124\u6012]","[\u9f13\u638c]","[\u563f\u54c8]","[\u6ed1\u7a3d]","[\u6b22\u8fce]","[\u5978\u7b11]","[\u6cae\u4e27]","[\u5f00\u5fc3]","[\u53ef\u4f36]","[\u6d41\u6c57]","[\u5356\u840c]","[\u7834\u6d95\u4e3a\u7b11]","[\u6572\u6253]","[\u80dc\u5229]","[\u8c03\u76ae]","[\u65e0\u8bed]","[\u634f\u8138]","[\u62b1\u62b1]","[\u644a\u624b]","[\u6bd4\u5fc3]","[\u4fbf\u4fbf]","[\u52a0\u6cb9]","[\u793c\u7269]","[\u54c8\u58eb\u5947]","[\u6210\u4ea4]","[\u5fc3\u788e]","[\u6708\u4eae]"];//表情包语言包 // var language = "cn";//语言 var voteArr = ["\u6076\u52a3 ","\u8f83\u5dee ","\u4e00\u822c ","\u8f83\u597d ","\u6ee1\u610f "];//评分语言包 var company_tpl = "newchat";//判断新窗口还是浮框 var base_host = "53kf.com"; var master_host = "tb.53kf.com"; var mtalk_host = "mtalk.53kf.com";//第三方接口host var kfs3_host = "kfs3.53kf.com"; var arg = ""; var mytempid = "0";//当前窗口id var myfirst_tempid = "0";//第一个窗口id var tfrom = "3"; //对话开始方式 var is_group = "0"; // 1:集团挂码 var is_assist = 0;//是否使用过辅助方式获取访客编号 var is_get_guest_id = "2";//是否使用浏览器指纹获取访客id var finger_host = "fingerprintjs.53kf.com";//浏览器指纹域名 var is_set_finger = 0;//lnk返回时是否设需要置指纹模式访客编号 var guest_id_from_get = 0; var use_cust_guestid = 0; var talkpage = "";//咨询页面 var landpage = "";//着陆页面 var frompage = "";//来源页面 // var talktitle = getCookie("talktitle_72203883");//咨询页面标题 var talktitle = "";//咨询页面标题 var channel = "";//渠道 var search_engine = "";//搜索引擎 var keyword = "";//关键词 var ip = "8.222.208.146";//ip地址 var guest_ip_info = "[阿里云]";//ip详情 var ucust_id = ""; //客户网站会员ID var u_stat_id = '';//第三方数据统计ID var uid = ''; var finger_id = "";//浏览器指纹 var comeinfo = {"logo":"","title":"","content":"","curl":"","sendtype":""};//访客来的图文信息 var custmsg = "";//访客来的图文信息 var conn_prompt = "";//公司接通提示语 var conn_prompt_list = {"1":{"carousel_prompt1":"Array","carousel_time1":0,"type1":"","carousel_prompt2":"","carousel_time2":null,"type2":"","carousel_prompt3":"","carousel_time3":null,"type3":"","carousel_prompt4":"","carousel_time4":null,"type4":"","carousel_prompt5":"","carousel_time5":null,"type5":"","carousel_prompt6":"","carousel_time6":null,"type6":"","carousel_prompt7":"","carousel_time7":null,"type7":"","carousel_prompt8":"","carousel_time8":null,"type8":"","carousel_num":"1","conn_prompt":"","carousel":"1"},"10337631":{"carousel_prompt1":"<span style=\"color: rgb(13, 102, 212); font-family: &quot;background-color:#F9F9F9;&quot;; font-size: 12px;\">\u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7684\u5417\uff1f<\/span>","carousel_time1":"180","type1":"","carousel_prompt2":"<span style=\"color: rgb(13, 102, 212); font-family: &quot;font-size:16px;background-color:#F9F9F9;&quot;;\">\u4f60\u60f3\u53bb\u54ea\u4e2a\u56fd\u5bb6\uff1f<\/span>","carousel_time2":"15","type2":"","carousel_prompt3":"<span style=\"color: rgb(13, 102, 212); font-family: &quot;font-size:16px;background-color:#F9F9F9;&quot;;\">\u60f3\u8bfb\u4ec0\u4e48\u5b66\u5386\u5462\uff1f<\/span>","carousel_time3":"30","type3":"","carousel_prompt4":"<span style=\"color: rgb(13, 102, 212); font-family: &quot;font-size:medium;background-color:#F9F9F9;&quot;;\">\u96c5\u601d\u8003\u8fc7\u4e86\u5417\uff1f<\/span>","carousel_time4":"30","type4":"","carousel_prompt5":"<span style=\"color: rgb(13, 102, 212); font-family: &quot;font-size:medium;background-color:#F9F9F9;&quot;;\">\u6211\u4eec\u662fIDP\uff0c\u96c5\u601d\u4e09\u5927\u4e3b\u529e\u65b9\u4e4b\u4e00<\/span>","carousel_time5":"30","type5":"","carousel_prompt6":"<span style=\"color: rgb(0, 51, 153);\">\u8ba1\u5212\u4ec0\u4e48\u65f6\u5019\u51fa\u56fd\u5462\uff1f<\/span><span style=\"color:#003399;\">\u200b<\/span><br>","carousel_time6":"30","type6":"","carousel_prompt7":"<span style=\"color: rgb(13, 102, 212); font-family: &quot;background-color:#F9F9F9;&quot;;\">hello ?<\/span>","carousel_time7":"30","type7":"","carousel_prompt8":"","carousel_time8":null,"type8":"","carousel_num":"3","conn_prompt":"","carousel":"1"},"10337877":{"carousel_prompt1":"<span style=\"color: rgb(51, 127, 229);\"><\/span><span style=\"color: rgb(51, 127, 229);\">\u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7684\u5417\uff1f<\/span>","carousel_time1":0,"type1":"","carousel_prompt2":"<span style=\"color: rgb(51, 127, 229);\">\u4f60\u60f3\u53bb\u54ea\u4e2a\u56fd\u5bb6\uff1f<\/span>","carousel_time2":"10","type2":"","carousel_prompt3":"<span style=\"color: rgb(51, 127, 229);\">\u60f3\u8bfb\u4ec0\u4e48\u5b66\u5386\u5462\uff1f<\/span>","carousel_time3":"15","type3":"","carousel_prompt4":"<span style=\"color: rgb(51, 127, 229);\">\u96c5\u601d\u8003\u8fc7\u4e86\u5417<\/span>","carousel_time4":"18","type4":"","carousel_prompt5":"<span style=\"color: rgb(51, 127, 229);\">\u6211\u4eec\u662fIDP\uff0c\u96c5\u601d\u4e09\u5927\u4e3b\u529e\u65b9\u4e4b\u4e00<\/span>","carousel_time5":"20","type5":"","carousel_prompt6":"<span style=\"color: rgb(51, 127, 229);\">\u8ba1\u5212\u4ec0\u4e48\u65f6\u5019\u51fa\u56fd\u5462\uff1f<\/span>","carousel_time6":"30","type6":"","carousel_prompt7":"<span style=\"color: rgb(51, 127, 229);\">\u8fd8\u5728\u5417\uff1f:\uff09<\/span>","carousel_time7":"30","type7":"","carousel_prompt8":"<span style=\"color: rgb(51, 127, 229);\">\u4f60\u5728\u54ea\u4e2a\u57ce\u5e02\u5462\uff1f\u7559\u4e0b\u60a8\u7684\u59d3\u540d\uff0c\u7535\u8bdd\uff0c\u7acb\u5373\u4e3a\u60a8\u9884\u7ea6\u4e0a\u95e8\u3002<\/span>","carousel_time8":"30","type8":"","carousel_num":"1","conn_prompt":"","carousel":"1"},"10337993":{"carousel_prompt1":"<span style=\"color: rgb(51, 127, 229);\">\u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7684\u5417\uff1f<\/span>","carousel_time1":"0","type1":"1","carousel_prompt2":"<span style=\"color: rgb(51, 127, 229);\">\u4f60\u60f3\u53bb\u54ea\u4e2a\u56fd\u5bb6\uff1f<\/span>","carousel_time2":"10","type2":"1","carousel_prompt3":"<span style=\"color: rgb(51, 127, 229);\">\u60f3\u8bfb\u4ec0\u4e48\u5b66\u5386\u5462\uff1f<\/span>","carousel_time3":"15","type3":"1","carousel_prompt4":"<span style=\"color: rgb(51, 127, 229);\">\u96c5\u601d\u8003\u8fc7\u4e86\u5417\uff1f<\/span>","carousel_time4":"18","type4":"1","carousel_prompt5":"<span style=\"color: rgb(51, 127, 229);\">\u6211\u4eec\u662fIDP\uff0c\u96c5\u601d\u4e09\u5927\u4e3b\u529e\u65b9\u4e4b\u4e00<\/span>","carousel_time5":"20","type5":"1","carousel_prompt6":"<span style=\"color: rgb(51, 127, 229);\">\u8ba1\u5212\u4ec0\u4e48\u65f6\u5019\u51fa\u56fd\u5462\uff1f<\/span>","carousel_time6":"30","type6":"1","carousel_prompt7":"<p><span style=\"color: rgb(51, 127, 229);\">\u8fd8\u5728\u5417\uff1f:\uff09\u671f\u5f85\u4e0e\u4f60\u7684\u5728\u7ebf\u6c9f\u901a\uff0c\u4e5f\u53ef\u4ee5\u968f\u65f6\u901a\u8bdd\u54e6<\/span><\/p>","carousel_time7":"30","type7":"1","carousel_prompt8":"<span style=\"color: rgb(51, 127, 229);\">\u4f60\u5728\u54ea\u4e2a\u57ce\u5e02\u5462\uff1f\u7559\u4e0b\u60a8\u7684\u59d3\u540d\uff0c\u7535\u8bdd\uff0c\u7acb\u5373\u4e3a\u60a8\u9884\u7ea6\u4e0a\u95e8\u300218\u79d2<\/span>","carousel_time8":"30","type8":"1","carousel_num":"1","conn_prompt":"","carousel":"1"},"10337994":{"carousel_prompt1":"<span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(0, 51, 153);\"><span style=\"color: rgb(51, 127, 229);\">\u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7684\u5417\uff1f<br><\/span><span style=\"color: rgb(51, 127, 229);\"><\/span><\/span><span style=\"color: rgb(0, 51, 153);\"><\/span><\/span>","carousel_time1":0,"type1":"","carousel_prompt2":"<span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(0, 51, 153);\"><span style=\"color: rgb(51, 127, 229);\">\u4f60\u60f3\u53bb\u54ea\u4e2a\u56fd\u5bb6\uff1f<\/span><span style=\"color: rgb(51, 127, 229);\"><\/span><\/span><span style=\"color: rgb(0, 51, 153);\"><\/span><\/span><\/span>","carousel_time2":"10","type2":"","carousel_prompt3":"<p><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\">\u60f3\u8bfb\u4ec0\u4e48\u5b66\u5386\u5462\uff1f<\/span><\/span><\/p>","carousel_time3":"15","type3":"","carousel_prompt4":"<p><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\">\u96c5\u601d\u8003\u8fc7\u4e86\u5417\uff1f<\/span><\/span><\/p>","carousel_time4":"18","type4":"","carousel_prompt5":"<p><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\">\u6211\u4eec\u662fIDP\uff0c\u96c5\u601d\u4e09\u5927\u4e3b\u529e\u65b9\u4e4b\u4e00<\/span><\/span><\/p>","carousel_time5":"20","type5":"","carousel_prompt6":"<p><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\">\u8ba1\u5212\u4ec0\u4e48\u65f6\u5019\u51fa\u56fd\u5462\uff1f<\/span><\/span><\/p>","carousel_time6":"30","type6":"","carousel_prompt7":"<p><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\">\u8fd8\u5728\u5417\uff1f:\uff09<\/span><\/span><\/span><\/span><\/span><\/span><\/p>","carousel_time7":"30","type7":"","carousel_prompt8":"<span style=\"color: rgb(51, 127, 229);\">\u4f60\u5728\u54ea\u4e2a\u57ce\u5e02\u5462\uff1f\u7559\u4e0b\u60a8\u7684\u59d3\u540d\uff0c\u7535\u8bdd\uff0c\u7acb\u5373\u4e3a\u60a8\u9884\u7ea6\u4e0a\u95e8\u3002<\/span>","carousel_time8":"30","type8":"","carousel_num":"1","conn_prompt":"","carousel":"1"},"10337995":{"carousel_prompt1":"<span style=\"color: rgb(51, 127, 229);\"><\/span><span style=\"color: rgb(51, 127, 229);\">\u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7684\u5417\uff1f<\/span>","carousel_time1":0,"type1":"","carousel_prompt2":"<span style=\"color: rgb(51, 127, 229);\">\u4f60\u60f3\u53bb\u54ea\u4e2a\u56fd\u5bb6\uff1f8\u79d2<\/span>","carousel_time2":"8","type2":"","carousel_prompt3":"<span style=\"color: rgb(51, 127, 229);\">\u60f3\u8bfb\u4ec0\u4e48\u5b66\u5386\u5462\uff1f<\/span>","carousel_time3":"10","type3":"","carousel_prompt4":"<span style=\"color: rgb(51, 127, 229);\">\u96c5\u601d\u8003\u8fc7\u4e86\u5417\uff1f<\/span>","carousel_time4":"13","type4":"","carousel_prompt5":"<span style=\"color: rgb(51, 127, 229);\">\u6211\u4eec\u662fIDP\uff0c\u96c5\u601d\u4e09\u5927\u4e3b\u529e\u65b9\u4e4b\u4e00<\/span>","carousel_time5":"15","type5":"","carousel_prompt6":"<span style=\"color: rgb(229, 102, 0);\"><span style=\"color: rgb(51, 127, 229);\">\u8ba1\u5212\u4ec0\u4e48\u65f6\u5019\u51fa\u56fd\u5462\uff1f<\/span><\/span>","carousel_time6":"16","type6":"","carousel_prompt7":"<p><span style=\"color: rgb(51, 127, 229);\"><span style=\"color: rgb(51, 127, 229);\">\u4f60\u5728\u54ea\u4e2a\u57ce\u5e02\u5462\uff1f\u7559\u4e0b\u60a8\u7684\u59d3\u540d\uff0c\u7535\u8bdd\uff0c\u7acb\u5373\u4e3a\u60a8\u9884\u7ea6\u4e0a\u95e8<\/span><\/span><\/p>","carousel_time7":"18","type7":"","carousel_prompt8":"<p><span style=\"color: rgb(51, 127, 229);\">\u5982\u679c\u60a8\u5728\u6d4f\u89c8\u7f51\u9762\u65f6\u4e00\u65f6\u627e\u4e0d\u5230\u7b54\u6848\uff0c\u53ef\u4ee5\u968f\u65f6\u54a8\u8be2\u6211\u4eec\u54e6\uff0c\u8fd9\u6837\u6bd4\u8f83\u5feb\u6377\uff1a\uff09<\/span><\/p>","carousel_time8":"18","type8":"","carousel_num":"1","conn_prompt":"","carousel":"1"},"10337997":{"carousel_prompt1":"<span style=\"color:#003399;\">\u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7684\u5417\uff1f<\/span><span style=\"color:#003399;\">\u200b<\/span><br>","carousel_time1":"10","type1":"","carousel_prompt2":"<span style=\"color:#003399;\">\u4f60\u60f3\u53bb\u54ea\u4e2a\u56fd\u5bb6\uff1f<\/span>","carousel_time2":"10","type2":"","carousel_prompt3":"<span style=\"color:#003399;\">\u60f3\u8bfb\u4ec0\u4e48\u5b66\u5386\u5462\uff1f<\/span><span style=\"color:#003399;\">\u200b<\/span><br>","carousel_time3":"13","type3":"","carousel_prompt4":"<span style=\"color:#003399;\">\u96c5\u601d\u8003\u8fc7\u4e86\u5417\uff1f<\/span>","carousel_time4":"13","type4":"","carousel_prompt5":"<span style=\"color:#003399;\">\u6211\u4eec\u662fIDP\uff0c\u96c5\u601d\u4e09\u5927\u4e3b\u529e\u65b9\u4e4b\u4e00<\/span>","carousel_time5":"15","type5":"","carousel_prompt6":"<span style=\"color:#003399;\">\u8ba1\u5212\u4ec0\u4e48\u65f6\u5019\u51fa\u56fd\u5462\uff1f<\/span>","carousel_time6":"20","type6":"","carousel_prompt7":"<span style=\"color:#003399;\">\u8fd8\u5728\u5417\uff1f:\uff09<\/span>","carousel_time7":"20","type7":"","carousel_prompt8":"<span style=\"color:#003399;\"><strong>\u4f60\u5728\u54ea\u4e2a\u57ce\u5e02\u5462\uff1f\u7559\u4e0b\u60a8\u7684\u59d3\u540d\uff0c\u7535\u8bdd\uff0c\u7acb\u5373\u4e3a\u60a8\u9884\u7ea6\u4e0a\u95e8<\/strong><\/span>","carousel_time8":"30","type8":"","carousel_num":"8","conn_prompt":"","carousel":"1"},"10338015":{"carousel_prompt1":"<div><span style=\"BACKGROUND-COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><\/span><\/span>\u200b<span>\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span><\/span><\/span><\/span>\u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7684\u5417\uff1f<br><br><div><br><\/div>\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span><\/span><\/span><br><\/div>","carousel_time1":0,"type1":"","carousel_prompt2":"<span style=\"BACKGROUND-COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><\/span><\/span>\u200b<span>\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span><\/span><\/span><\/span>\u4f60\u60f3\u53bb\u54ea\u4e2a\u56fd\u5bb6\uff1f","carousel_time2":"10","type2":"","carousel_prompt3":"<span style=\"BACKGROUND-COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><\/span>\u200b<span>\u200b<span>\u200b<\/span><\/span><\/span>\u60f3\u8bfb\u4ec0\u4e48\u5b66\u5386\u5462\uff1f","carousel_time3":"15","type3":"","carousel_prompt4":"<span style=\"BACKGROUND-COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><\/span>\u200b<span>\u200b<span>\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span><\/span><\/span>\u96c5\u601d\u8003\u8fc7\u4e86\u5417\uff1f","carousel_time4":"18","type4":"","carousel_prompt5":"<span style=\"COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><\/span>\u200b<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span><\/span>\u6211\u4eec\u662fIDP\uff0c\u96c5\u601d\u4e09\u5927\u4e3b\u529e\u65b9\u4e4b\u4e00","carousel_time5":"20","type5":"","carousel_prompt6":"<span style=\"COLOR: #337fe5\"><span style=\"COLOR: #337fe5\"><\/span>\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span>\u8ba1\u5212\u4ec0\u4e48\u65f6\u5019\u51fa\u56fd\u5462\uff1f","carousel_time6":"30","type6":"","carousel_prompt7":"<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span>\u8fd8\u5728\u5417\uff1f:\uff09","carousel_time7":"30","type7":"","carousel_prompt8":"<span style=\"COLOR: #337fe5\">\u200b<span style=\"COLOR: #337fe5\">\u200b<\/span><\/span>\u4f60\u5728\u54ea\u4e2a\u57ce\u5e02\u5462\uff1f\u7559\u4e0b\u60a8\u7684\u59d3\u540d\uff0c\u7535\u8bdd\uff0c\u7acb\u5373\u4e3a\u60a8\u9884\u7ea6\u4e0a\u95e8\u3002","carousel_time8":"30","type8":"","carousel_num":"1","conn_prompt":"","carousel":"1"},"10629411":{"carousel_num":"1","conn_prompt":null,"carousel":"1"},"11046971":{"carousel_num":"1","conn_prompt":null,"carousel":"1"}};//所有客服个人接通提示语 var close_prompt = "";//公司结束提示语 var close_prompt_list = {"1":"","10337631":"","10337877":"","10337993":"","10337994":"","10337995":"","10337997":"","10338015":"","10629411":""};//所有客服个人结束提示语 var kf_auto_tip = "0"; //公司设置 客服繁忙提示时间 var kf_auto_tip_phrase = ""; //公司设置 客服繁忙提示语 var busy_prompt_list = {"1":"","10337631":"","10337877":"","10337993":"","10337994":"","10337995":"","10337997":"","10338015":""};//所有客服个人繁忙提示语 var busy_prompt_time_list = {"1":"1800","10337631":"30","10337877":"30","10337993":"30","10337994":"30","10337995":"30","10337997":"30","10338015":"30","11046971":"10"};//所有客服个人繁忙提示语时间 var imkf_no_talk_time = "600"; // IM客服无响应时间(s) var auto_disconnect = "0";//访客无响应自动断开 0:表示关闭 不为0表示断开需等待分钟数(大于3) var disconnect_prompt = "";//访客无响应自动断开提示语 var reject_prompt = "<p>Can not connect customer, you have been prevented !</p>";//黑名单阻止提示语 var prompt_guide_list = [{"title":"\u5176\u4ed6","id":"891430002","promote_link":"","talkpage_link":"","link_init":"","prompt":[{"time":0,"prompt_content":"<strong><span style=\"font-size:14px;\"><p background-color:#ffffff;\"=\"\" style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; box-sizing: border-box; padding: 0px; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, SimSun, sans-serif; letter-spacing: 0.6px; background-color: rgb(255, 255, 255);\"><span style=\"font-size:16px;color:#003399;\"><b><\/b><\/span><\/p><p background-color:#ffffff;\"=\"\" style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 1.5; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, SimSun, sans-serif; font-size: 14px; text-wrap-mode: wrap; color: rgb(40, 51, 75); letter-spacing: 0.6px; background-color: rgb(255, 255, 255);\"><b><b><b><b><strong><strong><strong><b><b><b><strong><strong><strong><strong><strong><b><strong><b><b><b><b><strong><strong><strong><span style=\"line-height:1.5;\"><strong><strong><span style=\"line-height:1.5;font-size:16px;\"><b><b><strong><span style=\"line-height:1.5;font-size:14px;\"><strong><strong><span style=\"line-height:1.5;color:#E53333;font-size:16px;\"><b><strong><strong><b><strong><b><b><span style=\"line-height:1.5;font-size:14px;\"><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#333333;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><b><b><strong><strong><strong><span style=\"line-height:1.5;\"><strong><strong><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#333333;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><span style=\"line-height:1.5;font-size:16px;\"><\/span><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/span><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/b><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/p><p background-color:#ffffff;\"=\"\" style=\"margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; box-sizing: border-box; padding: 0px; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, SimSun, sans-serif; letter-spacing: 0.6px; background-color: rgb(255, 255, 255);\"><strong><strong><b><strong><b><b><b><b><b><strong><strong><strong><b><b><b><strong><strong><strong><strong><strong><b><strong><b><b><b><b><strong><strong><strong><span style=\"font-size:14px;\"><strong><strong><span style=\"font-size:16px;\"><b><b><strong><span style=\"font-size:14px;\"><strong><strong><span style=\"color:#E53333;font-size:16px;\"><b><strong><strong><b><strong><b><b><span style=\"font-size:14px;\"><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#333333;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><b><b><strong><strong><strong><span style=\"line-height:1.5;\"><strong><strong><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#333333;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><span style=\"font-size:16px;\">\u5728\u7ebf\u54a8\u8be2\u514d\u8d39\u83b7\u53d6<\/span><span style=\"color:#E53333;font-size:16px;\">1\u5bf91<\/span><\/span><span style=\"font-size:14px;\"><span style=\"color:#E53333;font-size:16px;\">\u7559\u5b66\u5b9a\u5236\u89c4\u5212\u65b9\u6848\uff01<\/span><span style=\"font-size:16px;\">\u7cbe\u51c6\u5339\u914d\u6d77\u5916\u9662\u6821<\/span><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/span><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/b><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/p><b><b><strong><span style=\"font-size:14px;\"><strong><strong><span style=\"color:#E53333;font-size:16px;\"><span style=\"color:#000000;\"><\/span><\/span><\/strong><\/strong><\/span><\/strong><\/b><\/b><span style=\"font-size:14px;\"><span style=\"color:#E53333;font-size:16px;\"><\/span><span style=\"font-size:16px;\"><\/span><\/span><b><b><strong><strong><strong><span style=\"font-size:14px;\"><span style=\"font-size:16px;\"><\/span><\/span><\/strong><\/strong><\/strong><\/b><\/b><p><b><b><b><strong><span style=\"color:#E53333;font-size:16px;\"><strong>\u8bf7\u7559\u4e0b\u3010\u59d3\u540d+\u624b\u673a\u53f7\u3011<\/strong><\/span><span style=\"color:#333333;\"><span style=\"font-size:16px;\">\u514d\u8d39\u9886\u53d6 \u9662\u6821\u7533\u8bf7\u6761\u4ef6+<\/span><strong><span style=\"color:#E53333;font-size:16px;\">\u6700\u65b0\u4e16\u754c\u5927\u5b66\u6392\u540d<\/span><\/strong><\/span><\/strong><\/b><\/b><\/b><\/p><\/span><\/strong><p style=\"color:#28334B;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;\"><strong><span style=\"font-size:9px;\"><b><b><strong><strong><strong><strong><strong><b><strong><strong><strong><strong><strong><strong><strong><strong><strong><span style=\"font-size:16px;color:#003399;\"><span style=\"font-size:10px;\"><b><b><strong><strong><strong><strong><span style=\"font-size:9px;\"><strong><\/strong><strong><\/strong><strong><\/strong><a href=\"https:\/\/www.idp.cn\/terms_of_use\" data-ke-src=\"https:\/\/www.idp.cn\/terms_of_use\"><strong><strong><span style=\"font-size:9px;\"><b><b><strong><strong><strong><strong><strong><b><strong><strong><strong><strong><strong><strong><strong><strong><strong><span style=\"font-size:16px;color:#003399;\"><span style=\"font-size:10px;\"><b><b><strong><strong><strong><strong><span style=\"font-size:9px;\"><strong>\u7ee7\u7eed\u54a8\u8be2\u5373\u89c6\u4f5c\u60a8\u540c\u610f<\/strong><strong>IDP<\/strong><strong>\u6559\u80b2\u96c6\u56e2<\/strong><\/span><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/span><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/strong><\/strong><\/a><b><b><b><strong><strong><a href=\"https:\/\/www.idp.cn\/terms_of_use\" data-ke-src=\"https:\/\/www.idp.cn\/terms_of_use\">\u7f51\u7ad9\u4f7f\u7528\u6761\u6b3e<\/a>\u4e0e<a href=\"https:\/\/www.idp.cn\/privacy_policy\" data-ke-src=\"https:\/\/www.idp.cn\/privacy_policy\">\u9690\u79c1\u4fdd\u62a4\u653f\u7b56<\/a><\/strong><\/strong><\/b><\/b><\/b><\/span><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/span><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/strong><b><b><b><strong><a href=\"https:\/\/www.idp.cn\/privacy_policy\" data-ke-src=\"https:\/\/www.idp.cn\/privacy_policy\"><\/a><\/strong><\/b><\/b><\/b><\/p><span style=\"font-size:10px;\"><\/span><br>"},{"time":20,"prompt_content":"<p><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;\"><span style=\"color:#003399;font-size:14px;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;font-size:14px;\">\u540c\u5b66\u60f3\u53bb\u54ea\u4e9b\u56fd\u5bb6\uff1f<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>"},{"time":20,"prompt_content":"<span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;font-size:14px;\">\u6709\u8bed\u8a00\u6210\u7ee9\u4e86\u4e48<\/span><span style=\"color:#003399;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;font-size:14px;\">?&nbsp;<\/span><\/span><br>"},{"time":20,"prompt_content":"<span style=\"color:#003399;\"><span style=\"font-size:14px;\"><span style=\"color:#003399;font-size:14px;\">\u8fd8\u5728\u4e48\uff1f\u6700\u65b0\u9662\u6821\u6392\u540d\u62a2\u5148\u77e5\uff01\u8f93\u5165\u624b\u673a\u53f7\u53ef\u4ee5\u63d0\u524d\u83b7\u53d6\u6700\u65b0QS\u5b66\u79d1\u6392\u540d &nbsp;@_@<\/span><\/span><\/span><br>"},{"time":20,"prompt_content":"<span style=\"color:#003399;\"><\/span><p><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><\/span><\/span><\/strong><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/p><p><span style=\"color:#003399;\"><span style=\"font-size:14px;\"><span style=\"color:#003399;font-size:14px;\">\u8003\u7814\u7559\u5b66\u4e24\u4e0d\u8bef\uff01<span style=\"color:#003399;font-size:14px;\">\u9ad8\u8003\/\u8003\u7814\u7559\u5b66\u53cc\u4fdd\u9669\uff0c<\/span>\u5728\u7ebf\u514d\u8d39\u54a8\u8be2\u83b7\u53d6\u7533\u8bf7\u65b9\u6848\u5427\u3002<\/span><\/span><span style=\"font-size:14px;\"><\/span><\/span><\/p><p><br><\/p>"},{"time":20,"prompt_content":"<strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><span style=\"color:#003399;font-size:14px;\">\u60a8\u8fd8\u53ef\u4ee5\u62e8\u625313262693583\u6216\u8005<\/span><\/strong><\/strong><strong><span style=\"color:#003399;font-size:14px;\">4006979728\u54a8\u8be2\u54e6\uff0c\u6211\u4eec\u7acb\u5373\u5b89\u6392\u987e\u95ee\u4e0e\u60a8\u8054\u7cfb\uff01<\/span><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong>"}]}];//智能引导 var guidance_type = "2";//智能引导类型 1:发送消息建立对话 2:键入时建立对话 var prompt_cookie = getCookie("prompt_guide_72203883"); var prompt_guide_size = 0;//智能引导已发送条数 var wait_host = "www10.53kf.com";//智能引导域名 var robot_prompt_guide = [{"title":"\u5176\u4ed6","id":"891430002","promote_link":"","talkpage_link":"","link_init":"","prompt":[{"time":0,"prompt_content":"<strong><span style=\"font-size:14px;\"><p background-color:#ffffff;\"=\"\" style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; box-sizing: border-box; padding: 0px; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, SimSun, sans-serif; letter-spacing: 0.6px; background-color: rgb(255, 255, 255);\"><span style=\"font-size:16px;color:#003399;\"><b><\/b><\/span><\/p><p background-color:#ffffff;\"=\"\" style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 1.5; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, SimSun, sans-serif; font-size: 14px; text-wrap-mode: wrap; color: rgb(40, 51, 75); letter-spacing: 0.6px; background-color: rgb(255, 255, 255);\"><b><b><b><b><strong><strong><strong><b><b><b><strong><strong><strong><strong><strong><b><strong><b><b><b><b><strong><strong><strong><span style=\"line-height:1.5;\"><strong><strong><span style=\"line-height:1.5;font-size:16px;\"><b><b><strong><span style=\"line-height:1.5;font-size:14px;\"><strong><strong><span style=\"line-height:1.5;color:#E53333;font-size:16px;\"><b><strong><strong><b><strong><b><b><span style=\"line-height:1.5;font-size:14px;\"><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#333333;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><b><b><strong><strong><strong><span style=\"line-height:1.5;\"><strong><strong><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;color:#333333;\"><strong><b><span style=\"line-height:1.5;font-size:10px;\"><b><span style=\"line-height:1.5;font-size:14px;\"><span style=\"line-height:1.5;font-size:16px;\"><\/span><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/span><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/b><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/p><p background-color:#ffffff;\"=\"\" style=\"margin-top: 0px; margin-bottom: 0px; text-wrap-mode: wrap; box-sizing: border-box; padding: 0px; color: rgb(40, 51, 75); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, SimSun, sans-serif; letter-spacing: 0.6px; background-color: rgb(255, 255, 255);\"><strong><strong><b><strong><b><b><b><b><b><strong><strong><strong><b><b><b><strong><strong><strong><strong><strong><b><strong><b><b><b><b><strong><strong><strong><span style=\"font-size:14px;\"><strong><strong><span style=\"font-size:16px;\"><b><b><strong><span style=\"font-size:14px;\"><strong><strong><span style=\"color:#E53333;font-size:16px;\"><b><strong><strong><b><strong><b><b><span style=\"font-size:14px;\"><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#333333;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><b><b><strong><strong><strong><span style=\"line-height:1.5;\"><strong><strong><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#64451D;\"><strong><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;color:#333333;\"><strong><b><span style=\"font-size:10px;\"><b><span style=\"font-size:14px;\"><span style=\"font-size:16px;\">\u5728\u7ebf\u54a8\u8be2\u514d\u8d39\u83b7\u53d6<\/span><span style=\"color:#E53333;font-size:16px;\">1\u5bf91<\/span><\/span><span style=\"font-size:14px;\"><span style=\"color:#E53333;font-size:16px;\">\u7559\u5b66\u5b9a\u5236\u89c4\u5212\u65b9\u6848\uff01<\/span><span style=\"font-size:16px;\">\u7cbe\u51c6\u5339\u914d\u6d77\u5916\u9662\u6821<\/span><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/b><\/span><\/b><\/strong><\/span><\/b><\/span><\/b><\/strong><\/strong><\/span><\/b><\/span><\/b><\/span><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/b><\/b><\/span><\/strong><\/strong><\/span><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/strong><\/strong><\/strong><\/b><\/b><\/b><\/b><\/b><\/strong><\/b><\/strong><\/strong><\/p><b><b><strong><span style=\"font-size:14px;\"><strong><strong><span style=\"color:#E53333;font-size:16px;\"><span style=\"color:#000000;\"><\/span><\/span><\/strong><\/strong><\/span><\/strong><\/b><\/b><span style=\"font-size:14px;\"><span style=\"color:#E53333;font-size:16px;\"><\/span><span style=\"font-size:16px;\"><\/span><\/span><b><b><strong><strong><strong><span style=\"font-size:14px;\"><span style=\"font-size:16px;\"><\/span><\/span><\/strong><\/strong><\/strong><\/b><\/b><p><b><b><b><strong><span style=\"color:#E53333;font-size:16px;\"><strong>\u8bf7\u7559\u4e0b\u3010\u59d3\u540d+\u624b\u673a\u53f7\u3011<\/strong><\/span><span style=\"color:#333333;\"><span style=\"font-size:16px;\">\u514d\u8d39\u9886\u53d6 \u9662\u6821\u7533\u8bf7\u6761\u4ef6+<\/span><strong><span style=\"color:#E53333;font-size:16px;\">\u6700\u65b0\u4e16\u754c\u5927\u5b66\u6392\u540d<\/span><\/strong><\/span><\/strong><\/b><\/b><\/b><\/p><\/span><\/strong><p style=\"color:#28334B;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;\"><strong><span style=\"font-size:9px;\"><b><b><strong><strong><strong><strong><strong><b><strong><strong><strong><strong><strong><strong><strong><strong><strong><span style=\"font-size:16px;color:#003399;\"><span style=\"font-size:10px;\"><b><b><strong><strong><strong><strong><span style=\"font-size:9px;\"><strong><\/strong><strong><\/strong><strong><\/strong><a href=\"https:\/\/www.idp.cn\/terms_of_use\" data-ke-src=\"https:\/\/www.idp.cn\/terms_of_use\"><strong><strong><span style=\"font-size:9px;\"><b><b><strong><strong><strong><strong><strong><b><strong><strong><strong><strong><strong><strong><strong><strong><strong><span style=\"font-size:16px;color:#003399;\"><span style=\"font-size:10px;\"><b><b><strong><strong><strong><strong><span style=\"font-size:9px;\"><strong>\u7ee7\u7eed\u54a8\u8be2\u5373\u89c6\u4f5c\u60a8\u540c\u610f<\/strong><strong>IDP<\/strong><strong>\u6559\u80b2\u96c6\u56e2<\/strong><\/span><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/span><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/strong><\/strong><\/a><b><b><b><strong><strong><a href=\"https:\/\/www.idp.cn\/terms_of_use\" data-ke-src=\"https:\/\/www.idp.cn\/terms_of_use\">\u7f51\u7ad9\u4f7f\u7528\u6761\u6b3e<\/a>\u4e0e<a href=\"https:\/\/www.idp.cn\/privacy_policy\" data-ke-src=\"https:\/\/www.idp.cn\/privacy_policy\">\u9690\u79c1\u4fdd\u62a4\u653f\u7b56<\/a><\/strong><\/strong><\/b><\/b><\/b><\/span><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/span><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/strong><\/strong><\/strong><\/strong><\/strong><\/b><\/b><\/span><\/strong><b><b><b><strong><a href=\"https:\/\/www.idp.cn\/privacy_policy\" data-ke-src=\"https:\/\/www.idp.cn\/privacy_policy\"><\/a><\/strong><\/b><\/b><\/b><\/p><span style=\"font-size:10px;\"><\/span><br>"},{"time":20,"prompt_content":"<p><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;\"><span style=\"color:#003399;font-size:14px;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;font-size:14px;\">\u540c\u5b66\u60f3\u53bb\u54ea\u4e9b\u56fd\u5bb6\uff1f<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>"},{"time":20,"prompt_content":"<span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;font-size:14px;\">\u6709\u8bed\u8a00\u6210\u7ee9\u4e86\u4e48<\/span><span style=\"color:#003399;font-family:-apple-system, BlinkMacSystemFont, &quot;background-color:#FFFFFF;font-size:14px;\">?&nbsp;<\/span><\/span><br>"},{"time":20,"prompt_content":"<span style=\"color:#003399;\"><span style=\"font-size:14px;\"><span style=\"color:#003399;font-size:14px;\">\u8fd8\u5728\u4e48\uff1f\u6700\u65b0\u9662\u6821\u6392\u540d\u62a2\u5148\u77e5\uff01\u8f93\u5165\u624b\u673a\u53f7\u53ef\u4ee5\u63d0\u524d\u83b7\u53d6\u6700\u65b0QS\u5b66\u79d1\u6392\u540d &nbsp;@_@<\/span><\/span><\/span><br>"},{"time":20,"prompt_content":"<span style=\"color:#003399;\"><\/span><p><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><strong><strong><span style=\"color:#003399;font-size:14px;\"><span style=\"color:#003399;font-size:14px;\"><\/span><\/span><\/strong><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/strong><\/span><\/span><\/span><\/strong><\/strong><\/span><\/p><p><span style=\"color:#003399;\"><span style=\"font-size:14px;\"><span style=\"color:#003399;font-size:14px;\">\u8003\u7814\u7559\u5b66\u4e24\u4e0d\u8bef\uff01<span style=\"color:#003399;font-size:14px;\">\u9ad8\u8003\/\u8003\u7814\u7559\u5b66\u53cc\u4fdd\u9669\uff0c<\/span>\u5728\u7ebf\u514d\u8d39\u54a8\u8be2\u83b7\u53d6\u7533\u8bf7\u65b9\u6848\u5427\u3002<\/span><\/span><span style=\"font-size:14px;\"><\/span><\/span><\/p><p><br><\/p>"},{"time":20,"prompt_content":"<strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><span style=\"color:#003399;font-size:14px;\">\u60a8\u8fd8\u53ef\u4ee5\u62e8\u625313262693583\u6216\u8005<\/span><\/strong><\/strong><strong><span style=\"color:#003399;font-size:14px;\">4006979728\u54a8\u8be2\u54e6\uff0c\u6211\u4eec\u7acb\u5373\u5b89\u6392\u987e\u95ee\u4e0e\u60a8\u8054\u7cfb\uff01<\/span><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong><\/strong>"}]}];//机器人智能引导 var guide_type = "0";//达内兼容,智能引导是不是只使用【其他】的内容 var scene_guide_list = {"1":{"option_id":"1","option_cont":[{"type":"message","cont":"\u6b22\u8fce\u4f60\u7684\u54a8\u8be2"}],"action":"","option_btn":[]}};//场景引导 var scene_cookie = getCookie("scene_guide_72203883"); var scene_guide_step = "";//场景引导已经发送过的步骤 var scene_step_arr = scene_guide_step.split(','); var scene_host = "www10.53kf.com";//场景引导域名 var formSendClick = false;//是否点击了场景引导提交 var robotassign = "2";//接待优先 0:客服优先 1:机器人优先 2:智能引导 3:场景引导 var frobotassign = "1";//离线接待优先 0:留言 1:机器人优先 2:场景引导 var zdkf_auto = "15";//手动选择模式自动连接 off:关闭 数字:连接秒数 var worker_ids = "osek.ma@idp.com,pony.ma@idp.com,joyce.shen@idp.com,81407215@qq.com,434570972@qq.com,3260822723@qq.com,1085738787@qq.com,970716630@qq.com,babbbbytang@163.com";//参与接待的工号 var hasOnlineKf = "1";//是否有参与接待的工号在线 var zdkf_type = '1';//指定方式 1:人员 3:分组 var kflist = "no";//是否展示客服列表 on/off var kf_status = '1';//显示客服繁忙程度 var kf_expand = "1";//默认展开分组 var kf_show = "1";//显示离线客服 var dept_man_show = "1";//显示客服分组 var lnk_overflow = "0";//发送lnk用,0:正常 1:走溢出,java不用判断排班 2:没有客服接待,直接进留言 3:抢接机器人对话,不走排班,小休也进 var receptionList = [];//手动选择 接待列表 var reg = "0";//咨询前注册 var is_reg = "0";//是否已经注册过 var reg_prompt = "";//注册提示语 var fkzc_fields = [];//注册选项 var ly_first = true; // 首次留言 var ly_captcha = '2';//留言验证码是否开启 var lword_prompt = "您好,现在客服不在线,请留言。如果没有留下您的联系方式,客服将无法和您联系!";//留言提示语 var m_lwordObject = ''; // 留言对象 var ly_assign_type = '1';//分配方式 0:手动分配 1:自动分配 var ly_assign_obj = '';//指定方式 zbkf:值班客服 zdgs:指定公司 zdfz:指定分组 zdkf:指定客服 var ly_assign_value = '';//指定对象 var fkly_fields = [{"name":"\u59d3\u540d","isMust":"1","field_name":"name","order":"0","isZdy":"0"},{"name":"\u624b\u673a","isMust":"1","field_name":"mobile","order":"1","isZdy":"0"},{"name":"\u610f\u5411\u56fd\u5bb6","isMust":"1","field_name":"zdy_zc1","order":"2","isZdy":"1"},{"name":"\u7559\u5b66\u9636\u6bb5","isMust":"1","field_name":"zdy_zc2","order":"3","isZdy":"1"},{"name":"\u6240\u5728\u5730","isMust":"1","field_name":"zdy_zc3","order":"4","isZdy":"1"}];//表单留言选项 var lwordObjectInfo = {"objectType":"auto","object":""};//留言对象 var lyClick = false;//是否点击提交留言 var close_ly_window_timer = 0;//留言成功自动关闭窗口定时器 var robotList = {"517a94346215843124e631b85db1b8a6":{"api_robot_id":"1ffaa5ec-f651-11eb-a05f-3cecef249f94","api_name":"ai","name":"\u7559\u5b66\u52a9\u7406","prompt":"\u6b22\u8fce\u60a8\u7684\u54a8\u8be2\uff0c\u5f88\u9ad8\u5174\u4e3a\u60a8\u670d\u52a1","un_prompt":"\u5f88\u62b1\u6b49\uff0c\u65e0\u6cd5\u56de\u7b54\u60a8\u7684\u95ee\u9898\u3002 \u60a8\u53ef\u4ee5\u9009\u62e9\u8f6c\u4eba\u5de5\u6216\u7ed9\u6211\u4eec\u7559\u8a00","zsktb_url":"..\/img\/upload\/10203883\/robot\/201909170908155863.png","id":"517a94346215843124e631b85db1b8a6","feedback":"1","lwswitch":"0","zdzrg":"0","unret_times":"2","admit_rule":"0","kw_trans":[],"task_robot_use":1,"vars":[{"tag":"{{\u5fae\u4fe1}}","val":"deleted"},{"tag":"{{\u624b\u673a}}","val":"deleted"}],"hots":[],"robot_time":{"switch":0,"robot_timeout_data":[],"isopen":0},"task_switch":0,"recommend_phrase_swich":1,"task_robot_info":{"task_id":"069332c5f5679bc021ed1af70815338d","tconn_promet":{"type":"messages","content":[{"type":"message","prompt_content":"&lt;p&gt;&lt;span style=&quot;color:#28334B;font-family:-apple-system, BlinkMacSystemFont, &quot; background-color:#ffffff;&quot;=&quot;&quot;&gt;\u60a8\u597d\uff0c\u4e3a\u4e86\u66f4\u597d\u7684\u4e3a\u60a8\u505a\u7559\u5b66\u7684\u8bc4\u4f30\u89c4\u5212\uff0c\u5efa\u8bae\u60a8\u5148\u7559\u4e00\u4e0b\u59d3\u540d\u548c\u8054\u7cfb\u7535\u8bdd\u3002\u60a8\u4e5f\u53ef\u4ee5\u52a0\u8001\u5e08\u5fae\u4fe113262693583\u968f\u65f6\u5e2e\u4f60\u505a\u7559\u5b66\u7533\u8bf7\u89c4\u5212\uff01&lt;\/span&gt;&lt;\/p&gt;","time":"1"},{"type":"message","prompt_content":"\u60a8\u54a8\u8be2\u54ea\u4e2a\u56fd\u5bb6\uff1f","time":"5"},{"type":"message","prompt_content":"\u60a8\u53ef\u4ee5\u7559\u4e0b\u8054\u7cfb\u7535\u8bdd\u548c\u7559\u5b66\u7684\u56fd\u5bb6\uff0c\u6211\u4eec\u5b89\u6392\u987e\u95ee\u8001\u5e08\u5c3d\u5feb\u4e0e\u60a8\u8054\u7cfb\u3002","time":"5"},{"type":"message","prompt_content":"&lt;span style=&quot;font-size:12px;&quot;&gt;\u60a8\u8fd8\u53ef\u4ee5\u62e8\u625313262693583\uff08\u5fae\u4fe1\u540c\u53f7\uff09\u6216\u80054006979728\u54a8\u8be2\u54e6\uff0c\u6211\u4eec\u7acb\u5373\u5b89\u6392\u987e\u95ee\u4e0e\u60a8\u8054\u7cfb\uff01&lt;\/span&gt;&lt;span style=&quot;color:#292929;font-family:BuenosAiresTTFRegular;font-size:12px;background-color:#FFFFFF;&quot;&gt;&lt;\/span&gt;","time":"1"}]},"tclose_promet":[{"type":"message","content":"\u8bf7\u60a8\u7559\u4e0b\u8054\u7cfb\u7535\u8bdd\u3001\u610f\u5411\u56fd\u5bb6\u3001\u7533\u8bf7\u9636\u6bb5\u7b49\u4e2a\u4eba\u4fe1\u606f\uff0c\u6211\u4eec\u4f1a\u7b2c\u4e00\u65f6\u95f4\u5b89\u6392\u4e13\u4e1a\u8001\u5e08\u56de\u590d\u60a8\u3002","time":"0"}],"guide_content":[[{"id":"f396e93d-b0ce-c082-b05a-cb6434d44b39","title":"\u662f\u5426\u7b26\u5408\u90ae\u7bb1","parent_id":"0","answer":[{"type":"message","content":"\u6536\u5230\uff01&lt;span&gt;\u60a8\u8fd9\u8fb9\u65b9\u4fbf\u518d\u7559\u4e00\u4e0b\u624b\u673a\u5417\uff1f&lt;\/span&gt;","time":"2"}],"un_answer":"","question":[{"type":"match","regular":"email"}],"link_id":"0"},{"id":"5e2e5163-2fc3-0c34-9677-854082d0a3ec","title":"\u662f\u5426\u7b26\u5408\u624b\u673a","parent_id":"0","answer":[{"type":"message","content":"\u597d\u7684\uff0c\u6211\u4eec\u4f1a\u5b89\u6392\u4e13\u4e1a\u987e\u95ee\u8001\u5e08\u5c3d\u5feb\u8054\u7cfb\u60a8\uff0c\u611f\u8c22\u60a8\u7684\u54a8\u8be2\u3002","time":"2"}],"un_answer":"","question":[{"type":"match","regular":"mobile"}],"link_id":"0"},{"id":"0b5cdfc5-6dfd-d3fd-1f99-9bc7ac461b89","title":"\u662f\u5426\u7b26\u5408QQ","parent_id":"0","answer":[{"type":"message","content":"\u6536\u5230","time":"2"},{"type":"message","content":"\u60a8\u8fd9\u8fb9\u65b9\u4fbf\u518d\u7559\u4e00\u4e0b\u624b\u673a\u5417\uff1f","time":"2"}],"un_answer":"","question":[{"type":"match","regular":"qq"}],"link_id":"0"},{"id":"38d107d7-373c-ecbc-52a1-de96d9d4d021","title":"\u662f\u5426\u7b26\u5408\u5fae\u4fe1","parent_id":"0","answer":[{"type":"message","content":"\u597d\u7684\uff0c\u6211\u4eec\u4f1a\u5c3d\u5feb\u8054\u7cfb\u60a8\u7684\uff0c\u65b9\u4fbf\u60a8\u4e5f\u7559\u4e0b\u7535\u8bdd\uff0c\u65b9\u4fbf\u4e0e\u60a8\u89c4\u5212\u7559\u5b66\u65b9\u6848\u3002","time":"2"}],"un_answer":"","question":[{"type":"match","regular":"wechat"}],"link_id":"0"}]]}}};//所有机器人 var robot_id = "";// 在线机器人id var frobot_id = "517a94346215843124e631b85db1b8a6";// 离线机器人id var robot_host = "www10.53kf.com";//机器人对话服务域名 var robot_answer_delay = 1000;//ai常规问答回复延迟时间 var nlp_robot_use = 0;//对话AI机器人是否启用 var talk_robot_info = [];//机器人对话信息 var task_robot_info = [];//任务机器人信息 var task_type = "match_first";//任务库match_first正则匹配优先,keyword_first关键词匹配优先 var cloud_robot_feedback = "0";//私有云是否强制显示机器人反馈 var taskHotsInfo = [];//机器人热点问题 var fire_set = "0";//是否开启防火墙 var fire_level = "1";//防火墙等级 var lnk_fire = "fbe462cb92b5b326778ce14a10b2f6d1ad14d5c51dbbd643e07ab12c6d093670"; // 防火墙lnk校验参数 var firewall_uuid = "c2816b828ed23781ee6f15e212bf3d38";// 访客防火墙 uuid 作为页面识别 var verify_code = "0";//是否开启点触式验证码 var is_verify = "0";//是否需要验证 var verify_key = "295510f8e4d06a02faf59e494a4b6de4";//comet验证用 var lnk_param = "gD8%3F"; // lnk参数 var saverec_code = "3e2788fd9eef0702dcbe78bf74a248f4426d2ed232ee52ebd6042ec6179e3450";//聊天记录下载验证码 var commond_version = "123456"; //webClient.js的版本号,上发到服务端 var lnkopentime = "1732524095";//访客端程序加载时间 var open_time = new Date().getTime();//窗口打开时间 var cname = "idp-国际教育专家,雅思主办方之一";//公司名称 var company_logo = "https://www10.53kf.com/img/upload/10203883/mobile/temp/mobile_53kf_1559811692.png";//公司logo var kf_header = "style/chat/new2017/image/png/company-logo-default.png";//默认头像 if (company_logo != '') kf_header = company_logo; var adminHeaderUrl = "https://www11.53kf.com/upload/header/72203883/10337631/16085156473662.jpg"; //主账号头像 var admin_bname = "免费咨询电话13262693583";//主账号昵称 var adminId6d = "10337631";//主账号id6d var kefuCodeList = {"10337631":"\/upload\/header\/72203883\/10337631\/16194066413881.jpeg","10337877":"\/upload\/header\/72203883\/10337877\/16121576071082.png","10337993":"\/upload\/header\/72203883\/10337993\/16795511257398.png","10337997":"\/upload\/header\/72203883\/10337997\/16189895764365.jpeg","10541051":"\/upload\/header\/72203883\/10541051\/16164868114346.png","10598591":"https:\/\/s3v2.53kf.com\/kfcs\/2024\/11\/image\/personal_settings_kf_code\/72203883_common_1732087434_673d8e8ad20f2.png","10629411":"\/upload\/header\/72203883\/10629411\/16679035794880.png","11060791":""};//所有客服微信二维码 var visitorPathSwitchList = {"10337877":"1","10337993":"1","10337994":"1","10337995":"1","10337997":"1","10338015":"1","10341953":"0","10368624":"1","10540741":"1","10540751":"1","10541051":"1","10560761":"1","10560771":"1","10629411":"1"};//所有客服的 访客操作和行为轨迹 开关 var visitorPathSwitch = '1';//默认开启 var admin_wx_code = '';//当前客服的微信二维码 var fk_music = "";//访客端音效 var color_kfqp = "rgb(239, 243, 246)";//客服气泡颜色 var color_fkqp = "rgb(31, 140, 232)";//访客气泡颜色 var color_fkxx = "rgb(255, 255, 255)";//访客消息颜色 var color_kfxx = "rgb(58, 60, 76)";//客服消息颜色 var color_fsan = "rgb(30, 137, 230)";//发送按钮颜色 var fk_history = "0";//显示上次聊天记录 var kfpf = "1";//评分开关 var evaluate_way = "0";//评价方式 var default_star = "5";//默认星值 var three_star_guide = "留下您的宝贵意见,我们将为此提升服务质量";//3星评价引导语 var two_star_guide = "发生了什么不开心的事?请反馈给我们";//2星评价引导语 var one_star_guide = "发生了什么不开心的事?请反馈给我们";//1星评价引导语 var evaluate_ask = "0";//评价填写要求 var vote_true = false;//是否评过分 var kf_card = "1";//是否展示客服名片 var net_callBack = "0";//网络回拨功能是否开启 var callBackClick = false;//是否点了击网络回呼 var callback_phone = '';//客服网络回拨电话 var wx_public_account = "0";//是否公总号授权 0,1 var wx_drainage = "1";//是否开启微信访客端引流 0,1 var qrcode_url = '';//公众号二维码图片 var check_phone = "0";//对话中手机号码验证 开关 var checkPhoneArr = new Array(); var visitor_form = [];//自定义表单 var pc_inertact_menu = [];//互动菜单 var pcMenuHideTimes = "0";//自动隐藏互动菜单点击次数 var inertactMenuAnswerTime = 500;//互动菜单快问快答的回答时间间隔(毫秒) var mini_size = "1";//浮框尺寸 var btn_switch = ["wechat","qq","phone"];//信息识别开关 微信 qq 电话 var last_talk_id = 0; var conn_prompt_num = 0; var browserType = getBrowserType(); var pcOs = getPcOs(); var sensitiveWords = ["\u50bb\u903c","\u64cd\u4f60\u5988","\u4f60\u5988"];//敏感词 var mobile_finger_log = "0";//浏览器指纹日志 var talk_finger_log = "0";//对话浏览器指纹检测 var encrypt_code = "03tpisygids8dp857feqbgvt";//访客消息中手机号加密规则 var information_switch = 0; // 后台用户隐私授权开关 2022.1.10 var information_info = []; // 用户隐私授权内容 2022.1.10 var company_activity = '<p style="text-align:center;" size="0" _root="undefined" __ownerid="undefined" __hash="undefined" __altered="false"></p><p class="media-wrap image-wrap align-center"></p><div class="media-wrap image-wrap align-center" style="text-align:center"><img file_id="https://s3v2.53kf.com/kfxt/2024/11/image/72203883_setting_1731394186_6732fa8a4d448.jpg" ="" alt="" loop="" autoplay="" controls="" poster="" src="https://s3v2.53kf.com/kfxt/2024/11/image/72203883_setting_1731394186_6732fa8a4d448.jpg"/></div><p></p>' // 活动公告 var fk_debug = '' // debug-log switch var conn_prompt_bgcolor = '' //接通提示语气泡背景色 var mobile_record = '';//线索追问 记录访客消息中的手机号,用于下一话术 var city_record = '';//线索追问 记录访客消息中的城市,用于下一话术 var upDownMsg = [];//对话上下文 var auth_info = {"ip_area":"\u4e0a\u6d77","auth_type":0,"name":"","card":""};//账号验证信息 var check_phone_callback = '0';//网页回呼是否开启短信验证 1开启 var codeSendClick = false;//是否能点击发送网页回呼验证码 var remote_port = "39220" //获取用户机器上连接到 Web 服务器所使用的端口号 var queued_ly_buttton = '0';//判断是否显示排队中的留言按钮 var u_custom_info = "";//第三方自定义信息,用于留言请求 var wait_robot_autoin = "0";//排队中是否自动进入机器人对话 0关闭 1开启 var priority_use = "0";//企业欢迎语优先 var conn_prompt_new = {"carousel_prompt1":"<p>\u60a8\u597d\uff0c\u6b22\u8fce\u60a8\u7684\u54a8\u8be2\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u9700\u8981\u5e2e\u52a9\u7684\u5417\uff1f<\/p>","carousel_time1":0,"type1":1,"carousel_prompt2":"","carousel_time2":null,"type2":"","carousel_prompt3":"","carousel_time3":null,"type3":"","carousel_prompt4":"","carousel_time4":null,"type4":"","carousel_prompt5":"","carousel_time5":null,"type5":"","carousel_prompt6":"","carousel_time6":null,"type6":"","carousel_prompt7":"","carousel_time7":null,"type7":"","carousel_prompt8":"","carousel_time8":null,"type8":""};//企业欢迎语(多轮) var card_match_info = []//访客端知识图文参数 }catch(e){console.log(e)} var information_state = ''; // 用户隐私授权状态 try { information_state = sessionStorage.getItem(arg+'_user_info'); } catch (e) { console.log(e) } // 2022.02.24 活动公告图片 外链处理 $(".guanggao-area").html(company_activity) $(".guanggao-area").find("a").attr("target","_blank") // console.log(lang_face) try { if (!prompt_cookie) { if (window.localStorage) { var local_prompt_guide = window.localStorage.getItem('prompt_guide_'+company_id); var local_prompt_guide_expired = window.localStorage.getItem('prompt_guide_'+company_id+'__expired'); var cur_mintime = new Date().getTime(); if (local_prompt_guide_expired > cur_mintime) { prompt_cookie = local_prompt_guide; } else { window.localStorage.removeItem('prompt_guide_'+company_id); window.localStorage.removeItem('prompt_guide_'+company_id+'__expired'); } } } } catch (error) {} initial(); var medium_args = ''; //收集来自媒体的数据 try{ var medium_reg = [/bd_vid=[^&]+/g,/qz_gdt=[^&]+/g,/gdt_vid=[^&]+/g,/clickid=[^&]+/g]; if(/bd_vid|qz_gdt|gdt_vid|clickid/g.test(talkpage)){ for(var i=0;i<medium_reg.length;i++){ if(talkpage.match(medium_reg[i])!=null){ medium_args = talkpage.match(medium_reg[i])[0]; break; } } }else if(/bd_vid|qz_gdt|gdt_vid|clickid/g.test(frompage)){ for(var i=0;i<medium_reg.length;i++){ if(frompage.match(medium_reg[i])!=null){ medium_args = frompage.match(medium_reg[i])[0]; break; } } }else if(/bd_vid|qz_gdt|gdt_vid|clickid/g.test(landpage)){ for(var i=0;i<medium_reg.length;i++){ if(landpage.match(medium_reg[i])!=null){ medium_args = landpage.match(medium_reg[i])[0]; break; } } } }catch(e){} function changeModule(type){ switch(type){ case 'showkflist': $(".talk .line-up").hide(); $(".maskArea").hide(); $(".select-customer").show().siblings().hide(); break; case 'talk': $(".connectionFail").hide(); $(".talk").show().siblings().hide(); $('.pc_talk_content').show(); $(".talk .line-up").hide(); try{ $('.edui-upload-video').eq(0).trigger('play'); }catch(e){} $(".robot-function-bar").hide().siblings(".talk-function-bar").show(); $(".system-wait").remove(); $(".maskArea").hide(); hideRobotTips(); break; case 'reg': showRegHtml(); $(".before-talk").show().siblings().hide(); break; case 'scene': $(".talk").show().siblings().hide(); $(".talk").addClass('hasScene'); $('.pc_talk_content').show(); $(".pc-visitor-footer").hide(); break; case 'lword': $(".talk .line-up").hide(); $(".maskArea").hide(); showLwordHtml(); $(".leave-message").show().siblings().hide(); break; case 'stop': $(".talk").show().siblings().hide(); $(".beStopped").text(reject_prompt).show(); display_sys_msg("access block!"); break; case 'robot': changeModule('talk'); $(".window-content").removeClass('on-talking'); $(".pc-visitor-footer").show(); $(".talk-function-bar").hide().siblings(".robot-function-bar").show(); $("#robot_start_time").text(getTime2()); showRobotHtml(); if (zsk_admit_rule != '0') $(".robotToKF").hide(); if (zsk_api_robot_id != "" || task_robot_use == '1' || zsk_lwswitch == '1') $(".robotToLword").hide(); break; case 'busy': changeModule('talk'); $("#file-picker").on("click",".webuploader-element-invisible",function(){ return false; }) if(robot_id != ''){ $(".toRobot").show(); } $(".personNum").html(m_busyCnt); $(".talk .line-up").show(); if(browserType == 'IE'){ $(".changeColor-wrap").siblings(".function-icon-disabled").css({"opacity":0.5,"filter":"alpha(opacity = 50)","cursor":"not-allowed"}); $(".changeColor-wrap").siblings(".function-icon-disabled").not(".upload_box").addClass("disabled"); }else{ $(".changeColor-wrap").siblings(".function-icon-disabled").addClass("disabled"); } break; case 'black': changeModule('talk'); $(".beStopped").show(); break; case 'lnksuccess': changeModule('talk'); $(".changeColor-wrap").siblings(".function-icon-disabled").removeClass("disabled"); $(".upload_box").hover(function(){ $(".upload_copy .svgColor").css("fill","#1F8CEB") },function(){ $(".upload_copy .svgColor").css("fill","#466080") }) showVoteIcon(); $(".talk").removeClass('hasScene'); $(".pc-visitor-footer").show(); if (net_callBack == 1) { $(".talk").addClass("hasCallBack"); } var msg_div = "<div id='talk_pos' style='display: none'></div>"; $('.pc_talk_content').append(msg_div); break; case 'talkend': try{ $(".pc_ptlink_notice").each(function(){ $(this).remove(); }); }catch (e){} $(".maskArea").show(); try{ $('.talk .edui-upload-video').trigger('pause'); }catch(e){} kindeditor.html(""); try{ menu.menuhide(); }catch(e){} break; } } //手动选择模式 展示客服列表 function showKfList(){ changeModule('showkflist'); var zdkf_prompt = UBBCode(UBBEncode("欢迎光临!请选择以下客服人员开始咨询:")); var html = "<h6 class='font13 color-grey-deep'>"+zdkf_prompt+"</h6><div class='groups'>"; if (zdkf_type == '1') { if (dept_man_show == '1') {// 指定人员+显示分组 var kflistHtml = getKflistHtml('group_kf',receptionList); }else{ var kflistHtml = getKflistHtml('kf',receptionList); } }else if (zdkf_type == '3'){ var kflistHtml = getKflistHtml('group',receptionList); } html += kflistHtml; if (robot_id != '') { var robotHtml = getKflistHtml('robot',robotList[robot_id].name); html += robotHtml; } html += "</div>"; $(".select-customer").html(html); } //组装客服列表html function getKflistHtml(type,infos){ var html = ''; if (type == 'kf') { if (dept_man_show != '1') { if (kf_expand == 1) {// 20 全部客服 html += "<p class='slide-down'>"+langs[20]+"</p><div class='customer-lists'>"; }else{ html += "<p>"+langs[20]+"</p><div style='display:none;' class='customer-lists'>"; } } for (var i=0;i<infos.length;i++){ var worker_id = infos[i].worker_id; var nowlink = infos[i].nowlink; var maxlink = infos[i].max_link; var bname = infos[i].bname; var is_online = infos[i].state; var kf_state = ''; if (is_online == '1') { kf_state = kfState(maxlink, nowlink); html += "<p onclick='to_kf(\""+worker_id+"\",1)'><a class='font12 color-blue'>"+bname+kf_state+"</a></p>"; }else{ if (kf_show == '1') { html += "<p onclick='to_kf(\""+worker_id+"\",0)'><a class='font12 color-grey-light'>"+bname+"</a><font class='color-blue'>("+langs[19]+")</font></p>"; } } } html += "</div>"; }else if (type == 'group') { html += "<p class='slide-down'>"+langs[26]+"</p><div class='customer-lists'>";//全部分组 for (var i=0;i<infos.length;i++){ var group_name = infos[i].group_name; var worker_ids = infos[i].worker_ids; var worker_num = "(<span style='color:gray'>"+langs[22]+"</span>)";//离线 var is_online = 0; if (infos[i].online_num > 0) { // worker_num = infos[i].online_num+langs[24];//位客服在线 worker_num = '';//位客服在线 is_online = 1; } html += "<p onclick='to_kf(\""+worker_ids+"\","+is_online+")'><a class='font12 color-blue'>"+group_name+"</a> "+worker_num+"</p>"; } html += "</div>"; }else if (type == 'group_kf') { for (var i=0;i<infos.length;i++) { if (infos[i].online_num == 0 && kf_show != '1') continue; var group_name = infos[i].group_name; if (group_name == '') group_name = langs[64];//未分组 if (kf_expand == 1) { html += "<p class='slide-down'>"+group_name+"</p><div class='customer-lists'>"; }else{ html += "<p>"+group_name+"</p><div style='display:none;' class='customer-lists'>"; } var kf_html = getKflistHtml('kf',infos[i].workers,true); html += kf_html; } }else if (type == 'robot') { html += "<p class='slide-down'>"+langs[27]+"</p>";//智能机器人(自助答疑) html += "<div class='customer-lists'><a class='font12 color-blue' onclick='showzsk()'>"+infos+"</a></div>"; } return html; } // 客服状态 function kfState(max_link, cnt){ var state = ""; if(max_link!=cnt){ if (kf_status == '1') { if (cnt >= Math.ceil(max_link/2)) { state = '<font color="#FF0000">('+langs[33]+')</font>';//繁忙 } } }else{ state = '<font color="#FF0000">('+langs[32]+')</font>';//排队 } return state; } function showRegHtml(){ var reg_html = '<div class="message-h font13 color-grey-deep">'+UBBCode(UBBEncode(reg_prompt))+'</div>'; for(var key=0;key<fkzc_fields.length;key++){ if (fkzc_fields[key].isMust == 1) { reg_html += '<p class="message-name font12 color-grey-deep"><label class="color-red">*</label>'+fkzc_fields[key].name+'<a>'+langs[0]+fkzc_fields[key].name+'</a></p><input id="reg_'+fkzc_fields[key].field_name+'" type="text" class="must"/>'; }else{ reg_html += '<p class="message-name font12 color-grey-deep">'+fkzc_fields[key].name+'<a>'+langs[0]+fkzc_fields[key].name+'</a></p><input id="reg_'+fkzc_fields[key].field_name+'" type="text"/>'; }; } reg_html += '<a class="message-btn prevent-send" id="to_link" onclick="sendReg(this)" style="background-color:'+color_fsan+';">'+langs[4]+'</a>';//发送并咨询 $(".before-talk").html(reg_html); } function showRobotHtml(){ var hot_str = ''; if (zsk_hots.length > 0) { var q_list = ''; for (var i = 0; i < zsk_hots.length; i++) { var order = i + 1; // 单引号兼容 var init_question = zsk_hots[i].question.replace(/'/g,"\\'"); q_list += '<li onmouseup="this.style.color=\'#62778C\'" onclick="dealRobotQa(\''+zsk_hots[i].id+'\',\''+init_question+'\',\''+zsk_hots[i].answer+'\',\'hot\')">'+order+'.'+zsk_hots[i].question+'</li>'; } hot_str += '<div class="question-lists" ><p>以下是您关心的问题吗:</p>'+ '<ul class="questions">'+ q_list+ '</ul>'+ '</div>'; } var zsk_conn_prompt = UBBCode(UBBEncode(zsk_prompt)); var msg_btns=auto_msg_handle(zsk_conn_prompt); var html_str = '<div class="pc-service" id="robot_start">'+ '<div class="pc-service-left" style="display: inline-block;"><img src="'+zsk_zsktb_url+'" alt="头像"></div>'+ '<div class="pc-service-right">'+ '<p><label>'+zsk_name+'</label><span id="robot_start_time"></span></p>'+ '<div class="pc-service-info pc-robot-info">'+ '<h6 class="pc-robot-reply">'+zsk_conn_prompt+'</h6>'+ hot_str+ '</div>'+msg_btns+ '</div>'+ '</div>'; display_talk_msg(html_str); } function showLwordHtml(){ var fkly_html = '<div class="message-h font13 color-grey-deep">'+UBBCode(UBBEncode(lword_prompt))+'</div>'; for(var key=0;key<fkly_fields.length;key++){ if (fkly_fields[key].isMust == 1) { fkly_html += '<p class="message-name font12 color-grey-deep"><label class="color-red">*</label>'+fkly_fields[key].name+'<a>'+langs[0]+fkly_fields[key].name+'</a></p><input id="ly_'+fkly_fields[key].field_name+'" type="text" class="must"/>'; }else{ fkly_html += '<p class="message-name font12 color-grey-deep">'+fkly_fields[key].name+'<a>'+langs[0]+fkly_fields[key].name+'</a></p><input id="ly_'+fkly_fields[key].field_name+'" type="text"/>'; }; } if (lwordObjectInfo['objectType'] == 'auto') { m_lwordObject = lwordObjectInfo['object']; }else{ var is_appoint_group = ''; var object_html = ''; var objectName = langs[29]; var objectArr = lwordObjectInfo['object']; if (lwordObjectInfo['objectType'] == 'zdkf') { var is_first_kf = true; for(var group_id in objectArr){ var group_name = objectArr[group_id]['group_name']; var workers = objectArr[group_id]['workers']; var worker_str = '<ul data-text="'+group_name+'" class="person-lists slide-tpl" style="display: none;">'; for(var id6d in workers){ var bname = workers[id6d]; if (bname == '' || bname == null) bname = langs[45]; if (is_first_kf) { is_first_kf = false; m_lwordObject = 'w#' + id6d; objectName = group_name+'/'+bname; } worker_str += '<li class="person-list" onclick="set_ly_obj(this)" data-val="w#'+id6d+'" title="'+bname+'">'+bname+'</li>'; } worker_str += '</ul>'; object_html += '<li class="lword-object-list" data-val="0">'+group_name+worker_str+'</li>'; } }else{ is_appoint_group = 'is_appoint_group'; var is_first_group = true; for(var group_id in objectArr){ if (is_first_group) { is_first_group = false; m_lwordObject = 'g#' + group_id; objectName = objectArr[group_id]; } object_html += '<li onclick="set_ly_obj(this)" data-val="g#'+group_id+'">'+objectArr[group_id]+'</li>'; } } fkly_html += '<div class="leaveObj-wrap field-wrap" style="display:block;font-size:12px;">'+ '<p class="message-name isInfo-msg"><label class="color-red">*</label><span>'+langs[28]+'</span></p>'+ '<div class="lword-object-wrap '+is_appoint_group+'">'+ '<p class="lword-object color-grey-light">'+objectName+'</p>'+ '<ul class="lword-object-lists" style="display: none;">'+object_html+'</ul>'+ '</div>'+ '</div>'; } fkly_html += '<p class="message-name font12 color-grey-deep">'+langs[2]+'</p>'; fkly_html += '<textarea id="ly_content"></textarea>'; fkly_html += '<a class="message-btn" id="submit_lword" onclick="submit_lword()" style="background-color:'+color_fsan+';">'+langs[6]+'</a>'; try{//定制留言界面 预留方法 fkly_html = get_ly_html(fkly_html); }catch(e){} $(".leave-message").html(fkly_html); // if (is_reg == '1') getUserCard(); } //设置留言对象 function set_ly_obj(obj){ m_lwordObject = $(obj).attr("data-val"); } // 设置留言项的值 function setLyItemsValue(userCard){ for(var key=0;key<fkly_fields.length;key++){ var field = fkly_fields[key].field_name; if (userCard[field] == undefined || userCard[field] == '' || userCard[field] == null) continue; try{document.getElementById("ly_"+field).value = userCard[field];}catch(e){} if (field == 'name') { $("#ly_name").prev().hide(); $("#ly_name").hide(); } } } //留言关闭窗口 function close_ly_window(){ if (company_tpl == 'minichat') { window.location.reload(true); try{ top.postMessage('53kf_min_window', '*');//强制对话框最小化 }catch(e){} }else{ basic.close_window(); } try{ if (close_ly_window_timer) { clearInterval(close_ly_window_timer); } }catch(e){} } function checkNowImageText(str){//检查哪些匹配项需要接口调取替换 str = HtmlDecode(str) var _arr = [] for(var i=0;i<card_match_info.length;i++) { if(str.indexOf( card_match_info[i].card_match ) > -1 && card_match_info[i].card_match != ''){ _arr.push({id:card_match_info[i].id,type:'request'}) } } var _flag = true try { var _ImageTextlist = JSON.parse(sessionStorage.getItem('ImageTextList')) if(_ImageTextlist){ for(var i=0;i<_ImageTextlist.length;i++) { for(var j=0;j<_arr.length;j++) { if(_ImageTextlist[i].out_id==_arr[j].id){ _arr[j].type = 'local' } } } } } catch (error) { return _arr } return _arr } //发送消息时候匹配知识空间图文 function matchKnowledgeImgText(msg,type,list){ var regex = /<A.*?>(.*?)<\/A>/g; if(type){ var regex =/\[URL.*?](.*?)\[\/URL]/g; } msg=msg.replace(regex,function($1,$2,$3,$4,$5){ var Urlreg = /(((ftp|http|https):\/\/)?([\w-]+\.)+(hk|com|cn|info|net|org|me|top|tw|tv|xyz|cc)([\/\?][\w!~;*'()&=\+\$%\-\/\#\?:\.,\|\^]*)?)/gim; var matches = msg.match(Urlreg); var str for(var i=0;i<matches.length;i++){ var now_match if(list){ now_match = matchRequestImageText(matches[i],list)//用传入数据进行图文替换 matchLocalImageText(matches[i])//从本地缓存取图文替换 }else{ now_match = matchLocalImageText(matches[i])//从本地缓存取图文替换 } if(now_match){ str = $2.replace(matches[i],'[image-text]'+JSON.stringify(now_match)+'[/image-text]') }else{ str = $1 } } return str }); return msg } function matchLocalImageText(str){//从缓存中取匹配图文展示 str = HtmlDecode(str) try { var _ImageTextlist = JSON.parse(sessionStorage.getItem('ImageTextList')) if(_ImageTextlist){ for(var i=0;i<_ImageTextlist.length;i++) { if(str.indexOf( _ImageTextlist[i].card_match ) > -1 && _ImageTextlist[i].card_match != ''){ return _ImageTextlist[i] } } } } catch (error) { return false } return false } function matchRequestImageText(str,list_arr){//从接口传入的值取匹配图文展示 var list; if(typeof list_arr == 'undefined'){ list = []; }else{ list = list_arr; } str = HtmlDecode(str) for(var i=0;i<list.length;i++) { if(str.indexOf( list[i].card_match ) > -1 && list[i].card_match != ''){ return list[i] } } return false } //知识空间图文访客口吻发送 function matchKnowledgeImgText_fk(msg,type){ console.log(msg) var regex = /<A.*?>(.*?)<\/A>/g; if(type){ var regex =/\[URL.*?](.*?)\[\/URL]/g; } msg=msg.replace(regex,function($1,$2,$3,$4,$5){ var Urlreg = /(((ftp|http|https):\/\/)?([\w-]+\.)+(hk|com|cn|info|net|org|me|top|tw|tv|xyz|cc)([\/\?][\w!~;*'()&=\+\$%\-\/\#\?:\.,\|\^]*)?)/gim; var matches = msg.match(Urlreg); var str for(var i=0;i<matches.length;i++){ str = $2 } //console.log(str) return str }); return msg } //检查是否要走知识空间图文卡片替换逻辑 function checkKnowledgeImgText(msg){ msg = HtmlDecode(msg) if(card_match_info.length > 0){ for(var i=0;i<card_match_info.length;i++) { if(msg.indexOf( card_match_info[i].card_match ) > -1 && card_match_info[i].card_match != ''){ return true } } return false }else{ return false } } function replaceDisplayImgText(msg,NewKnowledge_id){ if(msg.indexOf('[image-text]')>-1){//匹配知识空间图文 var regex = /\[image-text\](.*?)\/image-text\]/g; var matches = msg.match(regex); for(var i=0;i<matches.length;i++){ var _newMatch = matchKnowledgeImgText_fk(matches[i])//兼容历史消息从移动端到访客端 var now_match = JSON.parse(_newMatch.replace(/\[image-text\]/g, "").replace(/\[\/image-text\]/g, "")) var match_html = getNewImgText(now_match) msg = msg.replace(matches[i], match_html) } } var showHtml = '<div class="textWrap" id="'+NewKnowledge_id+'" style="color:'+color_fkxx+';">'+msg+'</div>' $('#'+NewKnowledge_id).html(showHtml) basic.scrollPage(); } function replaceKnowledgeImgText(msg,NewKnowledge_id,type,send_qst,fk_msgid){//新知识空间图文发送替换逻辑 var _nowReplaceArr = checkNowImageText(msg) var request_arr = [] for(var i=0;i<_nowReplaceArr.length;i++) { if(_nowReplaceArr[i].type=='request'){//判断哪些图文需要从接口获取 request_arr.push(_nowReplaceArr[i].id) } } if(request_arr.length==0){ if(type){ msg = matchKnowledgeImgText(msg) getRobotReply(msg) }else{ msg = matchKnowledgeImgText(msg,true) if (send_qst){ qstmsg(UrlEncode(msg),fk_msgid); replaceDisplayImgText(msg,NewKnowledge_id) } try{ clearTimeout(carousel_id); }catch(e){} } }else{ $.ajax({ type:'POST', url: http_pro+host+'/client/workSpace.php', timeout:2000, data:{ company_id: company_id,source_id:request_arr.join(','),guest_type:1,style_id:style_id,guest_id:guest_id }, success:function(data){ try{ var _result = JSON.parse(data) var _list = _result.info var matchList = setImageTextSessionList(_list) if(type){ msg = matchKnowledgeImgText(msg,undefined,matchList) getRobotReply(msg) }else{ msg = matchKnowledgeImgText(msg,true,matchList) if(send_qst){ qstmsg(UrlEncode(msg),fk_msgid); replaceDisplayImgText(msg,NewKnowledge_id) } try{ clearTimeout(carousel_id); }catch(e){} } }catch(error){ console.log(error) if(type){ msg = matchKnowledgeImgText(msg) getRobotReply(msg) }else{ msg = matchKnowledgeImgText(msg,true) if (send_qst){ qstmsg(UrlEncode(msg),fk_msgid); replaceDisplayImgText(msg,NewKnowledge_id) } try{ clearTimeout(carousel_id); }catch(e){} } } }, error:function(error){ console.log(error) console.log(msg) if(type){ //msg = matchKnowledgeImgText(msg) getRobotReply(msg) }else{ //msg = matchKnowledgeImgText(msg,true) if (send_qst){ qstmsg(UrlEncode(msg),fk_msgid); //replaceDisplayImgText(msg,NewKnowledge_id) } try{ clearTimeout(carousel_id); }catch(e){} } } }); } } // 发送访客消息,点发送按钮 function sendmsg(msg,isKnowledgefk) {//isKnowledgefk是否是知识空间抽屉选项访客口吻发送 if(typeof isKnowledgefk == 'undefined'){ isKnowledgefk = false; } var is_empty = false; if (msg == undefined) { msg = $.trim(kindeditor.html()); var blank = /<br \/>$/; if(blank.exec(msg)){ msg = msg.replace(blank,''); } if (kindeditor.text().replace(/&nbsp;/g,'').replace(/ /g,'') == '') is_empty = true; kindeditor.html(""); }else{ if (msg.replace(/&nbsp;/g,'').replace(/ /g,'') == '') is_empty = true; } if(is_empty){ basic.toastOut(langs[50]);//发送内容不能为空,请重新输入。 return false; } if (pcMenuHideTimes != '0') { menu.menuhide(); } var kw_trans_msg = msg;//机器人关键词转人工用 if(guidance_type == 1) zn_order();//智能引导 //处理base64粘贴截图 var reg = new RegExp("<img src=\"data:image/[^>]*;base64[^>]*\" />", "gi"); if (reg.test(msg)) { msg = msg.replace(reg,function(img){ var base64_src = img.replace(/<img[^>]*src=[\'\"\s]*([^\s\'\"]+)[^>]*>/ig,'$1'); var img_str = ''; $.ajax({ type: "POST", // url: http_pro+host+'/upload_img_file.php?company_id='+company_id, url: http_pro+host+'/visitor/uploadImgFile.php?company_id='+company_id+'&guest_id='+myid, data: "type=base64&base64_src="+encodeURIComponent(base64_src), dataType: "json", async : false, success: function(result){ if (result.upload == 'success') { img_str = '<img src="'+result.url+'" border="0"/>'; } } }); return img_str; }); } try{ msg = msgFilter(msg); }catch(e){} //过滤超链接 if (isJsLink(msg)) return false; // 过滤敏感词 msg = filterSensitiveWords(msg); var show_msg = msg; show_msg = UBBEncode(show_msg); var reg = new RegExp("(\\[MOBILE\])(\\d+?)(\\[\\/MOBILE\\])","gim"); var has_mobile = 0; if (reg.test(show_msg) == true) { has_mobile = 1; } show_msg = UBBCode(show_msg); msg = UBBEncode(msg); msg = $.trim(msg); var _isNewKnowledgeMsg = false //是否要走知识空间卡片替换逻辑 var _Urlreg = /(((ftp|http|https):\/\/)?([\w-]+\.)+(hk|com|cn|info|net|org|me|top|tw|tv|xyz|cc)([\/\?][\w!~;*'()&=\+\$%\-\/\#\?:\.,\|\^]*)?)/gim; if(_Urlreg.test(msg)&&(msg.indexOf('[IMG]')==-1)){ if(isKnowledgefk){ msg = matchKnowledgeImgText_fk(msg,true) show_msg = matchKnowledgeImgText_fk(show_msg) }else{ _isNewKnowledgeMsg = checkKnowledgeImgText(msg) var Knowledge_id = 'Knowledge_id'+ new Date().getTime(); } } if(lnkover != 1){ if (lnkover==4) {// 更改成机器人咨询 if (zsk_admit_rule == '1') $(".robotToKF").show(); if (zsk_kw_trans.length > 0) { for (var i = 0; i < zsk_kw_trans.length; i++) { if (zsk_kw_trans[i].match_type == '0') { if (kw_trans_msg == zsk_kw_trans[i].key_word) { display_fk_msg(show_msg); offToTalk('robot'); return; } }else{ if (kw_trans_msg.indexOf(zsk_kw_trans[i].key_word) != -1) { display_fk_msg(show_msg); offToTalk('robot'); return; } } } } if(_isNewKnowledgeMsg){ replaceKnowledgeImgText(show_msg,Knowledge_id,'robot') //getRobotReply(show_msg); }else{ getRobotReply(show_msg); } }else if(lnkover==0 || lnkover==5 || lnkover==6){ display_fk_msg(show_msg); var waitMsg = { 'msg':msg, 'msg_type':'g', 'fk_msgid':undefined, 'msgid':undefined }; msg_wait_arr.push(waitMsg); if (lnkover==5) { var show_msg_busy = langs[12]+'<a style="cursor:pointer;" class="color-blue" onclick="showLword()">'+langs[10]+'</a>'; if (robot_id != '') { show_msg_busy = langs[12]+'<a style="cursor:pointer;" class="color-blue" onclick="showzsk(\''+robot_id+'\')">'+langs[13]+'</a>'+langs[9]+'<a class="color-blue" style="cursor:pointer;" onclick="showLword()">'+langs[10]+'</a>'; } display_sys_msg(show_msg_busy); } }else{ basic.toastOut(langs[51]);//对话已结束,不能发送消息。 } return; }else{ if(msg==""){ basic.toastOut(langs[50]);//发送内容不能为空,请重新输入。 return; } var fk_msgid = 'msgid_'+ new Date().getTime(); var send_qst = true; if (check_phone == 1) { send_qst = checkPhoneOnTalk(msg); if (!send_qst) fk_msgid = undefined; } display_fk_msg(show_msg,fk_msgid,undefined,undefined,Knowledge_id); if(_isNewKnowledgeMsg){ replaceKnowledgeImgText(msg,Knowledge_id,undefined,send_qst,fk_msgid) }else{ if (send_qst) qstmsg(UrlEncode(msg),fk_msgid); try{ clearTimeout(carousel_id); }catch(e){} } } } //msg_type: q(快问快答 访客问题) a(快问快答 客服答案) k(快速提问 无答案) z(访客表单) function sendQaMsg(msg,msg_type,fk_msgid){ try{ msg = msgFilter(msg); }catch(e){} //过滤超链接 if (isJsLink(msg)) return false; if (msg == '') return; var msgid = undefined; if (msg_type == 'k') fk_msgid = "msgid_" + new Date().getTime(); if (msg_type == 'z') msgid = fk_msgid.replace('formid_',''); var show_msg = UBBCode(UBBEncode(msg)); if (msg_type == 'q' || msg_type == 'k') { if (lnkover == 4 && msg_type == 'k') { sendmsg(msg); }else{ display_fk_msg(show_msg,fk_msgid); } }else if (msg_type == 'a') { if (lnkover == 4) { display_robot_answer('0',show_msg,''); }else{ display_kf_msg(show_msg); } } if (lnkover == 1) { qstmsg(UrlEncode(UBBEncode(msg)),fk_msgid,msg_type,msgid); }else if(lnkover == 4){ task_robot_obj.backRobotGuide(); if (msg_type != 'k') { qstRobotMsg(UrlEncode(UBBEncode(msg)),msg_type); } }else{ var waitMsg = { 'msg':UBBEncode(msg), 'msg_type':msg_type, 'fk_msgid':fk_msgid, 'msgid':msgid }; msg_wait_arr.push(waitMsg); zn_order(); } if ((msg_type == 'q' || msg_type == 'k') && pcMenuHideTimes != '0') { menu.menuhide(); } if (msg_type == 'z') { setTimeout(function(){ changeFormStatus(fk_msgid,false); },20000); } try{ clearTimeout(carousel_id); }catch(e){} if (msg_type == 'q' || msg_type == 'k') { sendKafkaNew('guest_click_event','qamsg','',msg); } } //插入图片对象操作 var to_insert_img_obj = { sendimg : function(urlstr){ if(urlstr==""||urlstr=="请输入网络地址或点击浏览上传"){ basic.toastOut('图片路径不能为空'); return false; } var urlcode='[IMG]'+urlstr+'[/IMG]'; to_insert_img_obj.sendimgmsg(urlcode); return true; }, ajaxuploadimg:function(){ $.ajaxFileUpload({ // url:'upload_img.php?type=visiter&company_id='+company_id,//处理图片脚本 url:'visitor/uploadImg.php?type=visiter&company_id='+company_id+'&guest_id='+guest_id,//处理图片脚本 secureuri :false, fileElementId :'img_pic',//file控件id dataType : 'json', success : function(data, status){ if(data.upload=='success'){ $("#src-input").val(data.url); }else if(data.upload=='fail'){ basic.toastOut("上传失败");//上传失败 } if(data.filetype=='error'){ basic.toastOut("暂不支持该格式!");//暂不支持该格式! } if(data.maxsize=='true'){ basic.toastOut("上传文件/图片不能超过100M");//上传文件/图片不能超过100M } }, error: function(data, status, e){ alert(e); } }); }, sendimgmsg:function(msg){ if (lnkover==1 || lnkover==4 || lnkover==6 || lnkover==0) { sendmsg(msg); } } }; //图片上传返回 function imgUploadResponse(file,response,wh){ if (wh == undefined) wh = ''; var msg = '[IMG]'+response.url+wh+'[/IMG]'; try{ msg = msgFilter(msg); }catch(e){} var show_msg = msg; msg = UBBEncode(msg); msg = HtmlEncode(msg); msg = $.trim(msg); $("#"+file.id).data({url:response.url}); qstmsg(UrlEncode(msg),file.id); } function fileUploadResponse(file,response){ var file_url = http_pro+host+"/down_file.php?type=srv&company_id="+company_id+"&file="+response.real_name; file_url = UrlEncode(file_url); send_FIL(file_url,'cfile',file.size); // 发送文件给客服 $("#"+file.id).find(".uploadStatus").text(langs[14]).css("color","#1E88E5");//上传成功 try{ clearTimeout(carousel_id); }catch(e){} } // 展示线索追问按钮 function showTaskOption(options){ var option_content = ""; $.each(options,function(i,v){ var btn_str = ""; btn_str = '<div class="form_option_btn white_btn" onclick="clickTaskOption(\''+v.link_id+'\',this)">'+v.name+'</div>' option_content += btn_str; }); $(".pc_talk_content").append("<div class='form_btn_box'>"+option_content+"</div>"); basic.scrollPage(); } function showTaskList(lists){ var _this = this; var list_content = ""; $.each(lists, function (i, v) { var list_str = ""; list_str = '<div class="form_list_input" onclick="clickTastList(this)">'+(i+1)+'.<span>'+v.content+'</span></div>'; list_content += list_str; }); $(".pc-service-info").eq(-1).append("<div class='form_list_box'>" + list_content + "</div>"); basic.scrollPage(); } //展示任务机器人表单 function showTaskForm(forms,submit_text,success_text,fail_text,overtime){ var form_text = ""; var form_input = ""; $.each(forms, function (i, v) { var form_text_str = ""; var form_input_str = ""; form_text_str = '<div class="form_input_text">' + v + '</div>'; form_input_str = '<div class="form_input_input" data-val="' + v + '"><input style="padding-left: 5px" onfocus="inputFocus(this)"></div>'; form_text += form_text_str; form_input += form_input_str; }); var form_btn = ""; form_btn = '<div class="form_preview_btn_box"><button class="blue_btn form_preview_btn" onclick="clickTastSubmitForm(this)" data_issubmit="no" data_success="'+ success_text +'" data_fail="'+ fail_text +'">'+submit_text+'</button></div>'; $(".pc_talk_content").append("<div class='form_box'><div class='form_box_bg'><div class='form_box_textbox'>" + form_text + "</div><div class='form_box_inputbox'>" + form_input + "</div></div>"+form_btn+"</div>"); basic.scrollPage(); setTimeout(function () { $(".form_box").each(function(index,ele){ if($(ele).find('.form_preview_btn').attr('data_fail') == fail_text && $(ele).find('.form_preview_btn').attr('data_issubmit')=='no'){ var msg_div = '<div class="pc-service"><div class="pc-service-left"><img width="34px" src="'+zsk_zsktb_url+'" alt=""></div><div class="pc-service-right">'+'<p><label>'+zsk_name+'</label><span id="robot_start_time">'+getTime2()+'</span></p>'+'<div class="pc-service-info font14"><div class="robot-info-answer"><div class="answer-text">'+UBBCode(UBBEncode(fail_text))+'</div></div></div></div></div>'; $(".pc_talk_content").append(msg_div); basic.scrollPage(); $(ele).find('.form_preview_btn').attr('data_issubmit','has_send') qstRobotMsg(UBBCode(UBBEncode(fail_text)),"u"); throw new Error("fail"); } }) }, Number(overtime)*1000); } //显示机器人问题提示 function showRobotTips(infos){ var tips = infos.rows; var q_list = ""; for (var i = 0; i < infos.total; i++) { var question = tips[i]["question"]; var answer = tips[i]["answer"]; var q_id = tips[i]["q_id"]; if (zsk_api_name == 'yw') { q_list = q_list + "<p onclick=\"getRobotReply('" + question.replace(/'/g,"\\&#039;") + "')\" title='"+question.replace(/'/g,"&#039;")+"'>" + question + "</p>"; }else{ q_list = q_list + "<p onclick=\"dealRobotQa('" + q_id + "', '" + question.replace(/'/g,"\\&#039;") + "', '" + answer.replace(/&#039;/g,"\\&#039;") + "')\" title='"+question.replace(/'/g,"&#039;")+"'>" + question + "</p>"; } } if (q_list != ""){ $(".guanlian-problem").html(q_list).show(); } else { hideRobotTips(); } } //隐藏机器人问题提示 function hideRobotTips(){ $(".guanlian-problem").html(''); $(".guanlian-problem").hide(); } //展示机器人消息加载框 function showRobotLoad(){ removeRobotLoad(); var show_msg = '<div class="loading_box" id="loading_box"><div class="message_loading"></div></div>'; display_talk_msg(show_msg); } //移除机器人消息加载框 function removeRobotLoad(){ $("#loading_box").remove(); } //显示自动连接时间提示 function showAutoLink(auto_time){ $(".connectionFail").show(); var html = '<label>'+langs[30]+'</label><span>'+auto_time+'</span><label>'+langs[56]+'</label>';//秒后自动为您分配客服接待... $(".connectionFail").html(html); } //隐藏自动连接 function hiddenAutoLink(){ $(".connectionFail").hide(); try{ clearInterval(m_autoTimer); }catch(e){} } // 场景引导手机验证 var time_flag = false; function formVerCode(obj){ var phonereg =new RegExp(/^[1][3|4|5|6|7|8|9][0-9]{9}$/); var phoneval = $(obj).prev().val(); if(phoneval == "" || !phonereg.test(phoneval)){ $(obj).prev().addClass('error_import'); return false; } var ver_code_str = '<div class="from_box vercode"><input class="from_input input_vercode" type="text" placeholder="'+langs[90]+'"></div>';//手机验证码 if($(obj).parents(".guide_form").find(".vercode").length < 1 ){ time_flag = false; $(obj).html("60 S") $(obj).parents(".form_phone").after(ver_code_str); } if(!time_flag){ time_flag = true; sendSceneFormCode(phoneval); timeGo(obj,60,function(){ $(obj).html(langs[91]);//重新发送 time_flag = false; }); } } /** * GHQST头像同步 */ function ghqstHeadlogoChange(headUrl,msgid){ if(!headUrl) var headUrl = ""; if(!msgid) var msgid = ''; if(msgid != "" && headUrl != ""){ $(".pc_talk_content #"+[msgid]+" .pc-service-left>img").attr('src',headUrl); } } // 倒计时 function timeGo(obj,count,fn) { if(!count) count = 60; var timout = setInterval(function(){ count--; $(obj).html(count+" S"); if(count == 0){ clearInterval(timout) fn(); } },1000); } //显示转人工无客服在线提示 function showNoKfToTalk(type){ if (type == 'robot') { $(".system-wait").remove(); display_sys_msg('','no_kf'); }else if (type == 'scene') { $(".system-wait").remove(); //由于当前人工客服不在线,你可以选择 机器人咨询 或 给我们留言 if (frobot_id != '') { msg = '<p class="system-remind"><label>'+langs[75]+'<a class="color-blue" style="cursor:pointer;" onclick="showzsk(\''+frobot_id+'\');">'+langs[13]+'</a>'+langs[9]+'<a class="color-blue" style="cursor:pointer;"onclick="showLword()">'+langs[10]+'</a></label></p>'; }else{ msg = '<p class="system-remind"><label>'+langs[75]+'<a class="color-blue" style="cursor:pointer;"onclick="showLword()">'+langs[10]+'</a></label></p>'; } display_talk_msg(msg); } } // 评分 function showVote(){ if(kfpf=='0' || vote_true || obj_id==0) return; $(".evaluation").remove(); // 2021.01.26 初始星数为3的情况 var ismust = evaluate_ask == 0 ? "(选填)" : "(必填)"; var new_div = '<div class="evaluation"><div><p>'+langs[15]+'<label>'+langs[16]+'</label></p><ul><li class="li-active"></li><li class="li-active"></li><li class="li-active"></li><li class="li-active"></li><li class="li-active"></li></ul></div><div class="ly_content_box"><textarea name="" id="" maxlength="200" placeholder="'+ismust+three_star_guide+'"></textarea></div><a class="evaluation-btn">'+langs[17]+'</a></div>'; display_talk_msg(new_div); // 2021.01.26 初始星数为3的情况 if(default_star == 3){ $(".evaluation>div>p>label").html(voteArr[2]); $(".evaluation .li-active").eq(4).removeClass('li-active'); $(".evaluation .li-active").eq(3).removeClass('li-active'); } if(evaluate_way == 1 && default_star == 3){ $(".ly_content_box").show(); } } //显示评分按钮 function showVoteIcon(){ $(".svgWrap .function-icon-eval").parent().removeClass("disabled"); } //半隐藏评分按钮 function hiddenVoteIcon(){ $(".svgWrap .function-icon-eval").parent().addClass("disabled"); } //获取评分分数 function getVoteValue(){ var vote_value = 5 - $('.pc_talk_content').find('.evaluation .li-active').length; return vote_value; } // 隐藏快速提问按钮和界面 function hiddenQuick(){ try{ $(".service-help").removeClass("active").slideUp(100); $(".icon-hot").parent().removeClass("active"); }catch(e){} } /** * 字符串校验(超出截断变省略号)2021.08.24 * @param {[type]} str 原字符串 * @param {[type]} len 限制长度 * @return {[type]} 新字符串 */ function stringCheck( str, len ) { var len = len || 30; var count = 0; var newStr = str; for (var i = 0; i < str.length; i++) { var onecode = str.charCodeAt(i); if(onecode>=0&&onecode<=128){ count += 1; }else { count += 2; } if(count > len){ newStr = newStr.slice(0, i) + '...' } } return newStr; } //展示自定义表单 function showVisitorForm(title,ids,mustids,formid,button){ var _this=this; var id_arr=ids.split(','); var must_arr = mustids.split(','); var visitor_form_html='<div id="'+formid+'" class="phone_visitor_form"><p class="visitor_form_title">'+title+'</p>'; for(var i=0;i<id_arr.length;i++){ var is_must = must_arr.indexOf(id_arr[i]) >= 0 ? ' is_must' : ''; var is_must_test = is_must === '' ? '' : '('+langs[5]+')'; var form_item=visitor_form[id_arr[i]]; if(form_item.field_type=='1'){//输入框 if(form_item.field_name=='name'){ visitor_form_html+='<div data-id="'+id_arr[i]+'" class="visitor_form_ques nomal'+is_must+'"><input class="visitor_form_input1" data-type="name" type="text" placeholder="'+stringCheck(form_item.name)+is_must_test+'"><p class="tip_error">'+langs[83]+form_item.name+'</p></div>';//请输入 }else if(form_item.field_name=='mobile'){ visitor_form_html+='<div data-id="'+id_arr[i]+'" class="visitor_form_ques nomal'+is_must+'"><input class="visitor_form_input1" data-type="mobile" type="text" placeholder="'+stringCheck(form_item.name)+is_must_test+'"><p class="tip_error">'+langs[0]+form_item.name+'</p></div>';//请输入有效的 }else if(form_item.field_name=='weixin'){ visitor_form_html+='<div data-id="'+id_arr[i]+'" class="visitor_form_ques nomal'+is_must+'"><input class="visitor_form_input1" data-type="wechat" type="text" placeholder="'+stringCheck(form_item.name)+is_must_test+'"><p class="tip_error">'+langs[0]+form_item.name+'</p></div>'; }else if(form_item.field_name=='qq'){ visitor_form_html+='<div data-id="'+id_arr[i]+'" class="visitor_form_ques nomal'+is_must+'"><input class="visitor_form_input1" data-type="qq" type="text" placeholder="'+stringCheck(form_item.name)+is_must_test+'"><p class="tip_error">'+langs[0]+form_item.name+'</p></div>'; }else if(form_item.field_name=='email'){ visitor_form_html+='<div data-id="'+id_arr[i]+'" class="visitor_form_ques nomal'+is_must+'"><input class="visitor_form_input1" data-type="email" type="text" placeholder="'+stringCheck(form_item.name)+is_must_test+'"><p class="tip_error">'+langs[0]+form_item.name+'</p></div>'; }else{ visitor_form_html+='<div data-id="'+id_arr[i]+'" class="visitor_form_ques'+is_must+'"><input class="visitor_form_input1" type="text" placeholder="'+stringCheck(form_item.name)+is_must_test+'"><p class="tip_error">'+langs[83]+form_item.name+'</p></div>'; } }else{//单选 var single_item=form_item.option_config; var option='<option value="'+stringCheck(form_item.name)+is_must_test+'" style="display:none">'+_this.stringCheck(form_item.name)+is_must_test+'</option>'; for(var j=0;j<single_item.length;j++){ option+='<option value="'+single_item[j]+'">'+single_item[j]+'</option>'; } visitor_form_html+='<div data-id="'+id_arr[i]+'" class="visitor_form_ques single_choose'+is_must+'" single_item="'+single_item+'"><select class="visitor_form_select" name="" id="">'+option+'</select><p class="tip_error">'+langs[84]+form_item.name+'</p></div>';//请选择 } } if (typeof(button) == 'undefined' || button == '') button = langs[81];//提交表单 visitor_form_html+='<p class="visitor_form_submit" onclick="submitVisitorForm(this)">'+button+'</p></div>'; $('.pc_talk_content').append(visitor_form_html); basic.scrollPage(); } //移除访客表单 function removeVisitorForm(){ $('.phone_visitor_form').remove(); } //改变访客表单显示状态 function changeFormStatus(formid,status){ if ($("#"+formid).length>0) { if (status) { $("#"+formid).remove(); display_sys_msg(langs[82]);//提交成功 }else{ $('#'+formid).find('.visitor_form_submit').text(langs[81]).removeClass('submiting');//提交表单 basic.toastOut(langs[31]);//提交失败,请检查网络连接 } } } //访客表单验证正则 function visitor_form_check(param,val) { var bool=false; if(param=='name'){ if(val==''){ bool=true; } }else if(param=='mobile'){ if(!/^1[3-9]\d{9}$/.test(val)){ bool=true; } }else if(param=='wechat'){ if(!/^[-_a-zA-Z0-9]{6,20}$/.test(val)){ bool=true; } }else if(param=='qq'){ if(!/^\d{4,11}$/.test(val)){ bool=true; } }else if(param=='email'){ if(!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(val)){ bool=true; } } return bool; } //遍历添加二维码 function addQrcode(){ var $kf_msg = $(".pc-service-right>p"); var qrcode_str = '<span class="qr_code_53kf"><span class="qr_box_53kf"><span class="qr_img_53kf"><img src="'+qrcode_url+'" alt=""></span><em>'+langs[80]+'</em></span></span>'; for(var i = 0;i<$kf_msg.length;i++){ if($kf_msg.eq(i).find(".qr_code_53kf").length<1){ $kf_msg.eq(i).append(qrcode_str); } } var toppx = 185; if (company_tpl == 'minichat') toppx = 119; $(".pc-service-right").on("mouseover",".qr_code_53kf",function(){ $(this).find(".qr_box_53kf").css("display","block"); var offsetTop = $(this).offset().top; var $insertEm = $(this).find(".qr_box_53kf em"),$insertImg = $(this).find(".qr_img_53kf"); if(offsetTop<toppx){ $(this).find(".qr_box_53kf").css("bottom","-126px"); $insertImg.insertAfter($insertEm); $insertEm.css("margin-top","5px"); }else{ $(this).find(".qr_box_53kf").css("bottom","21px"); $insertEm.insertAfter($insertImg); $insertImg.css("margin-top",0); $insertEm.css("margin-top",0); } }) $(".pc-service-right").on("mouseout",".qr_code_53kf",function(){ $(this).find(".qr_box_53kf").css("display","none"); }) } // 检查留言和注册时输入项 function check_input(type,field,isMust){ var obj = ''; if($.type(field)=='string'){ if (type == 'reg') { obj='reg_'+field; }else if (type == 'ly') { obj='ly_'+field; } }else { obj=$(this).attr('id'); }; switch(obj){ case 'reg_mobile': if (!$.trim($('#'+obj).val()).IsTelephone() && $('#'+obj).val() != '') { $('#'+obj).addClass("message-error").prev().find("a").addClass("error-alert"); return false; } break; case 'ly_mobile': if (!$.trim($('#'+obj).val()).IsTelephone() && $('#'+obj).val() != '') { $('#'+obj).addClass("message-error").prev().find("a").addClass("error-alert"); return false; } break; case 'reg_email': if (!$.trim($('#'+obj).val()).IsEmail() && $('#'+obj).val() != '') { $('#'+obj).addClass("message-error").prev().find("a").addClass("error-alert"); return false; } break; case 'ly_email': if (!$.trim($('#'+obj).val()).IsEmail() && $('#'+obj).val() != '') { $('#'+obj).addClass("message-error").prev().find("a").addClass("error-alert"); return false; } break; case 'reg_qq': if( isNaN($('#'+obj).val()) ) { $('#'+obj).addClass("message-error").prev().find("a").addClass("error-alert"); return false; }; break; case 'ly_qq': if( isNaN($('#'+obj).val()) ) { $('#'+obj).addClass("message-error").prev().find("a").addClass("error-alert"); return false; }; break; }; if (isMust == undefined || isMust == 1) { if(!$('#'+obj).val()){ $('#'+obj).addClass("message-error").prev().find("a").addClass("error-alert"); return false; }; } return true; } //输入框内容发生改变时 function inputBoxChange(){ if(lnkover == 4){ getRobotTips(); } if (guidance_type == '2') { zn_order(); } } // function window_unload(){ try{document.cookie = "hz6d_open_talk_"+company_id+"=0";}catch(e){} } // 播放音效 function playSound(){ if (fk_music != '') { try{ if(navigator.userAgent.indexOf("MSIE 8.0")>0){ $("#bgsoundSound").attr("src",http_pro+host+"/sound/"+fk_music+".mp3"); }else{ var myAuto = document.getElementById('audioSound'); $("#audioSound").attr("src",http_pro+host+"/sound/"+fk_music+".mp3"); myAuto.play(); } }catch(e){} } } function isLoadVoice(msg){ var reg = /\[voice\].+\[\/voice\]/; if(reg.test(msg) && browserType != 'IE'){ if (!is_load_audioJs) { is_load_audioJs = true; try{ var audio_script = document.createElement("script"); audio_script.src = 'js/new2017/BenzAMRRecorder.min.js'; document.head.appendChild(audio_script); }catch(e){ return true; } } if(typeof(BenzAMRRecorder) != 'function') return false; } return true; } function filterSensitiveWords(msg){ try{ var msg1 = msg.replace(/<img[^>]*src=[\'\"\s]*([^\s\'\"]+)[^>]*>/ig,''); var msg2 = msg1; for (var i = 0; i < sensitiveWords.length; i++) { if (msg2.indexOf(sensitiveWords[i])>-1) { var wordReg = new RegExp(sensitiveWords[i],'gim'); var str = ''; for (var j = 0; j < sensitiveWords[i].length; j++) { str += '*'; } msg2 = msg2.replace(wordReg,str); } } if (msg1 != msg2) { var reg = new RegExp(msg1,'gim'); msg = msg.replace(msg1,msg2); } }catch(e){} return msg; } function auto_msg_handle(msg) { // PC自动识别2020.04.20-> // 匹配信息 msg = msg.replace(/<\/p>|<br>|<br>/g,' '); msg = msg.replace(/<[^<>]+>/g,''); var phone_reg = /[^\d](1[3-9]\d{9})(?!\d)/g,tel_400_reg = /[^\d]400([-|\s]{0,2})[016789]\d{2}([-|\s]{0,2})\d{4}/g; var phone_num=""; var qq_num=""; var wx_num=""; // 过滤掉url 和 img 知识空间图文中的超链接,不参与匹配 var delLinkReg = /<A HREF=.*?<\/A>/g; var imgLinkReg = /<IMG.*?insert_img_kf">/g; var imgTextReg = /\[image-text\](.*?)\/image-text\]/g; var new_msg = msg.replace(delLinkReg,''); new_msg = new_msg.replace(imgLinkReg,''); new_msg = new_msg.replace(imgTextReg,''); var msg_str = ('`'+HtmlDecode(new_msg)).toLowerCase(); // 获取手机号码 // if(tel_400_reg.test(msg_str)){ // try{ // var phone_str = msg_str.match(tel_400_reg)[0]; // if(msg_str.toLowerCase().indexOf("qq")>-1 && /[^\d]([1-9]\d{4,10})(?!\d)/g.test(phone_str)){//全文有qq字段且匹配到的400符合qq规则 // var index400 = msg_str.indexOf(phone_str); // var phone_str_length = phone_str.length; // if(msg_str.toLowerCase().substring((index400-5>0?(index400-5):0),index400+phone_str_length+5).indexOf('qq')>-1){//截取该匹配的前后5位字符串,然后查找是否有qq // qq_num = phone_str.substring(1); // }else{ // phone_num = phone_str.substring(1).replace(/[-|\s]/g ,""); // } // }else{ // phone_num = phone_str.substring(1).replace(/[-|\s]/g ,""); // } // }catch(e){} // } if(phone_num==''&&phone_reg.test(msg_str)){ try{ var phone_str = msg_str.match(phone_reg)[0]; if(msg_str.toLowerCase().indexOf("qq")>-1 && /[^\d]([1-9]\d{4,10})(?!\d)/g.test(phone_str)){//全文有qq字段且匹配到的手机号符合qq规则 var indexphone = msg_str.indexOf(phone_str); var phone_str_length = phone_str.length; if(msg_str.toLowerCase().substring((indexphone-5>0?(indexphone-5):0),indexphone+phone_str_length+5).indexOf('qq')>-1){//截取该匹配的前后5位字符串,然后查找是否有qq qq_num = phone_str.substring(1); if(msg_str.match(phone_reg).length>1){ phone_num = msg_str.match(phone_reg)[1].substring(1); } }else{ phone_num = phone_str.substring(1); } }else{ phone_num = phone_str.substring(1); } }catch(e){} } // 获取微信号码 if(msg_str.toLowerCase().indexOf("wechat")>-1 || (language=='cn' && msg_str.toLowerCase().indexOf("wx")>-1) || msg.toLowerCase().indexOf("weixin")>-1 || msg.indexOf("微信")>-1){ var newmsg_str = msg_str; var weixinReg = /([^?!\w])weixin(?![\w$])/g; var wechatReg = /([^?!\w])wechat(?![\w$])/g; newmsg_str = newmsg_str.replace(weixinReg,''); newmsg_str = newmsg_str.replace(wechatReg,''); newmsg_str = newmsg_str.replace(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/,'');//过滤网址 newmsg_str = newmsg_str.replace(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,'');//过滤email try{ if((msg_str.indexOf("微信同号")>-1 || msg_str.indexOf("微信同手机")>-1) && phone_num != "" && /(1[3-9]\d{9})/g.test(phone_num)){ wx_num = phone_num; }else{ var wx_str = newmsg_str.match(/[^\w]([a-zA-Z_][\wa-zA-Z-_]{5,19})(?![\w])/g)[0]; wx_num = wx_str.substring(1); if( wx_str.substring(1).indexOf(phone_num)>-1 && phone_num != "" && msg_str.match(phone_reg).length>1){//当前的手机号是包含在微信号里的场景 且全文匹配到超过一个手机号 cj phone_num = msg_str.match(phone_reg)[1].substring(1);//这种场景取后一个手机号 cj } } }catch(e){} if(wx_num == "" && phone_num != ""){ var phone_arr = msg_str.match(phone_reg); if(/(1[3-9]\d{9})/g.test(phone_num) && phone_reg.test(msg_str) && phone_arr.length == 1){ wx_num = phone_num; }else{ if(msg_str.toLowerCase().indexOf("wechat")>-1){ var index_wxtitle = msg_str.toLowerCase().indexOf("wechat"); var start = index_wxtitle-5-11>0?(index_wxtitle-5-11):0; var end = index_wxtitle+5+5+11; }else if(msg_str.toLowerCase().indexOf("wx")>-1){ var index_wxtitle = msg_str.toLowerCase().indexOf("wx"); var start = index_wxtitle-5-11>0?(index_wxtitle-5-11):0; var end = index_wxtitle+1+5+11; }else if(msg_str.toLowerCase().indexOf("weixin")>-1){ var index_wxtitle = msg_str.toLowerCase().indexOf("weixin"); var start = index_wxtitle-5-11>0?(index_wxtitle-5-11):0; var end = index_wxtitle+5+5+11; }else if(msg_str.toLowerCase().indexOf("微信")>-1){ var index_wxtitle = msg_str.toLowerCase().indexOf("微信"); var start = index_wxtitle-5-11>0?(index_wxtitle-5-11):0; var end = index_wxtitle+1+5+11; } if(/(1[3-9]\d{9})/g.test(msg_str.substring(start,end))){ wx_num = msg_str.substring(start,end).match(/(1[3-9]\d{9})/g)[0]; } } } } //机器人微信号码优先 if(/\[rbt_wechat\](.*?)\[\/rbt_wechat\]/g.test(msg_str.toLowerCase())){ var rbt_wechat = msg_str.toLowerCase().match(/\[rbt_wechat\](.*?)\[\/rbt_wechat\]/g)[0]; wx_num = rbt_wechat.split(']')[1].split('[')[0]; } // 获取QQ号码 if(qq_num==''&&msg_str.toLowerCase().indexOf("qq")>-1){ try{ var qq_msg_str=msg_str.replace(wx_num,''); var qq_arr = qq_msg_str.match(/[^\d]([1-9]\d{4,10})(?!\d)/g); for(var x=0;x<qq_arr.length;x++){ if(qq_arr[x].substring(1) == phone_num){ qq_arr.splice(x,1); x--; } } qq_num = qq_arr[0].substring(1) }catch(e){} } var wx_ewm = admin_wx_code; if(wx_ewm!=''){ var wx_img='<div class="wx_img"><img src="'+wx_ewm+'" /></div>'; }else{ var wx_img='<div class="copy_wx">'+wx_num+'</div>'; } // 按钮结构 98:加 QQ 93:扫码+微信 94:复制微信 95:在线拨打 96:输入手机号码 97:点击免费通话 try{ var btn_switch_phone=btn_switch.indexOf('phone')+1; var btn_switch_qq=btn_switch.indexOf('qq')+1; var btn_switch_wechat=btn_switch.indexOf('wechat')+1; }catch(e){} var msg_qq_btn = qq_num == '' ? "" : btn_switch_qq > 0 ? '<div class="msg_btn msg_qq_btn" data_qq ='+qq_num+' onclick="msg_qq_act('+qq_num+')">'+'<div class="msg_act">'+langs[98]+'</div>'+'</div>' : ""; var msg_wx_btn = wx_num == '' ? "" : btn_switch_wechat > 0 ? '<div class="msg_btn msg_wx_btn" data_wx ='+wx_num+' onclick="msg_wx_act(this)"><div class="msg_act">'+(wx_ewm!=''?langs[93]:langs[94])+'</div>'+wx_img+'</div>' : ""; if(msg_qq_btn==''){ if(msg_wx_btn==''){ var right_position='right:-160px'; }else{var right_position='right:-80px';} }else{ if(msg_wx_btn==''){ var right_position='right:-80px'; }else{var right_position='right:-45px';} } if(check_phone_callback=='1'){//开启了网页回呼的短信验证 var call_phone_box = '<div class="call_phone_box code_mode" style="'+right_position+'"><p class="call_phone_box_title">'+langs[83]+langs[101]+'</p><input class="call_phone_input" type="text" placeholder="'+langs[96]+'"><div class="code_box"><input class="code_input" type="text" placeholder="'+langs[90]+'" /><span class="send_phone_code">'+langs[87]+'</span></div><div class="call_phone_btn">'+langs[97]+'</div></div>'; }else{ var call_phone_box = '<div class="call_phone_box" style="'+right_position+'"><input class="call_phone_input" type="text" placeholder="'+langs[96]+'"><span class="call_phone_btn">'+langs[97]+'</span></div>'; } var msg_phone_btn = phone_num == '' ? "" : btn_switch_phone > 0 ?'<div class="msg_btn msg_phone_btn" data_phone ='+phone_num+' href="tel:'+phone_num+'" onclick="msg_phone_act(this,event)"><div class="msg_act">'+langs[110]+langs[1]+'</div><div class="copy_phone" style="width:1px;height:1px;position:absolute;opacity:0">'+phone_num+'</div></div>' : ""; if(msg_phone_btn==''&&msg_qq_btn==''&&msg_wx_btn==''){ var msg_btns=''; }else{ var msg_btns = '<div class="msg_btns">'+msg_qq_btn+msg_wx_btn+msg_phone_btn+'</div>'; } return msg_btns; } function msg_wx_act(ele){ // 复制微信 var range = document.createRange(); range.selectNode($(ele).find('.copy_wx')[0]); var selection = window.getSelection(); if(selection.rangeCount > 0) selection.removeAllRanges(); selection.addRange(range); document.execCommand('copy'); basic.toastOut("复制成功"); if (lnkover == 1 && visitorPathSwitch == '1') { g_comm.SendGstm(UrlEncode("访客点击了“复制微信”按钮")); } if(lnkover == 4){ try{ robot_client.sendPushWE(1); }catch(e){} }else{ g_comm.SendMediumBack(1);//复制微信回传 } sendKafkaNew('guest_click_event','clue','wechat'); } function msg_qq_act(qq_num){ if (lnkover == 1 && visitorPathSwitch == '1') { g_comm.SendGstm(UrlEncode("访客点击了“加 QQ”按钮")); } window.open('tencent://message/?uin='+qq_num,'_self'); sendKafkaNew('guest_click_event','clue','qq'); } function msg_phone_act(ele,event){ // $(ele).siblings('.call_phone_box').toggle(); // event.stopPropagation(); // 复制手机 var range = document.createRange(); range.selectNode($(ele).find('.copy_phone')[0]); var selection = window.getSelection(); if(selection.rangeCount > 0) selection.removeAllRanges(); selection.addRange(range); document.execCommand('copy'); basic.toastOut("复制成功"); if (lnkover == 1 && visitorPathSwitch == '1') { // g_comm.SendGstm(UrlEncode("访客点击了“在线拨打”按钮")); g_comm.SendGstm(UrlEncode("访客点击了“复制手机”按钮")); } } $('.pc_talk_content').on('click','.call_phone_box',function (event) { event.stopPropagation(); }); $(".pc_talk_content").on("click",".call_phone_btn",function(){ // 客服消息识别 if(check_phone_callback=='1'){//开启了网页回呼的短信验证 var type = company_tpl == 'minichat' ? 'float' : 'new'; var phone = $(this).parents('.call_phone_box').find('.call_phone_input').val(); var scode = $(this).parents('.call_phone_box').find('.code_input').val(); if(/^(1[3-9]\d{9})$/.test(phone)==false){ basic.toastOut(langs[0]+langs[101]); return false; } if(scode!=''&&/^[0-9][0-9]*$/.test(scode)){ netCallBack(this,type,scode); }else{ basic.toastOut(langs[108]); } }else{ netCallBack(this,'news'); } }); $(".pc_talk_content").on("focus",".call_phone_input",function(){ $(this).removeClass('error'); }); $(".pc_talk_content").on("click",".send_phone_code",function () { if(codeSendClick){//防抖 return; } var _this = this; var val = $(this).parents('.call_phone_box').find('.call_phone_input').val(); if(/^(1[3-9]\d{9})$/.test(val)){ codeSendClick = true; $.ajax({ type: "POST", url: http_pro+host+'/client/thousand_kefu_sms.php', data: {'company_id':company_id,'style_id':style_id,'style':style,'mobile':val,'scene':'callback','guest_id':myid,'type':'code'}, dataType: "json", async : false, success: function(result){ if(result.code==200){//成功 basic.toastOut(langs[90]+langs[86]); timeGo(_this,60,function (){ $(_this).html('发送验证码'); codeSendClick = false; }) }else{ basic.toastOut(result.msg); codeSendClick = false; } }, error:function(){ basic.toastOut(langs[31]); codeSendClick = false; } }); }else{ basic.toastOut(langs[73]); } }) /** * 2021.01.06 * 过滤欢迎语并展示为快捷问题 * 匹配规则:{{}} {[]} */ function setupFilter(str){ var _this = this; var newStr = str || ''; // 按钮,行内选项,行外选项 var btns_arr = [], inside_row_check_arr = [],outside_row_check_arr=[]; // 行外拼接 var outsideRow = ""; var matchArray = str.match(/\{\{(.+?)\}\}/g); if(matchArray && matchArray.length > 0){ for(var i = 0; i<matchArray.length; i++){ // 过滤P标签的换行 var matchfilterStr = matchArray[i].replace(/<\/p\>\<p(.+?)\>/g,""); var replaceStr = matchfilterStr.substring(2,matchfilterStr.length-2); var htmlStr = '<span class="check_welcomeServlets" title="点击发送">'+replaceStr+'</span>'; newStr = newStr.replace(matchArray[i],htmlStr); } } // 2022.3.15 问题+按钮 匹配规则为{[ newStr = newStr.replace(/\{\[(.+?)\]\}/g,function(item){ // 过滤P标签的换行 var matchfilterStr = item.replace(/<\/p\>\<p(.+?)\>/g,""); var replaceStr = matchfilterStr.substring(2,matchfilterStr.length-2); item = item.replace(/\{\[|\]\}/g,""); btns_arr.push('<div class="btn_welcomeServlets blue_btn">'+replaceStr+'</div>'); return ""; }) // 2022.3.15 问题+行外选项 匹配规则为[{,老数据的双花括号仍然生效 newStr = newStr.replace(/\[\{(.+?)\}\]/g,function(item){ item = item.replace(/\[\{|\}\]/g,""); // 过滤P标签的换行 outside_row_check_arr.push('<div class="check_outside_row" title="点击发送">'+item+'</div>'); return ""; }) // 拼装行外按钮或问题 var outsideRowBtns = btns_arr.join(""); var outsideRowOpts= outside_row_check_arr.join(""); outsideRow = '<div>'+outsideRowBtns+outsideRowOpts+'</div>' newStr += outsideRow; if(!!outsideRowBtns || !!outsideRowOpts){ snedApiForConnTotal('show'); } return _this.kwFilter(newStr); } /** * 2021.03.09 * 过滤欢迎语替换关键词 * 匹配规则:[[]] */ function kwFilter(str){ var newStr = str || ''; var matchKw = str.match(/\[\[(.+?)\]\]/g); if(matchKw && matchKw.length > 0){ for(var i = 0; i<matchKw.length; i++){ // 过滤P标签的换行 var matchfilterStr = matchKw[i].replace(/<\/p\>\<p(.+?)\>/g,""); var replaceStr = matchfilterStr.substring(2,matchfilterStr.length-2); if (keyword != '') replaceStr = keyword; newStr = newStr.replace(matchKw[i],replaceStr); } } return newStr; } /** * 2022.04.27 * 百度:欢迎语选项和按钮的PV、UV统计 * type click. 点击 show.展示 */ function snedApiForConnTotal(type){ var _this = this; $.ajax({ type: "GET", url: "statistical_test.php?type=conn_"+type+"&company_id="+company_id+"&guest_id="+guest_id+"&device=pc", dataType: "json", success: function(data){ } }); } /** * 2022.03.16 * 实时翻译 */ function onTranslateProc(msg,id){ var str = "<hr/><div>"+msg+"</div>" $("#"+id).find(".pc-service-info").append(str) chatAnimate.scroll_bottom(); } /** * 2021.01.06 * 点击欢迎语快捷问题 */ $('.pc_talk_content').on('click','.check_welcomeServlets,.btn_welcomeServlets,.check_outside_row',function(){ var msg = $(this).text(); snedApiForConnTotal("click"); sendmsg(msg); }); var audio_num = 0; var audio_vars={}; var is_load_audioJs = false; $("body").on("click",".audiobtn",function(){ var _this = this; if($(this).hasClass('unaudio_play')){ basic.toastOut("该浏览器不支持语音播放"); return false; } var arr = Object.keys(audio_vars); var idx = $(_this).attr("id").split("_")[1]-1; $(".audio_log").attr("src","style/chat/new2017/image/png/audio1.png"); $(".audiobtn").not(_this).removeClass('audio_play'); for(var i = 0;i<arr.length;i++){ if(arr[i] == $(_this).attr("id")){ if (!audio_vars[arr[i]].isPlaying()) { $(_this).addClass('audio_play'); audio_vars[arr[idx]].onEnded(function(){ $(_this).find(".audio_log").attr("src","style/chat/new2017/image/png/audio1.png"); $(_this).removeClass('audio_play'); }) audio_vars[arr[i]].play(); } else { $(_this).find(".audio_log").attr("src","style/chat/new2017/image/png/audio1.png"); audio_vars[arr[i]].stop(); $(_this).removeClass('audio_play'); } }else{ audio_vars[arr[i]].stop(); } } }); //访客表单inputfocus去样式 $('.pc_talk_content').on('focus','.visitor_form_input1,.visitor_form_select',function(){ $(this).removeClass('error_import'); $(this).siblings('.tip_error').hide(); }); //场景引导用 $(".pc_talk_content").on("click",".from_input",function(e){ e.stopPropagation(); $(this).removeClass('error_import'); }); // 2022.08.26 关于该账号 $('#about_accout').on('click','.about_accout_title',function (e) { e.stopPropagation(); $(this).addClass('active'); $(this).siblings('.about_box').show(); }) $(document).on('click',function(e){ if(!$('.about_box').is(e.target)&&$('.about_box').has(e.target).length==0){ $('.about_box').hide(); $('.about_accout_title').removeClass('active'); } if(!$('.net_callback_phone_box').is(e.target)&&$('.net_callback_phone_box').has(e.target).length==0){ $('.net_callback_phone_box').hide(); } }) $('.about_box').on('click','.about_box_close',function(){ $('.about_box').hide(); $('.about_accout_title').removeClass('active'); }) $(function(){ // console.log(auth_info); if(auth_info.auth_type!=null&&auth_info.auth_type!=undefined){//是企业就展示 $('.about_accout').show(); } var accout_main = auth_info.auth_type=='0'?'未认证':auth_info.auth_type=='1'?'账号主体: <span style="color: #62778C;">个人</span>':auth_info.auth_type=='2'?'认证类型: <span style="color: #62778C;">企业</span>':auth_info.auth_type=='3'?'认证类型: <span style="color: #62778C;">政府</span>':'未认证'; $('.about_accout').find('.accout_type').html(accout_main); $('#accout_ip_words').text(auth_info.ip_area); var name = auth_info.name?('<div class="accout_name"><p>认证主体:</p><div>'+auth_info.name+'</div></div>'):''; var code = auth_info.card?('<div class="accout_code"><p>统一社会信用代码/组织机构代码:</p><div>'+auth_info.card+'</div></div>'):''; $('.about_accout').find('.about_box_head').after(name+code); }); //2023.02.09 网页回呼短信验证 $('#send_verification_code').on('click',function () { if(codeSendClick){//防抖 return; } var val = $('#net_call_phone_val').val(); if(/^(1[3-9]\d{9})$/.test(val)){ codeSendClick = true; $.ajax({ type: "POST", url: http_pro+host+'/client/thousand_kefu_sms.php', data: {'company_id':company_id,'style_id':style_id,'style':style,'mobile':val,'scene':'callback','guest_id':myid,'type':'code'}, dataType: "json", async : false, success: function(result){ if(result.code==200){//成功 basic.toastOut(langs[90]+langs[86]); timeGo('#send_verification_code',60,function (){ $('#send_verification_code').html('发送验证码'); codeSendClick = false; }) }else{ basic.toastOut(result.msg); codeSendClick = false; } }, error:function(){ basic.toastOut(langs[31]); codeSendClick = false; } }); }else{ basic.toastOut(langs[73]); } }) $('.net_callback_phone_box_callbtn').on('click',function () { var type = company_tpl == 'minichat' ? 'float' : 'new'; var phone = $('#net_call_phone_val').val(); var scode = $('#net_call_verification_code').val(); if(/^(1[3-9]\d{9})$/.test(phone)==false){ basic.toastOut(langs[0]+langs[101]); return false; } if(scode!=''&&/^[0-9][0-9]*$/.test(scode)){ netCallBack(null,type,scode); }else{ basic.toastOut(langs[108]); } }) $(function(){ //机器人相关处理 $('.pc_talk_content').on("click", ".unuser", function(){ $(this).addClass("active"); $(this).parent().siblings("div").show(); basic.scrollPage_robot(); }); $('.pc_talk_content').on("click",".answer_helpful",function(){ var answer_reason_val = $(this).attr('data-value'); var answer_id = $(this).parent().parent().prev().attr('id'); $(this).parent().text(langs[69]);//感谢你的反馈 $(".pc-robot-eval .df").hide(); customerResponse(answer_id, answer_reason_val); }) $('.pc_talk_content').on("click",".df li",function(){ var answer_reason_val = $(this).attr('data-value'); var answer_id = $(this).parent().parent().parent().prev().attr('id'); customerResponse(answer_id, answer_reason_val); }) $('.pc_talk_content').on("mousedown", ".pc-robot-eval ul li", function() { $(this).addClass("selected").siblings().removeClass("selected"); }); $('.pc_talk_content').on("mouseup", ".pc-robot-eval ul li", function() { $(this).parent().parent().fadeOut(200); $(this).parent().parent().siblings("p").text(langs[69]);//感谢你的反馈 }); //点击感叹号重发消息 $(".talk").on("click",".onError", function(){ var msg = $(this).prev().html(); var msg = UBBEncode(msg); var msg = UrlEncode(msg); var fk_msgid = $(this).attr('id'); qstmsg(msg,fk_msgid); $(this).removeClass('onError'); try{ m_qstResTimer[fk_msgid] = setTimeout(function(){ $("#"+fk_msgid).addClass("onError"); },20000); }catch(e){} }); $(".net_callBack_btn").on("click",function(){ var type = company_tpl == 'minichat' ? 'float' : 'new'; if(check_phone_callback=='1'){//开启了网页回呼的短信验证 $('.net_callback_phone_box').show(); return false; } netCallBack(null,type); }); }); </script> <script type="text/javascript" FOR="snapShot_obj" EVENT="OnSend(a,b,c)">ocx_callback(a,b,c);</script> <script type="text/javascript"> try{ var fp = new Fingerprint2(); fp.get(function(result, components) { finger_id = result; $.get("wnn_debug.php",{"type":"finger", "info":ip+","+guest_id+","+finger_id, "company_id":company_id, "flag":"finger_idpc"}); }); }catch(e){} var isGetSendLnk = false try{ window.addEventListener("message",function(event){ $.get("wnn_debug.php",{"cmd":"sendLNK0","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); if(lnkover == 2){//对话结束后可以继续邀请 if(event.data.indexOf('sendLNK{#53#}') != -1){ isGetSendLnk = true; var postMsg = event.data.split('{#53#}'); $.get("wnn_debug.php",{"cmd":"sendLNK3","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); worker_ids = postMsg[1]; isSendLNK=false; sendLNK(); } return; } if (typeof(event.data) != 'string' || isGetSendLnk) return; if(event.data.indexOf('sendLNK{#53#}') != -1){ isGetSendLnk = true; $.get("wnn_debug.php",{"cmd":"sendLNK1","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); var postMsg = event.data.split('{#53#}'); $.get("wnn_debug.php",{"cmd":"sendLNK2","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); worker_ids = postMsg[1]; zn_order(); } }); }catch(e){ window.attachEvent("onmessage",function(event){ $.get("wnn_debug.php",{"cmd":"sendLNK0","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); if(lnkover == 2){//对话结束后可以继续邀请 if(event.data.indexOf('sendLNK{#53#}') != -1){ isGetSendLnk = true; var postMsg = event.data.split('{#53#}'); $.get("wnn_debug.php",{"cmd":"sendLNK3","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); worker_ids = postMsg[1]; isSendLNK=false; sendLNK(); } return; } if (typeof(event.data) != 'string' || isGetSendLnk) return; if(event.data.indexOf('sendLNK{#53#}') != -1){ isGetSendLnk = true; $.get("wnn_debug.php",{"cmd":"sendLNK1","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); var postMsg = event.data.split('{#53#}'); $.get("wnn_debug.php",{"cmd":"sendLNK2","info":ip+","+guest_id,"isGetSendLnk":isGetSendLnk}); worker_ids = postMsg[1]; zn_order(); } }); } </script> <link rel="stylesheet" type="text/css" href="js/webuploader/webuploader.css"> <script type="text/javascript" src="js/webuploader/webuploader.min.js?2"></script> <script> $(function(){ // 上传=============================start================================================== var FileUpload = function(picker,uploadURL,acceptObj){ this.picker = picker; this.uploadURL = uploadURL; }; FileUpload.prototype = { init: function(){ var upload = this.create(); this.bindEvent(upload); return upload; }, create: function(){ var uploader = WebUploader.create({ // 选完文件后,是否自动上传。 auto: true, swf: 'js/webuploader/Uploader.swf', server: this.uploadURL, pick: { id: '#'+this.picker }, fileVal: 'userupload', duplicate: true }); return uploader; }, bindEvent: function(uploader){ _this = this; // 2021.08.16禁用视音频服务 has_opened = false; uploader.on('fileQueued', function(file) { var msg_time = getTime2(); file.ext = file.ext.toLowerCase(); // 如果在排队中 阻止上传 if($(".line-up").css("display")=='block'){ uploader.cancelFile( file ); return false; }; //如果存在文件在上传,阻止上传 if(this.getStats().progressNum>=1){ uploader.cancelFile( file ); return false; } var html, data_id = file.id, name = basic.beforeRender(file.name), size = file.size>1024? Math.floor(file.size/1024)>1024? Math.floor(file.size/1024/1024)+"M":Math.floor(file.size/1024)+"KB":Math.floor(file.size)+"B"; if(file.size/1024/1024>=100){ basic.toastOut("上传文件/图片不能超过100M");//上传文件/图片不能超过100M uploader.cancelFile( file ); return false; }; if ("0" == '1') { var file_type_arr = ['jpeg','gif','png','jpg']; }else{ var file_type_arr = ['jpeg','gif','png','jpg',"fla","pdf","txt","doc","xls","docx","xlsx","tmp","html","wps","ppt","swf","avi","mpeg","asf","wmv","rm","rmvb","mp3","ape","wma","wav","zip","rar","mp4",'step', 'heif', 'mov']; } if($.inArray(file.ext,file_type_arr) == -1){ basic.toastOut("暂不支持该格式!");//暂不支持该格式! uploader.cancelFile( file ); return false; } if(file.ext == 'jpg' || file.ext == 'png' || file.ext == 'gif' || file.ext == 'jpeg'){ html = '<div class="pc-customer"><p><label>'+langs[49]+'</label><span>'+msg_time+'</span></p><div class="upload-wrap fk-uploadFile" id = "'+data_id+'">'+ '<div class="upload-image fr">'+ '<div class="process-wrap">'+ '<span class="processSmall"></span>'+ '</div>'+ '<div class="statusIcon"></div>'+ '</div>'+ '</div>'+ '</div>'; $(".pc_talk_content").append(html); var $img = $("#"+file.id).find(".upload-image"); uploader.makeThumb( file, function( error, ret ) { if ( error ) { $img.text('预览错误');//预览错误 } else { $img.append("<img src='"+ret+"' />"); } }); }else { html = '<div class="pc-customer"><p><label>'+langs[49]+'</label><span>'+msg_time+'</span></p><div class="upload-wrap fk-uploadFile" id = "'+data_id+'">'+ '<div class="upload-file fr">'+ '<p class="file-header">'+ '<span class="fileName" title="'+file.name+'">'+name+'</span>'+ '<span class="fileSize fr">'+size+'</span>'+ '</p>'+ '<div class="process-wrap"><span class="processLong"><span class="processSmall"></span></span><span class="upload-button"></span></div>'+ '<div class="uploadStatus">上传中</div>'+ '<div class="statusIcon"></div>'+ '</div>'+ '</div>'+ '</div>'; $(".pc_talk_content").append(html);//36 上传中 } $("#"+file.id).get(0).scrollIntoView(); }); //上传前 uploader.on("beforeFileQueued", function(file) { file.ext = file.ext.toLowerCase(); var file_type_arr = ['jpeg','gif','png','jpg',"fla","pdf","txt","doc","xls","docx","xlsx","tmp","html","wps","ppt","swf","avi","mpeg","asf","wmv","rm","rmvb","mp3","ape","wma","wav","zip","rar","mp4",'step', 'heif', 'mov']; //提前判断是否开启视音频 // $.ajax({ // type:"post", // url:http_pro+kfs3_host+"/index.php?m=Home&c=MediaUpload&a=before_upload&arg="+arg, // data:{ // "company_id":company_id // }, // async:false, // success:function (mes) { // mes=JSON.parse(mes); // if(mes.status !='200') has_opened=false; // else has_opened=true; // } // }); //如果未开启过或是ie8或ie9,直接进入旧文件传输口 if(!has_opened) return true; var userAgent = navigator.userAgent, rMsie = /(msie\s|trident.*rv:)([\w.]+)/, rFirefox = /(firefox)\/([\w.]+)/, rOpera = /(opera).+version\/([\w.]+)/, rChrome = /(chrome)\/([\w.]+)/, rSafari = /version\/([\w.]+).*(safari)/; var browser; var version; var ua = userAgent.toLowerCase(); function uaMatch(ua){ var match = rMsie.exec(ua); if(match != null){ return { browser : "IE", version : match[2] || "0" }; } var match = rFirefox.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rOpera.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rChrome.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rSafari.exec(ua); if (match != null) { return { browser : match[2] || "", version : match[1] || "0" }; } if (match != null) { return { browser : "", version : "0" }; } } var browserMatch = uaMatch(userAgent.toLowerCase()); if (browserMatch.browser){ browser = browserMatch.browser; version = browserMatch.version; } if(browser == 'IE' && parseInt(version) <= 9){ has_opened=false; return true; } //如果出现余额不足等问题,重置url,请求原php地址 if(file.flag==true){ this.options.formData={"company_id":company_id}; this.options.fileVal="userupload"; this.options.server=_this.uploadURL; file.flag=false; return true; } if(file.ext == 'mp4'||file.ext == 'mp3'||file.ext == 'wav'||file.ext == 'ogg'){ this.options.formData={"company_id":company_id}; this.options.fileVal="userfile"; this.options.server=http_pro+kfs3_host+"/index.php?m=Home&c=MediaUpload&a=upload&arg="+arg; } }); $(".pc_talk_content").on('click', '.upload-button', function() { uploader.cancelFile( $(this).parents(".upload-wrap").attr("id") ); $("#"+$(this).parents(".upload-wrap").attr("id")).find(".process-wrap").hide(); $("#"+$(this).parents(".upload-wrap").attr("id")).find(".uploadStatus").text("已取消上传").css("color","#8DA2B5");//已取消上传 }) // 重新上传 $(".talk").on("click",".statusIcon",function(){ uploader.retry($(this).parents(".upload-wrap").attr("id")); $(this).parents(".upload-wrap").find(".statusIcon").hide(); $(this).parents(".upload-wrap").find(".process-wrap").show(); $(this).parents(".upload-wrap").find(".uploadStatus").text("上传中").css("color","#8DA2B5"); }); // 文件上传过程中创建进度条实时显示。 uploader.on('uploadProgress', function(file, percentage) { $("#"+file.id).find(".process-wrap .processSmall").css("width",Math.floor(percentage * 100) + "%"); }); // 文件上传成功,给item添加成功class, 用样式标记上传成功。 uploader.on('uploadSuccess', function (file, response) { //若开通了视音频服务且为视频音频文件 if(has_opened&&(file.ext == "mp4"||file.ext == 'mp3'||file.ext == 'wav'||file.ext == 'ogg')){ if(response.status=='101' || response.status=='102' || response.status=='103' || response.status=='104'){ //basic.toastOut("上传失败"); //basic.toastOut("空间不足"); //basic.toastOut("空间到期"); //basic.toastOut("流量不足"); videoUploadResponse(file,response,"cfile",file.name); displayAsFile(file.id,file.name,file.size); file.flag=true; this.upload(file); return false; }else if(response.status=='200'){ if(file.ext=="mp4"){ //上传video-response videoUploadResponse(file,response,"video",file.name); var $video = $("#"+file.id).find(".upload-file"); $video.css("width","340px"); $video.find('.file-header').remove(); $video.prepend("<video class='upload-video' style='background-color:black;width:320px;height:240px;' src='"+response.url+"' controls='controls' >抱歉,您的浏览器不支持视频播放</video>"); $(".process-wrap,.uploadStatus").remove(); return true; }else if(file.ext == 'mp3'||file.ext == 'wav'||file.ext == 'ogg'){ //上传audio-response videoUploadResponse(file,response,"audio",file.name); var $audio = $("#"+file.id).find(".upload-file"); $audio.css("width","262px"); $audio.find('.file-header').remove(); $audio.prepend("<audio class='upload-audio' style='background-color:white;width:250px;height:55px;margin-left: -5px;' src='"+response.url+"' controls='controls' >抱歉,您的浏览器不支持音频播放</audio>"); $(".process-wrap,.uploadStatus").remove(); return true; } } } //若为其他 var btn_type = response.type; $("#"+file.id).find(".process-wrap").hide(); if(response.upload == 'success'){ if (btn_type == 'img') { imgUploadResponse(file,response); }else if(btn_type == 'file'){ fileUploadResponse(file,response); } }else { $("#"+file.id).find(".uploadStatus").text("上传失败").css("color","#FF4C4C");//上传失败 $("#"+file.id).find(".statusIcon").show(); } }); // 文件上传失败,显示上传出错。 uploader.on('uploadError', function(file) { $("#"+file.id).find(".process-wrap").hide(); $("#"+file.id).find(".uploadStatus").text("上传失败").css("color","#FF4C4C");//上传失败 $("#"+file.id).find(".statusIcon").show(); }); //完成上传完了,成功或者失败 uploader.on('uploadComplete', function(file) { //重置url this.options.formData={"company_id":company_id}; this.options.fileVal="userupload"; this.options.server=_this.uploadURL; }); } } // var file_upload = new FileUpload('file-picker',http_pro+host+'/upload_img_file.php?company_id='+company_id); var file_upload = new FileUpload('file-picker',http_pro+host+'/visitor/uploadImgFile.php?company_id='+company_id+'&guest_id='+myid); file_upload.init(); }); // 上传=============================end================================================== // 图片预加载防止图片闪烁 ============================ (function(){ //存放图片路径的数组 var imgSrcArr = [ "style/chat/new2017/image/png/toasts.png", "style/chat/new2017/image/svg/toasts.svg" ]; var imgWrap = []; function preloadImg(arr) { for(var i =0; i< arr.length ;i++) { imgWrap[i] = new Image(); imgWrap[i].src = arr[i]; } } preloadImg(imgSrcArr); })() //视频上传返回 function videoUploadResponse(file,response,type,filename){ if(type=='video'||type=='audio'){ var file_url = response.url+"*"+filename; }else{ var file_url = http_pro+host+"/down_file.php?type=srv&company_id="+company_id+"&file="+response.real_name; } file_url = UrlEncode(file_url); send_FIL(file_url,type,file.size); // 发送文件给客服 $("#"+file.id).find(".uploadStatus").text(langs[14]).css("color","#1E88E5");//上传成功 } //显示为视频或音频 function displayAsVideoAudio(msg,fk_msgid,msg_time,identity,talkname) { if(fk_msgid == undefined) { var fk_msgid_str = ''; }else{ var fk_msgid_str = ' id="'+fk_msgid+'" class="info-status"'; } if (talkname == undefined) talkname = obj_name; if (talkname == '') talkname = langs[45];//客服 if (msg_time == undefined) msg_time = getTime2(); var vdtype=(msg.indexOf("mp4")>-1)?"video":"audio"; var message=msg.match(/[a-zA-z]+:\/\/[^\s]*/); var name=msg.split(message)[1].match(/[\w.]*\.[\w.]*/); if(identity=="fk"){ if(msg.indexOf("mp4")>-1){ var show_msg = '<div class="pc-customer"><p><label>'+langs[49]+'</label><span>'+msg_time+'</span></p><div class="pc-customer-info" style="background-color:'+minicolor_fkqp+';"><div class="textWrap" style="color:'+minicolor_fkxx+';"><'+vdtype+' class="upload-'+vdtype+'" style="width:320px;height:240px;" controls="controls" src='+message+'></'+vdtype+'></div></div></div>'; }else{ var show_msg = '<div class="pc-customer"><p><label>'+langs[49]+'</label><span>'+msg_time+'</span></p><div class="pc-customer-info" style="width:262px;background-color:'+minicolor_fkqp+';"><div class="textWrap" style="color:'+minicolor_fkxx+';width:262px;"><'+vdtype+' class="upload-'+vdtype+'" style="width:250px;height:55px;margin-left:-2px;" controls="controls" src='+message+'></'+vdtype+'></div></div></div>'; } //若为ie8及以下浏览器,覆盖show_msg为卡片文件格式 if(!!window.ActiveXObject&&document.documentMode==8){ var show_msg = '<div class="upload-wrap kf-uploadFile">'+ '<div class="upload-file fr">'+ '<p class="file-header">'+ '<span class="fileName" style="min-height:18px;">'+name+'</span>'+ '<span class="fileSize fr">'+langs[44]+'</span>'+ '</p>'+ '<div class="uploadStatus color-blue fr"><a href="'+message+'" target="_blank">'+langs[68]+'</a></div>'+ '<div class="statusIcon"></div>'+ '</div>'+ '</div>'; } }else if(identity=="kf"){ if(msg.indexOf("mp4")>-1){ var show_msg = '<div class="pc-service file_cancel"><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><p><label>'+talkname+'</label><span>'+msg_time+'</span></p><div class="upload-wrap kf-uploadFile" >'+'<div class="upload-file fl" style="width:340px;">'+'<video class="upload-video" style="background-color:black;width:320px;height:240px;" src="'+message+'" controls="controls">抱歉,您的浏览器不支持视频播放</video></div>'+'</div>'+'</div></div></div>'; }else{ var show_msg = '<div class="pc-service file_cancel"><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right" ><p><label>'+talkname+'</label><span>'+msg_time+'</span></p><div class="upload-wrap kf-uploadFile" style="width:262px;">'+'<div class="upload-file fl" style="width:262px;">'+'<audio class="upload-audio" style="background-color:white;width:250px;height:55px;margin-left:-5px;" src="'+message+'" controls="controls">抱歉,您的浏览器不支持音频播放</audio></div>'+'</div>'+'</div></div></div>'; } //若为ie8及以下浏览器,覆盖show_msg为卡片文件格式 if(!!window.ActiveXObject&&document.documentMode==8){ var show_msg = '<div class="pc-service file_cancel"><div class="pc-service-left" style="display: inline-block;"><img src="'+kf_header+'" alt="'+langs[11]+'"></div><div class="pc-service-right"><div class="upload-wrap kf-uploadFile">'+ '<div class="upload-file fl">'+ '<p class="file-header">'+ '<span class="fileName" style="min-height:18px;">'+name+'</span>'+ '<span class="fileSize fr">'+langs[44]+'</span>'+ '</p>'+ '<div class="uploadStatus color-blue fr"><a href="'+message+'" target="_blank">'+langs[68]+'</a></div>'+ '<div class="statusIcon"></div>'+ '</div>'+ '</div></div></div>'; } } $(".pc_talk_content").append(show_msg); basic.scrollPage(); setQstResTimer(fk_msgid); } //显示为文件 function displayAsFile(data_id,file_name,size) { var msg_time = getTime2(); var name=basic.beforeRender(file_name); var html = '<div class="pc-customer"><p><label>'+langs[49]+'</label><span>'+msg_time+'</span></p><div class="upload-wrap fk-uploadFile" id = "'+data_id+'">'+ '<div class="upload-file fr">'+ '<p class="file-header">'+ '<span class="fileName" title="'+file_name+'">'+name+'</span>'+ '<span class="fileSize fr">'+size+'</span>'+ '</p>'+ '<div class="uploadStatus color-blue" style="color: rgb(30, 136, 229);">'+langs[14]+'</div>'+ '<div class="statusIcon"></div>'+ '</div>'+ '</div>'+ '</div>'; $("#"+data_id).html(html); } </script> </html>

Pages: 1 2 3 4 5 6 7 8 9 10