1if (window.location.href.toLowerCase().indexOf("https") > -1) { 2var yonyou_ymc_c = document.createElement("script"), 3yonyou_ymc_n = document.getElementsByTagName("script")[0]; 4yonyou_ymc_c.type = "text/javascript"; 5yonyou_ymc_c.async = true; 6yonyou_ymc_c.id = "uba-sdk"; 7yonyou_ymc_c.src = 8"https://design.yonyoucloud.com/static/ucf/iuap-ymc-web.ubasdk-fe/release/uba-init.js?tid=OfILGnVasW9321995342&appid=KqXYyZzyxk9322306249"; 9yonyou_ymc_c.onload = function () { 10uba.setConfig({ 11getBizData: function () { 12return { 13ytid: "qyic8c7o", 14domaincode: "OTH", 15domainname: "å ¶ä»", 16labelcode: "YYIT", 17labelname: "é墿°æºå", 18servicecode: "382ba828-bb7c-48d3-9179-ed08fa066b97", 19servicename: "ç¨åå®ç½", 20appcode: "yyit-official-website", 21appname: "èªå»º-ç¨åå®ç½", 22dccode: "dc-core1", 23env: "stage-dc-core1", 24}; 25}, 26}); 27}; 28yonyou_ymc_n.parentNode.insertBefore(yonyou_ymc_c, yonyou_ymc_n); 29} 30var toutiaoIds = 31"6114e3d078c32f0001f50627,612451085e54be0001fbdd3f,614597115319290001453b21,61415b2ca4d92b00015a83da,612dc46862d31d000122a285,61415cbbb7dea000010cf7c8,61415dbc62d31d0001a89f6d,61415e6062d31d0001a89f6e,61415fa8b7dea000010cf7cb,61415faab7dea000010cf7cc,61415faca4d92b00015a83e0,61415fadb7dea000010cf7cd,6151993652c3c20001bce893,616e20e962d31d000144267e"; 32if (GetQueryString("id") && toutiaoIds.indexOf(GetQueryString("id")) > -1) { 33(function (r, d, s, l) { 34var meteor = (r.meteor = r.meteor || []); 35meteor.methods = ["track", "off", "on"]; 36meteor.factory = function (method) { 37return function () { 38var args = Array.prototype.slice.call(arguments); 39args.unshift(method); 40meteor.push(args); 41return meteor; 42}; 43}; 44for (var i = 0; i < meteor.methods.length; i++) { 45var key = meteor.methods[i]; 46meteor[key] = meteor.factory(key); 47} 48meteor.load = function () { 49var js, 50fjs = d.getElementsByTagName(s)[0]; 51js = d.createElement(s); 52js.src = "https://analytics.snssdk.com/meteor.js/v1/" + l + "/sdk"; 53fjs.parentNode.insertBefore(js, fjs); 54}; 55meteor.load(); 56if (meteor.invoked) { 57return; 58} 59meteor.invoked = true; 60meteor.track("pageview"); 61})(window, document, "script", "1707219418470414"); 62} else { 63var meteor = { 64track: function () {}, 65}; 66window.meteor = meteor; 67} 68if (window.location.href.toLowerCase().indexOf("/yonbip") == -1) { 69var _hmt = _hmt || []; 70(function () { 71var hm = document.createElement("script"); 72hm.src = "https://hm.baidu.com/hm.js?e3aa034ae915a083dbe23e105d579695"; 73var s = document.getElementsByTagName("script")[0]; 74s.parentNode.insertBefore(hm, s); 75if (window.location.host.indexOf("hubei") > -1) { 76(function () { 77var _53code = document.createElement("script"); 78_53code.src = 79"https://tb.53kf.com/code/code/e14d8aac2f7364f303592ecb3b01358d1/1"; 80var hubeis = document.getElementsByTagName("script")[0]; 81hubeis.parentNode.insertBefore(_53code, hubeis); 82})(); 83} 84})(); 85} 86if ( 87(typeof ldyCode !== "undefined" && 88"yw-erp,ft-erp-gywm,ft-erp-khal".indexOf(ldyCode) > -1) || 89(getQueryVariable("code") && 90"yw-erp,ft-erp-gywm,ft-erp-khal".indexOf(getQueryVariable("code")) > -1) 91) {
vendor: 385 bytes, lines 91-101
91 92(function (w, d, s, l, i) { 93w[l] = w[l] || []; 94w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" }); 95var f = d.getElementsByTagName(s)[0], 96j = d.createElement(s), 97dl = l != "dataLayer" ? "&l=" + l : ""; 98j.async = true; 99j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl; 100f.parentNode.insertBefore(j, f); 101})(window, document, "script", "dataLayer", "
101GTM-5T63DRG
vendor: 5 bytes, line 101
101");
102} 103function setCookie(name, value, days) { 104var expires = ""; 105if (days) { 106var date = new Date(); 107date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000); 108expires = "; expires=" + date.toGMTString(); 109} 110document.cookie = 111name + "=" + encodeURIComponent(value) + expires + "; path=/; Secure"; 112} 113function getCookie(name) { 114var nameEQ = name + "="; 115var ca = document.cookie.split(";"); 116for (var i = 0; i < ca.length; i++) { 117var c = ca[i]; 118while (c.charAt(0) === " ") c = c.substring(1, c.length); 119if (c.indexOf(nameEQ) === 0) 120return decodeURIComponent(c.substring(nameEQ.length, c.length)); 121} 122return null; 123} 124function deleteCookie(name) { 125setCookie(name, "", -1); 126} 127if (document.referrer && document.referrer.indexOf("yonyou.com") == -1) { 128sessionStorage.web_pre_url = document.referrer; 129} 130if (document.referrer && document.referrer.indexOf("www.baidu.com") > 0) { 131sessionStorage._fromSource = "baidu"; 132} else if (document.referrer && document.referrer.indexOf("so.com") > 0) { 133sessionStorage._fromSource = "so360"; 134} 135if (getQueryVariable("_bd_ldy")) { 136sessionStorage._bd_ldy = getQueryVariable("_bd_ldy"); 137} 138if (getQueryVariable("bd_vid")) { 139sessionStorage._bd_ldy = encodeURIComponent(window.location.href); 140} 141if (getQueryVariable("_sg_ldy")) { 142sessionStorage._sg_ldy = getQueryVariable("_sg_ldy"); 143} 144if (getQueryVariable("sg_vid")) { 145sessionStorage._sg_ldy = encodeURIComponent(window.location.href); 146} 147if (getQueryVariable("_so_ldy")) { 148sessionStorage._so_ldy = getQueryVariable("_so_ldy"); 149} 150if (getQueryVariable("qhclickid")) { 151sessionStorage._so_ldy = getQueryVariable("qhclickid"); 152} 153if (getQueryVariable("sourceid")) { 154sessionStorage._so_ldy = getQueryVariable("sourceid"); 155} 156if (getQueryVariable("_wangyi_ldy")) { 157sessionStorage._wangyi_ldy = getQueryVariable("_wangyi_ldy"); 158} 159if (getQueryVariable("ext_youdao")) { 160sessionStorage._wangyi_ldy = getQueryVariable("ext_youdao"); 161} 162if (getQueryVariable("gdt_vid")) { 163sessionStorage._souyisou_ldy = getQueryVariable("gdt_vid"); 164} 165if (getQueryVariable("qz_gdt")) { 166sessionStorage._souyisou_ldy = getQueryVariable("qz_gdt"); 167} 168if (getQueryVariable("_bing_ldy")) { 169sessionStorage._bing_ldy = getQueryVariable("_bing_ldy"); 170} 171if (getQueryVariable("msclkid")) { 172sessionStorage._bing_ldy = getQueryVariable("msclkid"); 173} 174if ( 175getQueryVariable("cb") && 176getQueryVariable("cb").indexOf("zhihu.com") > -1 177) { 178if (getQueryVariable("_zhihu_ldy")) { 179sessionStorage._zhihu_ldy = getQueryVariable("_zhihu_ldy"); 180} 181sessionStorage._zhihu_ldy = getQueryVariable("cb"); 182} 183if (getQueryVariable("popularize_url")) { 184sessionStorage.popularize_url = decodeURIComponent( 185getQueryVariable("popularize_url"), 186); 187} 188if (getQueryVariable("channelid")) { 189sessionStorage.channel_code = decodeURIComponent( 190getQueryVariable("channelid"), 191); 192} 193if (getQueryVariable("utm_source")) { 194sessionStorage.channel_name = decodeURIComponent( 195getQueryVariable("utm_source"), 196); 197} 198if (getQueryVariable("utm_campaign")) { 199sessionStorage.popularize_ad_name = decodeURIComponent( 200getQueryVariable("utm_campaign"), 201); 202} 203if (getQueryVariable("utm_content")) { 204sessionStorage.popularize_unit_name = decodeURIComponent( 205getQueryVariable("utm_content"), 206); 207} 208if (getQueryVariable("utm_term")) { 209sessionStorage.keyword = decodeURIComponent(getQueryVariable("utm_term")); 210} 211if (getQueryVariable("e_adposition")) { 212sessionStorage.show_rank = decodeURIComponent( 213getQueryVariable("e_adposition"), 214); 215} 216if (getQueryVariable("e_creative")) { 217sessionStorage.creative_id = decodeURIComponent( 218getQueryVariable("e_creative"), 219); 220} 221if (getQueryVariable("e_keywordid2")) { 222sessionStorage.key_word_id = decodeURIComponent( 223getQueryVariable("e_keywordid2"), 224); 225} 226if (getQueryVariable("f") && getQueryVariable("id")) { 227sessionStorage.setItem( 228"mkWebChannelCode", 229getQueryVariable("id") + "|" + getQueryVariable("f"), 230); 231} 232if (getQueryVariable("fOrg") && getQueryVariable("id")) { 233sessionStorage.setItem( 234"mkWebShareOrg", 235getQueryVariable("id") + "|" + getQueryVariable("fOrg"), 236); 237} 238function getChannelCode(id) { 239var channelCode = ""; 240if ( 241sessionStorage.mkWebChannelCode && 242sessionStorage.mkWebChannelCode.indexOf(id) > -1 243) { 244channelCode = sessionStorage.mkWebChannelCode.split("|")[1]; 245} 246return channelCode; 247} 248function getShareOrg(id) { 249var shareOrg = ""; 250if ( 251sessionStorage.mkWebShareOrg && 252sessionStorage.mkWebShareOrg.indexOf(id) > -1 253) { 254shareOrg = sessionStorage.mkWebShareOrg.split("|")[1]; 255} 256return shareOrg; 257} 258function getQueryVariable(variable) { 259var query = window.location.search.substring(1); 260var vars = query.split("&"); 261for (var i = 0; i < vars.length; i++) { 262var pair = vars[i].split("="); 263if (pair[0] == variable) { 264return pair[1]; 265} 266} 267return false; 268} 269function GetQueryString(variable) { 270var query = window.location.search.substring(1); 271var vars = query.split("&"); 272for (var i = 0; i < vars.length; i++) { 273var pair = vars[i].split("="); 274if (pair[0] == variable) { 275return pair[1]; 276} 277} 278return false; 279} 280function getJsParams(jsid) { 281var theRequest = new Object(); 282try { 283var test = document.getElementById(jsid); 284var src = test.getAttribute("src"); 285if (src.indexOf("?") != -1) { 286var str = src.substr(src.indexOf("?") + 1); 287var strs = str.split("&"); 288for (var i = 0; i < strs.length; i++) { 289theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); 290} 291} 292} catch (e) {} 293return theRequest; 294} 295var yonyoucomBrowserType = getBrowserType(); 296function getBrowserType() { 297var ua = (navigator.userAgent || "").toLowerCase(); 298if (!ua) return "pc"; 299var isHarmony = /harmonyos|openharmony|hm\s?os|hmos/i.test(ua); 300var isHarmonyBuild = /build\/hm/i.test(ua); 301var isHuaweiBrand = /huawei|honor/i.test(ua); 302var isMobile = /ipad|iphone|ipod|android|windows\s*(ce|phone|mobile)|blackberry|webos|midp|rv:1\.2\.3\.4|ucweb|harmonyos|openharmony/i.test(ua); 303if (isHarmony || isHarmonyBuild || isHuaweiBrand || isMobile) { 304return "mobile"; 305} 306return "pc"; 307} 308function tuiguangParams(params) { 309try { 310params.clue_submit_url = window.location.href; 311params.clue_submit_pre_url = document.referrer; 312params.clue_submit_location = ""; 313if (typeof returnCitySN != "undefined") { 314params.ip_city = returnCitySN.cname; 315params.ip = returnCitySN.cip; 316} 317params.history_like_product = sessionStorage.history_like_product; 318params.web_pre_url = sessionStorage.web_pre_url; 319params.popularize_url = sessionStorage.popularize_url; 320if (sessionStorage.channel_name) { 321params.channel_name = sessionStorage.channel_name; 322} else { 323if (document.referrer.indexOf("yonyou.com") > -1) { 324params.channel_name = "GWTG"; 325} else if ( 326(window.location.href.indexOf("mk.yybip.com") > -1 || 327window.location.href.indexOf("mkfs.yybip.com") > -1) && 328window.location.href.indexOf("61dd38a1b60ea800019cbb1b") == -1 329) { 330} else { 331params.channel_name = "GWTG"; 332} 333} 334params.popularize_ad_name = sessionStorage.popularize_ad_name; 335params.popularize_unit_name = sessionStorage.popularize_unit_name; 336params.keyword = sessionStorage.keyword; 337params.show_rank = sessionStorage.show_rank; 338params.creative_id = sessionStorage.creative_id; 339params.key_word_id = sessionStorage.key_word_id; 340params.search_word = sessionStorage.search_word; 341if (sessionStorage._bd_ldy) { 342params.sem_from = "baidu"; 343params.sem_url = decodeURIComponent(sessionStorage._bd_ldy); 344params.sem_token = ""; 345params.sem_id = decodeURIComponent(sessionStorage._bd_ldy); 346params.sem_data_industry = ""; 347} else if (sessionStorage._sg_ldy) { 348params.sem_from = "sogou"; 349params.sem_url = decodeURIComponent(sessionStorage._sg_ldy); 350params.sem_token = ""; 351params.sem_id = decodeURIComponent(sessionStorage._sg_ldy); 352params.sem_data_industry = ""; 353} else if (sessionStorage._so_ldy) { 354var qhclickid = decodeURIComponent(sessionStorage._so_ldy); 355var data_industry = ""; 356if (qhclickid.length == 16) { 357if (yonyoucomBrowserType == "pc") { 358data_industry = "ocpc_ps_convert"; 359} else { 360data_industry = "ocpc_ms_convert"; 361} 362} else if (qhclickid.length == 12) { 363data_industry = "ocpc_zs_convert"; 364} 365params.sem_from = "360"; 366params.sem_url = ""; 367params.sem_token = "";
368params.sem_id = qhclickid; 369params.sem_data_industry = data_industry; 370} else if (sessionStorage._wangyi_ldy) { 371params.sem_from = "wangyi"; 372params.sem_url = ""; 373params.sem_token = ""; 374params.sem_id = decodeURIComponent(sessionStorage._wangyi_ldy); 375params.sem_data_industry = ""; 376} else if (sessionStorage._zhihu_ldy) { 377params.sem_from = "zhihu"; 378params.sem_url = decodeURIComponent(sessionStorage._zhihu_ldy); 379params.sem_token = ""; 380params.sem_id = decodeURIComponent(sessionStorage._zhihu_ldy); 381params.sem_data_industry = ""; 382} else if (sessionStorage._souyisou_ldy) { 383params.sem_from = "souyisou"; 384params.sem_url = encodeURI("www.yonyou.com"); 385params.sem_token = ""; 386params.sem_id = sessionStorage._souyisou_ldy; 387params.sem_data_industry = ""; 388} else if (sessionStorage._bing_ldy) { 389params.sem_from = "Bing"; 390params.sem_url = ""; 391params.sem_token = ""; 392params.sem_id = sessionStorage._bing_ldy; 393params.sem_data_industry = ""; 394} 395} catch (e) {} 396} 397function tuiguangUrl(url) { 398var tempUrl = ""; 399try { 400if (sessionStorage._bd_ldy) { 401tempUrl += "&_bd_ldy=" + sessionStorage._bd_ldy; 402} 403if (sessionStorage._sg_ldy) { 404tempUrl += "&_sg_ldy=" + sessionStorage._sg_ldy; 405} 406if (sessionStorage._so_ldy) { 407tempUrl += "&_so_ldy=" + sessionStorage._so_ldy; 408} 409if (sessionStorage._wangyi_ldy) { 410tempUrl += "&_wangyi_ldy=" + sessionStorage._wangyi_ldy; 411} 412if (sessionStorage._zhihu_ldy) { 413tempUrl += "&_zhihu_ldy=" + sessionStorage._zhihu_ldy; 414} 415if (sessionStorage._souyisou_ldy) { 416tempUrl += "&gdt_vid=" + sessionStorage._souyisou_ldy; 417} 418if (sessionStorage._bing_ldy) { 419tempUrl += "&_bing_ldy=" + sessionStorage._bing_ldy; 420} 421if (getQueryVariable("popularize_url")) { 422tempUrl += "&popularize_url=" + getQueryVariable("popularize_url"); 423} 424if (getQueryVariable("utm_source")) { 425tempUrl += "&utm_source=" + getQueryVariable("utm_source"); 426} 427if (sessionStorage.channel_name) { 428tempUrl += "&utm_source=" + sessionStorage.channel_name; 429} 430if (getQueryVariable("utm_campaign")) { 431tempUrl += "&utm_campaign=" + getQueryVariable("utm_campaign"); 432} 433if (getQueryVariable("utm_content")) { 434tempUrl += "&utm_content=" + getQueryVariable("utm_content"); 435} 436if (getQueryVariable("utm_term")) { 437tempUrl += "&utm_term=" + getQueryVariable("utm_term"); 438} 439if (getQueryVariable("e_adposition")) { 440tempUrl += "&e_adposition=" + getQueryVariable("e_adposition"); 441} 442if (getQueryVariable("e_creative")) { 443tempUrl += "&e_creative=" + getQueryVariable("e_creative"); 444} 445if (getQueryVariable("e_keywordid2")) { 446tempUrl += "&e_keywordid2=" + getQueryVariable("e_keywordid2"); 447} 448} catch (e) {} 449return url + tempUrl; 450} 451var yxChannelMap = [ 452[ 453"bdpz", 454"4000-018-222", 455"4000-018-222", 456"https://www.yonyou.com/assets/images/bdpz.png", 457"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4000-018-222ï¼ç¾åº¦åä¸ï¼.png", 458"https://www.yonyou.com/sem/images/bg/bdpz.jpg", 459"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/bdpz.png", 460], 461[ 462"bdtycpz", 463"4000-018-222", 464"4000-018-222", 465"https://www.yonyou.com/assets/images/bdpz.png", 466"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4000-018-222ï¼ç¾åº¦åä¸ï¼.png", 467"https://www.yonyou.com/sem/images/bg/other.jpg", 468"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/other.png", 469], 470[ 471"baiduZ20", 472"4006-600-522", 473"4006-600-522", 474"https://www.yonyou.com/assets/images/4006600522䏿µ·sem.png", 475"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4006600522䏿µ·.png", 476"https://www.yonyou.com/sem/images/bg/baidu.jpg", 477"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/baidu.png", 478], 479[ 480"baiduZ60", 481"4006-600-213", 482"4006-600-213", 483"https://www.yonyou.com/assets/images/4006600213åå䏿°æ®sem.png", 484"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4006600213åå䏿°æ®.png", 485"https://www.yonyou.com/sem/images/bg/baidu.jpg", 486"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/baidu.png", 487], 488[ 489"baiduZ71", 490"4006-505-063", 491"4006-505-063", 492"https://www.yonyou.com/assets/images/4006505063sem.png", 493"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4006505063.png", 494"https://www.yonyou.com/sem/images/bg/baidu.jpg", 495"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/baidu.png", 496], 497[ 498"baiduZ76", 499"4006-505-062", 500"4006-505-062", 501"https://www.yonyou.com/assets/images/4006505062sem.png", 502"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4006505062.png", 503"https://www.yonyou.com/sem/images/bg/baidu.jpg", 504"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/baidu.png", 505], 506[ 507"baiduZ14", 508"4006-505-061", 509"4006-505-061", 510"https://www.yonyou.com/assets/images/4006505061æ·±å³sem.png", 511"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4006505061æ·±å³.png", 512"https://www.yonyou.com/sem/images/bg/baidu.jpg", 513"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/baidu.png", 514], 515[ 516"baidu", 517"4000-056-222", 518"4000-056-222", 519"https://www.yonyou.com/assets/images/bdsem.png", 520"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4000-056-222ï¼ç¾åº¦SEMï¼.png", 521"https://www.yonyou.com/sem/images/bg/baidu.jpg", 522"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/baidu.png", 523], 524[ 525"360pz", 526"4000-061-222", 527"4000-061-222", 528"https://www.yonyou.com/assets/images/360pz.png", 529"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4000-061-222ï¼360åä¸).png", 530"https://www.yonyou.com/sem/images/bg/360pz.jpg", 531"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/360pz.png", 532], 533[ 534"360sem",
535"4000-057-222", 536"4000-057-222", 537"https://www.yonyou.com/assets/images/360sem.png", 538"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4000-057-222ï¼360SEMï¼.png", 539"https://www.yonyou.com/sem/images/bg/360sem.jpg", 540"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/360sem.png", 541], 542[ 543"sogou", 544"4000-058-222", 545"4000-058-222", 546"https://www.yonyou.com/assets/images/sougousem.png", 547"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4000-058-222ï¼æçSEMï¼.png", 548"https://www.yonyou.com/sem/images/bg/sogousem.jpg", 549"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/sogousem.png", 550], 551[ 552"soso", 553"4000-058-222", 554"4000-058-222", 555"https://www.yonyou.com/assets/images/sougousem.png", 556"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4000-058-222ï¼æçSEMï¼.png", 557"https://www.yonyou.com/sem/images/bg/sososem.jpg", 558"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/sososem.png", 559], 560[ 561"bing", 562"4006-605-037", 563"4006-605-037", 564"https://www.yonyou.com/assets/images/bingsem.png", 565"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4006-605-037ï¼bingsemï¼.png", 566"https://www.yonyou.com/sem/images/bg/bingsem.jpg", 567"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/bingsem.png", 568], 569]; 570function yxChannelPhoneNumber(channelName) { 571var defaultPhoneNumber = "4006-600-577"; 572var channelTemp = ""; 573if (channelName) { 574for (var i = 0; i < yxChannelMap.length; i++) { 575if (channelName.indexOf(yxChannelMap[i][0]) > -1 && channelTemp == "") { 576channelTemp = yxChannelMap[i]; 577} 578} 579} 580return channelTemp 581? yonyoucomBrowserType == "pc" 582? channelTemp[1] 583: channelTemp[2] 584: defaultPhoneNumber; 585} 586function yxChannelScanPhone(channelName) { 587var defaultScanPhone = "https://www.yonyou.com/assets/images/default.png"; 588var channelTemp = ""; 589if (channelName) { 590for (var i = 0; i < yxChannelMap.length; i++) { 591if (channelName.indexOf(yxChannelMap[i][0]) > -1 && channelTemp == "") { 592channelTemp = yxChannelMap[i]; 593} 594} 595} 596return channelTemp ? channelTemp[3] : defaultScanPhone; 597} 598function yxChannelScanPhoneNoWord(channelName) { 599var defaultScanPhone = 600"https://mkfs.yybip.com/static/yingxiao/scanphonenoword/4006-600-577ï¼èªç¶æµéï¼.png"; 601var channelTemp = ""; 602if (channelName) { 603for (var i = 0; i < yxChannelMap.length; i++) { 604if (channelName.indexOf(yxChannelMap[i][0]) > -1 && channelTemp == "") { 605channelTemp = yxChannelMap[i]; 606} 607} 608} 609return channelTemp ? channelTemp[4] : defaultScanPhone; 610} 611function yxChannelQiyeWeixin(channelName) { 612var defaultQiyeWeixin = "https://www.yonyou.com/sem/images/bg/other.jpg"; 613var channelTemp = ""; 614if (channelName) { 615for (var i = 0; i < yxChannelMap.length; i++) { 616if (channelName.indexOf(yxChannelMap[i][0]) > -1 && channelTemp == "") { 617channelTemp = yxChannelMap[i]; 618} 619} 620} 621return channelTemp ? channelTemp[5] : defaultQiyeWeixin; 622} 623function yxChannelQiyeWeixinBottom(channelName) { 624var defaultQiyeWeixin = 625"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/bottom/other.png"; 626var channelTemp = ""; 627if (channelName) { 628for (var i = 0; i < yxChannelMap.length; i++) { 629if (channelName.indexOf(yxChannelMap[i][0]) > -1 && channelTemp == "") { 630channelTemp = yxChannelMap[i]; 631} 632} 633} 634return channelTemp ? channelTemp[6] : defaultQiyeWeixin; 635} 636function changePhoneNumber(telnumber) { 637var phoneNumber = telnumber 638? telnumber 639: yxChannelPhoneNumber(sessionStorage.channel_name); 640var scanPhone = yxChannelScanPhone(sessionStorage.channel_name); 641var qiyeWeixin = yxChannelQiyeWeixin(sessionStorage.channel_name); 642var qiyeWeixinBotton = yxChannelQiyeWeixinBottom(sessionStorage.channel_name); 643var channelPhoneNums = document.querySelectorAll(".yonyou_channel_phonenum"); 644if (channelPhoneNums.length > 0) { 645for (var i = 0; i < channelPhoneNums.length; i++) { 646channelPhoneNums[i].innerText = channelPhoneNums[i].innerText.replace( 647"4006-600-577", 648phoneNumber, 649); 650if (channelPhoneNums[i].href) { 651channelPhoneNums[i].href = channelPhoneNums[i].href.replace( 652"4006600577", 653phoneNumber.replace("-", "").replace("-", ""), 654); 655channelPhoneNums[i].href = channelPhoneNums[i].href.replace( 656"4006600511", 657phoneNumber.replace("-", "").replace("-", ""), 658); 659} 660} 661} 662var ceoImages = document.querySelectorAll( 663".yonyou-sem-block .inner-box-ceo .inner-box-con img", 664); 665if ( 666ceoImages.length > 0 && 667ceoImages[0].src.indexOf("https://www.yonyou.com/sem/images/bg/other.png") > 668-1 669) { 670ceoImages[0].src = ceoImages[0].src.replace( 671"https://www.yonyou.com/sem/images/bg/other.png", 672qiyeWeixin, 673); 674} 675var zixunImages = document.querySelectorAll( 676".yonyou-sem-block .inner-box-zixun .inner-box-con img", 677); 678if ( 679zixunImages.length > 0 && 680zixunImages[0].src.indexOf( 681"https://www.yonyou.com/sem/images/bg/other.png", 682) > -1 683) { 684zixunImages[0].src = zixunImages[0].src.replace( 685"https://www.yonyou.com/sem/images/bg/other.png", 686qiyeWeixin, 687); 688} 689var qiyeWeixinImages = document.querySelectorAll( 690".mk-autoweb-footer-menu-qiye-weixin", 691); 692if ( 693qiyeWeixinImages.length > 0 && 694(qiyeWeixinImages[0].src == 695"https://mkfs.yybip.com/static/yingxiao/qiyeweixin/default_zi.jpg" || 696qiyeWeixinImages[0].src == 697"https://mks.yybip.com/group1/M00/01/BC/CgoRDGQqKyiAJV5iAAK6203KjvI435.png") 698) { 699qiyeWeixinImages[0].src = qiyeWeixinBotton; 700} 701var headerPhoneImages = document.querySelectorAll(".header-phone img"); 702if ( 703headerPhoneImages.length > 0 && 704headerPhoneImages[0].src.indexOf("/assets/images/default.png") > -1 705) { 706headerPhoneImages[0].src = scanPhone; 707} 708var semPhoneLinks = document.querySelectorAll( 709".yy-bottom-block-fixed .sem-phone a", 710); 711if (semPhoneLinks.length > 0) { 712semPhoneLinks[0].href = 713"tel:" + phoneNumber.replace("-", "").replace("-", ""); 714} 715var phoneHeaderLinks = document.querySelectorAll(".phone-header-right a"); 716if (phoneHeaderLinks.length > 0) { 717phoneHeaderLinks[0].href = 718"tel:" + phoneNumber.replace("-", "").replace("-", ""); 719phoneHeaderLinks[0].innerHTML = phoneHeaderLinks[0].innerHTML.replace( 720"4006-600-511", 721phoneNumber, 722); 723} 724var mHeaderLinks = document.querySelectorAll(".m_header .phone-num"); 725if (mHeaderLinks.length > 0) { 726mHeaderLinks[0].href = 727"tel:" + phoneNumber.replace("-", "").replace("-", ""); 728mHeaderLinks[0].innerHTML = mHeaderLinks[0].innerHTML.replace( 729"4006-600-511", 730phoneNumber, 731); 732} 733var mobileFooterLinks = document.querySelectorAll( 734".mobile_footer .phone_num a", 735); 736if (mobileFooterLinks.length > 0) { 737mobileFooterLinks[0].href = 738"tel:" + phoneNumber.replace("-", "").replace("-", ""); 739mobileFooterLinks[0].innerHTML = mobileFooterLinks[0].innerHTML.replace( 740"4006-600-511", 741phoneNumber, 742); 743} 744} 745var baseMkUrl = "https://mk-api.yybip.com/"; 746function openMkDataInfo(id) { 747getMkDataInfo(id, function (result) { 748window.open(transformDownloadUrl(result[0].fileUrl, result[0].title)); 749}); 750} 751function downloadMkDataInfo(id) { 752getMkDataInfo(id, function (result) { 753yonyouMkLogger.download(id, "doc"); 754downloadUrl(result[0].fileUrl, result[0].title); 755}); 756} 757function downloadUrl(url, fileName) { 758fetch(url) 759.then((response) => response.blob()) 760.then((blob) => { 761const downloadUrl = URL.createObjectURL(blob); 762const a = document.createElement("a"); 763a.href = downloadUrl; 764a.download = fileName; 765document.body.appendChild(a); 766a.click(); 767document.body.removeChild(a); 768URL.revokeObjectURL(downloadUrl); 769}) 770.catch((error) => console.error("ä¸è½½å¤±è´¥:", error)); 771}
772function getMkDataInfo(id, callback) { 773$.ajax({ 774url: baseMkUrl + "content-service/doc_article/" + id + "/netapi/fileinfo", 775type: "GET", 776async: false, 777EncType: "text/plain", 778contentType: "text/plain", 779success: function (result) { 780callback(result); 781}, 782error: function (res) { 783if (res.responseJSON) { 784alert(res.responseJSON.desc); 785} 786}, 787}); 788} 789function transformDownloadUrl(originUrl, fileName) { 790var index = originUrl.lastIndexOf("."); 791var returnUrlBefore = originUrl.slice(0, index); 792var returnUrlAfter = originUrl.slice(index); 793var returnUrlAfterLower = returnUrlAfter.toLowerCase(); 794if ( 795returnUrlAfterLower.indexOf(".jpg") >= 0 || 796returnUrlAfterLower.indexOf(".jpeg") >= 0 || 797returnUrlAfterLower.indexOf(".png") >= 0 || 798returnUrlAfterLower.indexOf(".gif") >= 0 || 799returnUrlAfterLower.indexOf(".bmp") >= 0 || 800returnUrlAfterLower.indexOf(".ico") >= 0 || 801returnUrlAfterLower.indexOf(".tif") >= 0 || 802returnUrlAfterLower.indexOf(".webp") >= 0 803) { 804return originUrl; 805} else if (fileName) { 806return returnUrlBefore + "/" + fileName + returnUrlAfter; 807} else { 808return originUrl; 809} 810} 811function transformMKUrl(url, size) { 812if (url) { 813if (size) { 814url = url.replace("group1/", size + "/group1/"); 815} 816if (url.indexOf("http") > -1) { 817return url 818.replace("http://mk.yonyou.com", "https://mks.yybip.com") 819.replace("https://mk.yonyou.com", "https://mks.yybip.com"); 820} else { 821return "https://mks.yybip.com/" + url; 822} 823} else { 824return ""; 825} 826} 827document.addEventListener("DOMContentLoaded", function () { 828getYonyouUserInfo(); 829var closeBtn = document.querySelector("#myModal .close"); 830if (closeBtn) { 831closeBtn.addEventListener("click", function () { 832var iframeVideo = document.getElementById("iframeVideo"); 833if (iframeVideo) { 834iframeVideo.src = ""; 835} 836}); 837} 838}); 839var yonyou_user_info = null; 840var yonyouComLoginInserted = false; 841function yonyouComLogin() { 842if (yonyouComLoginInserted) return; 843yonyouComLoginInserted = true; 844var yhtjsonpscript = document.createElement("script"); 845yhtjsonpscript.type = "text/javascript"; 846yhtjsonpscript.src = 847"https://euc.yonyoucloud.com/cas/checkislogin?checkMultiDomain=true&sysid=mk&service=https%3A%2F%2Fwww.yonyou.com%2Fmembersso%2Fyhtislogin&ts=" + 848new Date().getTime() + 849"&callback=yhtjsonpcallback"; 850document.head.appendChild(yhtjsonpscript); 851} 852function yonyouLoginDialog() { 853var mkSsoUrl = "https://www.yonyou.com/membersso/yhtislogin"; 854var cas_url = 855"https://euc.yonyoucloud.com/cas/login?integrationType=redirect&sysid=mk&mode=light&styleSysId=yonbip&service=" + 856encodeURIComponent(mkSsoUrl); 857var loginpannel = document.createElement("div"); 858loginpannel.id = "loginpannel"; 859loginpannel.className = "login-pannel"; 860loginpannel.innerHTML = 861"<div class='login-main'><iframe id='mk-yht-login-dialog-iframe' src='" + 862cas_url + 863"'></iframe></div>"; 864document.body.appendChild(loginpannel); 865loginpannel.addEventListener("click", function () { 866loginpannel.parentNode.removeChild(loginpannel); 867}); 868} 869window.yhtjsonpcallback = function (respon) { 870if (respon && respon.needrelogin === false) { 871var cas_url = 872"https://euc.yonyoucloud.com/cas/login?integrationType=redirect&sysid=mk&mode=light&styleSysId=yonbip&service=" + 873encodeURIComponent("https://www.yonyou.com/membersso/yhtislogin"); 874var iframe = document.createElement("iframe"); 875iframe.id = "yonyou-yht-login-iframe"; 876iframe.src = cas_url; 877iframe.frameBorder = 0; 878iframe.width = "0px"; 879iframe.height = "0px"; 880document.body.appendChild(iframe); 881window.setTimeout(function () { 882var iframeToRemove = document.getElementById("yonyou-yht-login-iframe"); 883if (iframeToRemove) { 884iframeToRemove.parentNode.removeChild(iframeToRemove); 885} 886}, 5000); 887} else { 888deleteCookie("yonyou_yht_token"); 889sessionStorage.removeItem("yonyou_user_info"); 890} 891}; 892window.addEventListener("message", function (event) { 893if (event.data.action == "yht_redirect") { 894getMkToken(event.data.url); 895} else if (event.data.type == "MK_YHT_LOGIN_TOKEN") { 896setCookie("yonyou_yht_token", event.data.token, 3); 897getYonyouUserInfo(); 898var loginpannel = document.getElementById("loginpannel"); 899if (loginpannel) { 900loginpannel.parentNode.removeChild(loginpannel); 901} 902} 903}); 904function getMkToken(url) { 905$.ajax({
906url: url, 907type: "GET", 908async: false, 909headers: { 910"Access-Control-Allow-Origin": "*", 911}, 912contentType: "application/json", 913success: function (res) { 914if (res.flag === 0) { 915setCookie("yonyou_yht_token", res.data, 3); 916getYonyouUserInfo(); 917var loginpannel = document.getElementById("loginpannel"); 918if (loginpannel) { 919loginpannel.parentNode.removeChild(loginpannel); 920} 921} 922}, 923}); 924} 925function getYonyouUserInfo() { 926if (sessionStorage.yonyou_user_info) { 927yonyou_user_info = JSON.parse(sessionStorage.yonyou_user_info); 928showUserLoggedIn(yonyou_user_info.name); 929yyUBALogin( 930getYYUniqueId(), 931yonyou_user_info.yhtUserId 932? yonyou_user_info.yhtUserId 933: yonyou_user_info.phone_num, 934yonyou_user_info.name, 935); 936} else if (getCookie("yonyou_yht_token")) { 937var xhr = new XMLHttpRequest(); 938if ("withCredentials" in xhr) { 939} else if (typeof XDomainRequest !== "undefined") { 940var xdr = new XDomainRequest(); 941} 942$.ajax({ 943url: baseMkUrl + "opservice/usercenter/get/userinfo", 944type: "GET", 945async: false, 946headers: { 947"Access-Control-Allow-Origin": "*", 948token: getCookie("yonyou_yht_token"), 949}, 950contentType: "application/json", 951success: function (res) { 952if (res.flag === 0) { 953var _info = res.data; 954showUserLoggedIn(_info.name); 955yonyou_user_info = _info; 956yyUBALogin( 957getYYUniqueId(), 958yonyou_user_info.yhtUserId 959? yonyou_user_info.yhtUserId 960: yonyou_user_info.phone_num, 961yonyou_user_info.name, 962); 963sessionStorage.yonyou_user_info = JSON.stringify(_info); 964} 965}, 966}); 967} else { 968showUserLoggedOut(); 969yyUBALogin(getYYUniqueId(), getYYUniqueId(), "å¿åç¨æ·"); 970yonyouComLogin(); 971} 972} 973function showUserLoggedIn(name) { 974var btnsList = document.querySelectorAll(".header .btns"); 975var oldList = document.querySelectorAll(".header .user-info"); 976for (var j = 0; j < oldList.length; j++) { 977oldList[j].parentNode.removeChild(oldList[j]); 978} 979for (var i = 0; i < btnsList.length; i++) { 980btnsList[i].style.display = "none"; 981var userInfo = document.createElement("div"); 982userInfo.className = "user-info"; 983var userLink = document.createElement("a"); 984userLink.href = "https://cop.yonyou.com/app-portal/"; 985userLink.target = "_blank"; 986userLink.textContent = name; 987userInfo.appendChild(userLink); 988btnsList[i].parentNode.insertBefore(userInfo, btnsList[i].nextSibling); 989} 990} 991function showUserLoggedOut() { 992var btnsList = document.querySelectorAll(".header .btns"); 993for (var i = 0; i < btnsList.length; i++) { 994btnsList[i].style.display = ""; 995} 996var oldList = document.querySelectorAll(".header .user-info"); 997for (var j = 0; j < oldList.length; j++) { 998oldList[j].parentNode.removeChild(oldList[j]); 999} 1000} 1001function yyUBALogin(uc, userid, username) { 1002try { 1003var ubaLoginInterval = window.setInterval(function () { 1004if (typeof uba !== "undefined" && uba.setConfig) { 1005uba && 1006uba.setConfig({ 1007getUser: function () { 1008window.clearInterval(ubaLoginInterval); 1009return { 1010uc, 1011userid, 1012username, 1013}; 1014}, 1015}); 1016} 1017}, 1000); 1018} catch (error) { 1019console.log(error); 1020} 1021} 1022function userClick(flag, id) { 1023if (getCookie("yonyou_yht_token")) { 1024if (flag == 1) { 1025if (id && id.indexOf("http") > -1) { 1026downloadUrl(id, ""); 1027} else { 1028downloadMkDataInfo(id); 1029} 1030} else { 1031id.indexOf("http") > -1 ? window.open(id) : openMkDataInfo(id); 1032} 1033} else { 1034yonyouLoginDialog(); 1035} 1036} 1037function generateYYUniqueId() { 1038const array = new Uint8Array(16); 1039crypto.getRandomValues(array); 1040var uniqueId = ""; 1041for (var i = 0; i < array.length; i++) { 1042uniqueId += array[i].toString(16).padStart(2, "0"); 1043} 1044return uniqueId.substring(0, 20); 1045} 1046function getYYUniqueId() { 1047try { 1048var uniqueId = localStorage.getItem("yyUniqueId"); 1049if (!uniqueId || !/^[0-9a-f]{20}$/.test(uniqueId)) { 1050uniqueId = generateYYUniqueId(); 1051localStorage.setItem("yyUniqueId", uniqueId); 1052} 1053return uniqueId; 1054} catch (error) { 1055if (!window.yyUniqueIdFallback) { 1056window.yyUniqueIdFallback = generateYYUniqueId(); 1057} 1058return window.yyUniqueIdFallback; 1059} 1060} 1061function getMetaContent(name) { 1062const meta = document.querySelector(`meta[name="${name}"]`); 1063return meta ? meta.getAttribute("content") : ""; 1064} 1065var yonyou_subject_industry = getMetaContent("subject-industry"); 1066var yonyou_subject_filed = getMetaContent("subject-filed"); 1067document.addEventListener("DOMContentLoaded", function () { 1068if (window.hasOwnProperty("yychatbot")) { 1069yychatbot.config({ 1070token: 1071"eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0.P6hxUvGS0cLyWGafbyOK2fxPqmn3aXLxxOaFbip4eXTvdhr2Di2ZVQ.mYJNk3yo3ELNP0ZT3Hn7pg.Zd8dOiI-BVJAUkNCAI0snG9kV-up3xHfYBXzXgT1Gg8s9PQ5iBJNqrWT8l1lGLR4uV_NXy93PtFZrj_Tri4yB8rlcZb4MUnfvzQDXyTCrFV-XCiCsI0NxWhp72wX_XkmOFg8aGEKFfErru27h9fqu_f4w18WRKJVIBV78umfSjtBGf0KjlACm9DQ6iT4GunaMz8IClKa2HFMRxuYGVBeeSFEaphxrceE1ZROsMm64mwYgBoeitvUNa9oOZC_tJQa16Ex93efk7a0C4wPNWJR2UK4Dh5lJ7Ot1jXA1x9Mxz2bKHG7RSttHK_Ps4bx-5EvIMfR80Q9rigQ3j0w-jk6Ng.MsICe2-jvsuViVQ4lMGPxg", 1072type: "å®ç½", 1073serviceId: "www-yonyou-com", 1074serviceName: "å®ç½", 1075top: 1076window.location.pathname.indexOf("subject") > -1 || 1077window.location.pathname.indexOf("industry") > -1 1078? "60px" 1079: "80px", 1080chatbot: { 1081id: "7574645071237316623", 1082name: "åå°å©", 1083platform: "kouzi", 1084stream: true, 1085tips: { 1086description: 1087"æ¨å¥½ï¼ææ¯åå°å©ï¼ä¸æ¬¾è½è§£çæ¨ç¨åç¸å ³é®é¢å¹¶æä¾å®ç½å¯¼è§çAIæºè½ä½ãæ¬æå¡å ¨ç¨ç± ç¨åBIPä¼ä¸AI 驱å¨ï¼ä¸æ¯æ¥æç»ä¼åä¸ï¼æ¨å¯ä»¥è¿æ ·åææé®ï¼âææ³æ¾ä¼ä¸AIç¸å ³ç页é¢â ãâç»æææ°çæºè½è´¢å¡ç½ç®ä¹¦åç¸å ³æ´»å¨ä»ç»âæâä»ç»ä¸ç¨åå§ââ¦â¦", 1088commands: [ 1089{ text: "å¦ä½ä½¿ç¨", chatbotId: "7574645071237316623" }, 1090{ text: "æè¦å¨è¯¢", chatbotId: "7574645071237316623" }, 1091{ text: "ä»ç»ç¨å", chatbotId: "7574645071237316623" }, 1092], 1093}, 1094}, 1095user: { 1096id: getYYUniqueId(), 1097yhtId: "", 1098name: "", 1099}, 1100message: { 1101contentId: getYYUniqueId(), 1102hideMessage: "",
1103requiredHideMessage: false, 1104hideMessageError: "", 1105}, 1106}); 1107if (yonyou_subject_filed) { 1108const currentPathname = window.location.pathname; 1109const executedPathsStr = 1110sessionStorage.getItem("yonyou_subject_filed_executed_paths") || "[]"; 1111const executedPaths = JSON.parse(executedPathsStr); 1112if (!executedPaths.includes(currentPathname)) { 1113executedPaths.push(currentPathname); 1114window.setTimeout(() => { 1115yychatbot.config({ 1116chatbot: { 1117id: "7574616698100858922", 1118stream: false, 1119}, 1120}); 1121yychatbot.send(yonyou_subject_filed, "", false); 1122sessionStorage.setItem( 1123"yonyou_subject_filed_executed_paths", 1124JSON.stringify(executedPaths), 1125); 1126window.setTimeout(() => { 1127yychatbot.config({ 1128chatbot: { 1129id: "7574645071237316623", 1130stream: true, 1131}, 1132}); 1133}, 1000); 1134}, 30000); 1135} 1136} 1137} 1138});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.