<!doctype html><html><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"> <title>阿卡索官方直播间开播啦!</title> <meta name="description" content="阿卡索爆款1对1外教课,大促活动提前安排上|超低好价仅在直播间|还有专业的英语主播|在线互动答疑|承包你的所有英语问题"> <meta name="keywords" content="阿卡索爆款1对1外教课,大促活动提前安排上|超低好价仅在直播间|还有专业的英语主播|在线互动答疑|承包你的所有英语问题"> <!-- 分享配置 --> <meta itemprop="name" content="阿卡索官方直播间开播啦!"> <meta itemprop="image" content="https://img.acadsoc.com.cn/share/share-default.png"> <meta name="description" itemprop="description" content="阿卡索爆款1对1外教课,大促活动提前安排上|超低好价仅在直播间|还有专业的英语主播|在线互动答疑|承包你的所有英语问题"> <!--<link rel="stylesheet" href="https://img.acadsoc.com.cn/css/bootstrap.min.css">--> <link href="https://img.acadsoc.com.cn/js/editor/swiper.min.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://img.acadsoc.com.cn/web/css/header-footer.css"> <link rel="stylesheet" href="https://img.acadsoc.com.cn/web/css/editor.init.css"> <link rel="icon" href="https://www.acadsoc.com.cn/favicon.ico" type="image/x-icon"> <script type="text/javascript" src="https://img.acadsoc.com.cn/web/lps/recommend/js/jquery.min.js"></script> <script type="text/javascript"> var html = document.documentElement; var htmlClientWidth = 0; var rejustRootSize = function () { var oh = 750; html.getBoundingClientRect().width > oh ? htmlClientWidth = oh : htmlClientWidth = html.getBoundingClientRect().width; html.style.fontSize = htmlClientWidth / (oh / 100) + 'px'; }; rejustRootSize(); window.onresize = rejustRootSize; </script> <script src="https://img.acadsoc.com.cn/web/js/bootstrap.min.js"></script> <script src="https://img.acadsoc.com.cn/web/lps/activity/js/lp.js"></script> <!--IpRecord--> <script type="text/javascript" src="https://www.acadsoc.com.cn/ajax/Web.UI.Fun.IpRecord.aspx"></script> <script src="https://img.acadsoc.com.cn/web/js/IdentificationSystem.js"></script> <script src="https://img.acadsoc.com.cn/web/lps/activity/js/Record.js"></script> <!--微信分享--> <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script src="https://img.acadsoc.com.cn/web/lps/activity/js/wxShare.js"></script> <script> wxShare.init(); </script> <!--[if lt IE 9]> <script src="https://img.acadsoc.com.cn/web/js/vendor/html5shiv.js"></script> <script src="https://img.acadsoc.com.cn/web/js/vendor/respond.min.js"></script> <![endif]--> <script> window.HtmlWidth = 0; $(function(){ window.HtmlWidth = document.body.clientWidth || document.documentElement.clientWidth; window.pageEquipment = HtmlWidth > 768 ? 'pc' : 'mobile'; }) function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return ""; } </script> <style> body{ background-color:white; max-width:750px;margin:0 auto; } </style> <!-- customize code header --> <script src="https://img.acadsoc.com.cn/web/SenSors/sensorsheadother.js"></script> <!-- Bytedance Tracking --> <script> (function(r,d,s){r._tt_config=true;var _baq=(r._baq=r._baq||[]);_baq.methods=["track","off","on"]; _baq.factory=function(method){return function(){var args=Array.prototype.slice.call(arguments); args.unshift(method);_baq.push(args);return _baq}};for(var i=0;i<_baq.methods.length;i++){ var key=_baq.methods[i];_baq[key]=_baq.factory(key)}_baq.load=function(){ var js,fjs=d.getElementsByTagName(s)[0];js=d.createElement(s); js.src="https://analytics.oceanengine.com/api/v2/js/sdk";fjs.parentNode.insertBefore(js,fjs)}; _baq.load();if(_baq.invoked){return}_baq.invoked=true;_baq.track("pageview")})(window,document,"script"); </script> <!-- End Bytedance Tracking --> </head> <!-- page: 666 --> <body class="body--mobile"> <!-- js统计 --> <script src="https://img.acadsoc.com.cn/web/js/monitor/apm.web.js"></script> <style> /* auto generate style */ @media (min-width:769px) { } @media (min-width:1px) { .auto-element-fOGtGi-0>.container { min-height:100px;border-radius:0 0 0 0 ;padding:0 0 .8rem 0 ;margin:0 auto 0 auto ;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.regphone8 { border-radius:0 0 0 0 ;top:.3rem;padding:0 0 0 0 ;margin:0 auto 0 auto ;width:6rem;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.img6 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.img5 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;width:100%;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.p4 { color:#fefbf7;font-weight:bold;font-size:.3rem;border-radius:0 0 0 0 ;text-align:center;padding:0 0 0 0 ;margin:0 0 0 0 ;font-style:italic;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm9 { border-radius:0 0 0 0 ;padding:.5rem 0 .5rem 0 ;margin:0 auto 0 auto ;width:90%;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm9>.regbtn3 { color:white;font-size:.32rem;border-radius:60px 60px 60px 60px ;background-color:#c30d23;height:.86rem;text-align:center;padding:0 0 0 0 ;margin:.2rem auto 0 auto ;display:block;width:4.8rem;background-size:100% 100%;background-attachment:scroll;background-repeat:no-repeat;background-imageProps:[object Object];background-position:auto auto;background-image:url(https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2021/12/04/emx5y24k2ygmt89ypehlp8ejdjplw9zm.png);background-clip:border-box;border-style:none none none none;box-shadow: 0px 4px 10px rgba(195,13,35,0.4); }.auto-element-fOGtGi-0>.container>.registerForm9>.regcode2 { margin:.2rem auto 0 auto ;width:6rem;position:relative; }.auto-element-fOGtGi-0>.container>.registerForm9>.regcode2>.code { color:#585b67;font-size:.28rem;border-radius:60px 60px 60px 60px ;background-color:#ffffff;height:.9rem;padding:0 0 0 1rem ;margin:0 0 0 0 ;width:100%;border-width:1px 1px 1px 1px;border-color:#A0A0A0 #A0A0A0 #A0A0A0 #A0A0A0;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm9>.regcode2>.regcodebtn { color:#c30d23;font-size:.28rem;background-color:#ffcda8;border-radius:60px 60px 60px 60px ;top:0;height:95%;padding:0 .3rem 0 .3rem ;margin:0 0 0 0 ;right:0;font-style:italic;position:absolute;border-style:none none none none;box-shadow: 0 .05rem 0 #df6e3e; }.auto-element-fOGtGi-0>.container>.registerForm9>.regphone1 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 auto 0 auto ;width:6rem;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm9>.regphone1>.phone { color:#585b67;font-size:.28rem;border-radius:60px 60px 60px 60px ;background-color:#ffffff;height:.9rem;padding:0 .3rem 0 1rem ;margin:0 0 0 0 ;width:100%;border-width:1px 1px 1px 1px;border-color:#A0A0A0 #A0A0A0 #A0A0A0 #A0A0A0;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm2 { border-radius:0 0 0 0 ;padding:.5rem 0 .3rem 0 ;margin:0 auto 0 auto ;width:90%;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm2>.regbtn3 { color:white;font-size:.32rem;border-radius:60px 60px 60px 60px ;background-color:#c30d23;height:.86rem;text-align:center;padding:0 0 0 0 ;margin:.2rem auto 0 auto ;display:block;width:4.8rem;background-size:100% 100%;background-attachment:scroll;background-repeat:no-repeat;background-imageProps:[object Object];background-position:auto auto;background-image:url(https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2021/12/04/emx5y24k2ygmt89ypehlp8ejdjplw9zm.png);background-clip:border-box;border-style:none none none none;box-shadow: 0px 4px 10px rgba(195,13,35,0.4); }.auto-element-fOGtGi-0>.container>.registerForm2>.regcode2 { margin:.2rem auto 0 auto ;width:6rem;position:relative; }.auto-element-fOGtGi-0>.container>.registerForm2>.regcode2>.code { color:#585b67;font-size:.28rem;border-radius:60px 60px 60px 60px ;background-color:#ffffff;height:.9rem;text-align:left;padding:0 0 0 1rem ;margin:0 0 0 0 ;width:100%;border-width:1px 1px 1px 1px;border-color:#A0A0A0 #A0A0A0 #A0A0A0 #A0A0A0;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm2>.regcode2>.regcodebtn { color:#c30d23;font-size:.28rem;background-color:#ffcda8;border-radius:60px 60px 60px 60px ;top:0;height:95%;padding:0 .3rem 0 .3rem ;margin:0 0 0 0 ;right:0;font-style:italic;position:absolute;border-style:none none none none;box-shadow: 0 .05rem 0 #df6e3e; }.auto-element-fOGtGi-0>.container>.registerForm2>.regphone1 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 auto 0 auto ;width:6rem;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.registerForm2>.regphone1>.phone { color:#585b67;font-size:.28rem;border-radius:60px 60px 60px 60px ;background-color:#ffffff;height:.9rem;text-align:left;padding:0 .3rem 0 1rem ;margin:0 0 0 0 ;width:100%;border-width:1px 1px 1px 1px;border-color:#A0A0A0 #A0A0A0 #A0A0A0 #A0A0A0;border-style:none none none none; }.auto-element-fOGtGi-0>.container>.img1 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;width:100%;border-style:none none none none; }.auto-element-fOGtGi-0 { min-height:100px;background-color:#c30d23;border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;border-style:none none none none; }.auto-element-735-1>.container { z-index:6;border-radius:0 0 0 0 ;background-color:#c30d23;height:100px;text-align:center;padding:0 .4rem 0 .4rem ;margin:0 auto 0 auto ;display:flex;justify-content:center;align-items:center;position:relative;border-style:none none none none; }.auto-element-735-1>.container>.img3 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 .2rem ;width:40%;border-style:none none none none; }.auto-element-735-1>.container>.img2 { border-radius:0 0 0 0 ;height:60%;padding:0 0 0 0 ;margin:0 .2rem 0 0 ;display:block;width:60%;border-style:none none none none; }.auto-element-735-1>.container>.img1 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;display:none;border-style:none none none none; }.auto-element-735-1 { z-index:10;background-color:rgba(0,0,0,0.5);border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;bottom:0;width:100%;border-style:none none none none; }.auto-element-343-cZWwIR-pAbGQA>.div1 { padding:.4rem 0 .4rem 0 ;margin:0 0 0 0 ;background-size:100%;min-height:100px;border-radius:2px 2px 2px 2px ;background-color:white;transform:translate(-50%, -50%);background-repeat:no-repeat;top:50%;left:50%;width:6.5rem;position:absolute;min-width:100px; }.auto-element-343-cZWwIR-pAbGQA>.div1>.p1 { font-weight:bold;font-size:.4rem;border-radius:0 0 0 0 ;text-align:center;padding:0 0 0 0 ;margin:0 0 0 0 ;border-style:none none none none; }.auto-element-343-cZWwIR-pAbGQA>.div1>.regbtn4 { color:white;font-size:.32rem;border-radius:4px 4px 4px 4px ;background-color:#c30d23;height:.9rem;padding:0 0 0 0 ;margin:.2rem auto 0 auto ;display:block;width:90%;border-style:none none none none;box-shadow: 0 0 0 #000; }.auto-element-343-cZWwIR-pAbGQA>.div1>.regphone2 { margin:.2rem auto 0 auto ;top:.3rem;width:6rem; }.auto-element-343-cZWwIR-pAbGQA>.div1>.regphone2>.phone { border:1px solid #A0A0A0;border-radius:4px 4px 4px 4px ;padding:0 .3rem 0 .3rem ;margin:0 0 0 0 ;width:100%;font-size:.28rem;height:.9rem; }.auto-element-343-cZWwIR-pAbGQA>.div1>.regcode3 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:.2rem auto 0 auto ;width:6rem;position:relative; }.auto-element-343-cZWwIR-pAbGQA>.div1>.regcode3>.code { border:1px solid #A0A0A0;border-radius:4px 4px 4px 4px ;padding:0 0 0 .3rem ;margin:0 0 0 0 ;width:100%;font-size:.28rem;height:.9rem; }.auto-element-343-cZWwIR-pAbGQA>.div1>.regcode3>.regcodebtn { background-color:#c30d23;border-radius:4px 4px 4px 4px ;padding:0 .3rem 0 .3rem ;margin:0 0 0 0 ;top:0;color:white;font-size:.28rem;position:absolute;right:0;height:100%; }.auto-element-343-cZWwIR-pAbGQA>.div1>.close5 { border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;top:0.2rem;width:.32rem;position:absolute;right:.2rem; }.auto-element-343-cZWwIR-pAbGQA { background-color:rgba(0,0,0,0.7);border-radius:0 0 0 0 ;padding:0 0 0 0 ;margin:0 0 0 0 ;top:0;left:0;bottom:0;position:fixed;right:0; } } </style> <div class="auto-element-fOGtGi-0 json"> <div class="container"> <img class="img1" src="https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2021/12/04/knan9jgkwjxclbajfm8gewt96d1dkadp.png"> <div class="registerForm2"> <div class="regphone1"> <input type="tel" name="TxtPhone" class="phone" placeholder="请输入手机号"> </div> <div class="regcode2"> <input type="tel" name="TxtCode" class="code" placeholder="请输入验证码"> <button name="btnGetSMS" class="regcodebtn">获取验证码</button> </div> <button name="registerSubmit" class="regbtn3"></button> </div> <p class="p4">仅适合18岁以上人士学习</p> <img class="img5" src="https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2021/12/10/4ktckl3gdjalcp6pdtd9zy2f5mh97yrd.png"> <img class="img6" src="https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2021/12/18/41drtfwax2tgrt6h9fpzy47fap495gag.png"> <div class="regphone8"> </div> <div class="registerForm9"> <div class="regphone1"> <input type="tel" name="TxtPhone" class="phone" placeholder="请输入手机号"> </div> <div class="regcode2"> <input type="tel" name="TxtCode" class="code" placeholder="请输入验证码"> <button name="btnGetSMS" class="regcodebtn">获取验证码</button> </div> <button name="registerSubmit" class="regbtn3"></button> </div> </div> </div> <div class="auto-element-735-1 json"> <div class="container-20220210 container"> <img class="img1" src="https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2022/02/09/524x8p7ylt1dk4dbdlt6245eplyfptc8.png"> <img class="img2" src="https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2022/02/09/3fehnhjymkjx3l1dx2t7h9246rcnwg2l.png"> <img class="img3" src="https://acadsoc-pro-hw.acadsoc.com.cn/landing-page/files/2022/02/10/l4zt3fnly52fbx7ah349lejc3axydf8r.png" data-popup-id="343-cZWwIR"> </div> </div> <div id="register-popup-343-cZWwIR" style="display: none;" class="auto-element-343-cZWwIR-pAbGQA"> <div class="div1"> <p class="p1">外教大礼包<b style="color:#c30d23;">免费领</b></p> <div class="regphone2"> <input name="TxtPhone" class="phone" placeholder="请输入手机号" type="tel"> </div> <div class="regcode3"> <input name="TxtCode" class="code" placeholder="请输入验证码" type="tel"> <button name="btnGetSMS" class="regcodebtn">获取验证码</button> </div> <button name="registerSubmit" class="regbtn4">立即领取</button> <img class="close-popup close5" src="http://acadsoc-development-oss.acadsoc.com.cn/landing-page/files/2021/02/20/j4kwal5p35p9zfw4ntfhwk7d5zndf4mn.png"> </div> </div> <!--滑动验证生成end--> <div class="loading" style="position:fixed;top:50%;left:50%;margin-top:-25px;margin-left:-25px;display:none;z-index:1040;"> <img src="https://img.acadsoc.com.cn/web/img/loading1.gif" style="z-index:1050;position:relative;"> <div class="modal-backdrop in" style="background-color:#fff;opacity: .8;"></div> </div> <script type="text/javascript" src="https://img.acadsoc.com.cn/js/editor/register-editor-customeform.js"></script> <!-- <script type="text/javascript" src="https://img.acadsoc.com.cn/js/gt.js"></script> <script type="text/javascript" src="https://img.acadsoc.com.cn/js/Captcha.js"></script> --> <script charset="UTF-8" type="text/javascript" src="https://cstaticdun.126.net/load.min.js"></script> <!-- 新验证1909 End --> <script type="text/javascript" src="https://www.acadsoc.com.cn/Ajax/Web.UI.Fun.User.aspx"></script> <!-- abtest --> <script src="https://img.acadsoc.com.cn/web/js/abtest.min.js"></script> <script type="text/javascript" src="https://img.acadsoc.com.cn/js/editor/swiper-4.5.3.min.js"></script> <script type="text/javascript" src="https://img.acadsoc.com.cn/js/editor/comm-handle.js"></script> <script> var pageData = { weChatGroupID: '', }; // 支付配置 var defaultPay = { sort: 'order', value: '', } var payConfig = { sort: '', value: '', }; var paytype = 'wechat'; // wechat | alipay var _swiper = window.Swiper; window.Swiper = function (selector, options, realOptions) { var _options = { }; // 如果是pc or mobile if (options.pc && options.mobile) { options = options[pageEquipment]; } // 自动轮播 switch (typeof options.autoplay) { case 'object': if (options.autoplay.delay == '0') { _options.autoplay = false; } break; case 'string': case 'number': if (options.autoplay == '0') { _options.autoplay = false; } else { _options.autoplay = { delay: Number(options.autoplay), stopOnLastSlide: false, disableOnInteraction: false, } } break; } // 处理类型 for (const key in options) { if (Object.hasOwnProperty.call(options, key)) { const element = options[key]; if (!isNaN(Number(options[key])) && typeof element !== 'boolean'){ options[key] = Number(options[key]); } } } // 分页器 if (options.pagination === true) { _options.pagination = { el: `${selector} .swiper-pagination`, clickable: true, } } // 需要覆盖的 if (realOptions && typeof realOptions === 'object' && !Array.isArray(realOptions)) { if (realOptions[pageEquipment] && typeof realOptions[pageEquipment] === 'object') { Object.assign(_options, realOptions[pageEquipment]); } } Object.assign(options, _options); options.loop = !!options.loop; if (options.pagination && options.pagination.el) { if ($(options.pagination.el).length < 1) { $('<div class="swiper-pagination"></div>').appendTo(selector); } } return new _swiper(selector, options); } window.onload = function(){ addFixedEls(); } function addFixedEls(){ // 头部元素 const headerFixedElement = $('body>div').eq(0); $('.fixed__el').each((i,v) => { // 定位元素 const fixedEl = $(v); // 移除元素 const removeFixedElement = fixedEl.prev(); let bTop = removeFixedElement.offset().top - 10 - $(window).height() + removeFixedElement.height(); let rTop = headerFixedElement.offset().top + headerFixedElement.height(); $(window).scroll(function () { let sTop = $(this).scrollTop(); if (sTop > rTop) { fixedEl.fadeIn(300); if (sTop >= bTop) { fixedEl.removeClass('fixed'); } else { fixedEl.addClass('fixed'); } } else { fixedEl.fadeOut(300); } }) }) } /** * 绑定事件 * @param selector {String} 选择器 * @param func {(event, thisElement) => void)} 选择器 * @param type {String} 事件类型 默认click * @return void */ function onEvent(selector, func, type) { if (!type) type = 'click'; $(document).on(type, selector, func); } // currDate const date = new Date(); const curruYear = date.getFullYear(); const currMonth = date.getMonth() + 1; const currDate = date.getDate(); // dynamic data const imgIds = []; const bgImgIds = []; const textIds = []; $(function () { // 替换时间文字 document.querySelectorAll('.time').forEach(function(v) { eachTransTime(v.childNodes); }) function eachTransTime(children = []) { if (!children || children.length === 0) return; children.forEach(v => { if (v.nodeName === '#text') { v.nodeValue = getToday(v.nodeValue); } else { eachTransTime(v.childNodes); } }) } // 复制去微信号 // data-copy-wx 微信 data-wx-alter 复制后提示文案 onEvent('[data-copy-wx]', function(){ copyWx($(this)) }) // .wx text // 复制微信号并跳转微信 data-to-wx 微信 data-wx-alter 复制后提示文案 onEvent('[data-to-wx]', function(){ copyWx($(this)) toHref('weixin://'); }); // 返回弹窗 if (document.querySelector('[id*=back-popup]')) { $('[id*=back-popup]').hide(); onEvent('[id*=back-popup] [class*=close]', function(){ $('[id*=back-popup]').fadeOut(); // 取消返回,需要默认back一次 window.removeEventListener('popstate', holdBack); history.back(); }); // 防止页面后退 监听 history.pushState({ title: 'title', url: '#back' }, 'title', '#back'); window.addEventListener('popstate', holdBack); } // 关闭弹窗 onEvent('.close-popup', function(){ window.payConfig = { sort: '', value: '' }; $(this).parents('[id*=-popup]').fadeOut(); }); // 关闭注册弹窗 onEvent('.register-close', function(){ $(this).parents('[id*=register-popup]').fadeOut(); }); // 事件执行的前后回调 function eventBeforeAfterCall (callFn) { return function () { // 回调 const beforeCall = this.getAttribute('data-model-beforecall'); const afterCall = this.getAttribute('data-model-aftercall'); if ((beforeCall && window[beforeCall](this)) || !beforeCall){ // 打开弹窗 callFn && callFn.call(this); } afterCall && window[afterCall](); } } // 打开弹窗 onEvent('[data-popup-id]', eventBeforeAfterCall(function(){ window.payConfig.sort = this.getAttribute('data-pay-sort'); window.payConfig.value = this.getAttribute('data-pay-value'); // 打开弹窗 openModal(this); })); // 单链接跳转 onEvent('[data-href]', eventBeforeAfterCall(function(){ let href = $(this).attr('data-href'); if (this.getAttribute('data-take-query')) { if (href.includes('?')) { href += location.search.replace('?','&'); } else { href += location.search; } } toHref(href); })); // 分端跳转 onEvent('[data-pm-href]', eventBeforeAfterCall(function(){ var parameter = window.location.search; var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp = sUserAgent.match(/midp/i) == "midp"; var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroid = sUserAgent.match(/android/i) == "android"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; let href = $(this).attr('data-pc-href'); if (bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) { href = $(this).attr('data-mobile-href'); } else if (bIsIpad) { href = $(this).attr('data-ipad-href'); } if (this.getAttribute('data-take-query')) { const search = location.search; if (href.includes('?')) { href += search.replace('?','&'); } else { href += search; } } console.log(href); toHref(href); })); // 跳转表单 onEvent('[data-form]', eventBeforeAfterCall(function(){ $('body,html').stop().animate({ 'scrollTop': 0 }, { duration: 1000, easing: "swing" }); })); // 动态绑定 // $('[data-img-id]').each(function (i, item) { // const id = $(item).attr('data-img-id'); // if (imgIds.indexOf(id) === -1) { // imgIds.push(id); // } // }) // $('[data-text-id]').each(function (i, item) { // const id = $(item).attr('data-text-id'); // if (textIds.indexOf(id) === -1) { // textIds.push(id); // } // }) // $('[data-bg-img-id]').each(function (i, item) { // const id = $(item).attr('data-bg-img-id'); // if (bgImgIds.indexOf(id) === -1) { // bgImgIds.push(id); // } // }) // $.ajax({ // url: 'https://dmpaio.acadsoc.com.cn/api-landingpage/PageResources/selectAllResources', // method: "POST", // dataType: "json", // headers: { 'Content-Type': 'application/json' }, // data: JSON.stringify({ bgImgIds, imgIds, textIds }), // success: function (res) { // const _bgImgIds = res.data.bgImgIds; // const _imgIds = res.data.imgIds; // const _textIds = res.data.textIds; // // 背景图 // _bgImgIds.forEach(function (v) { // const ele = $(`[data-bg-img-id=${v.id}]`); // // 手机banner // if (ele.hasClass('mobile-banner')) { // ele.attr('src', v.url); // } else { // ele.css('background-image', `url(${v.url})`); // } // }); // _imgIds.forEach(function (v) { // const ele = $(`[data-img-id=${v.id}]`); // if(ele[0].nodeName === 'IMG'){ // ele.attr('src', v.url); // }else{ // ele.css('background-image', `url(${v.url})`); // } // }); // _textIds.forEach(function (v) { // const ele = $(`[data-text-id=${v.id}]`); // ele.html(v.name); // }); // } // }) // 设置支付类型 onEvent('[data-paytype]', function(){ window.paytype = this.getAttribute('data-paytype'); }); // 注册 register.init({ successFn: function () { ABRecord && ABRecord.registNotice(); $(".loading").hide(); // customize register code _baq.track("form", { assets_id: "1705250825549902"}) window.registerCallback && window.registerCallback(); return false; }, "successLocation":"","successTxt":"","defaultFnType":"","type":"code" }); }) </script> <!-- 53客服 --> <!-- customize footer code --> <script> $('.toLogin').click(()=>{ $.ajax({ //请求方式 type : "POST", //请求地址 url : "https://userapi.acadsoc.com.cn/api/ChangeOutClass/AddPageBuriedPoint", //数据,json字符串 data : JSON.stringify({PageUrl:'https://www.acadsoc.com.cn/zb/LivewTransfer.htm',UserId:0}), contentType: "application/json; charset=utf-8", //请求成功 success : function(result) { window.location.href = 'https://www.acadsoc.com.cn/zb/LivewTransfer.htm?source=4' }, error : function(e){ alert(e.Msg) } }); }) </script> <style> .container-20220210{max-width: 750px;} </style> <script> window.onload = function () { $(document).scroll(function () { var scroH = $(document).scrollTop(); //滚动高度 var viewH = $(window).height(); //可见高度 var contentH = $(document).height(); //内容高度 if (scroH > 100) { //距离顶部大于100px时 $('.container-20220210').show().css('bottom', '0') } if (contentH - (scroH + viewH) < 80) { //距离底部高度小于100px $('.container-20220210').css('position', 'relative') } if (contentH - (scroH + viewH) > 100) { //距离底部高度小于100px $('.container-20220210').css('position', 'fixed') } if (scroH < 100) { //距离顶部大于100px时 $('.container-20220210').hide() } }) } </script> </body></html>