' + '

' + img_title1 + '

' + '' + '' ) $('.left-nav-wrapper .swiper-wrapper').append(swiperDom) }) var myFixSwiper = new Swiper(".leftnav-fix-container", { height: 340, width: 65, speed: 200, loop: false, direction: "vertical", slidesPerView: 4, slidesPerGroup: 4, spaceBetween: 16, autoplay: false, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }) $('.left-nav-wrapper .icon_dafangxiang_up').click(function() { myFixSwiper.slidePrev() }) $('.left-nav-wrapper .icon_dafangxiang_down').click(function() { myFixSwiper.slideNext() }) // 小智入口 var robotFlag = sessionStorage.getItem('robot_alert_time') var liuxueImg = res.data.operate[4][19].img_mess[0].img_url var liuxueLink = res.data.operate[4][19].img_mess[0].img_link var liuxueDom = '' if(robotFlag) { liuxueDom = ( "
" + "" + "
" ) } else { liuxueDom = ( "
" + "
hi,我是高考小智
" + "
有問題,問我吧
" + "" + "
" ) } $('.left-nav-wrapper .bottom-icon').append(liuxueDom) $('.xz-robot-box').click(function() { window.open(liuxueLink) }) $('.left-nav-wrapper .closeimg').click(function() { var now = new Date() var time = now.getTime() time += ((60 * (60 * 24)) * 1000) now.setTime(time) document.cookie = 'fixed_tool_nav=true;expires=' + now.toUTCString() + ';path=/' $('.left-nav-wrapper').hide() }) if(!robotFlag) { sessionStorage.setItem('robot_alert_time', 1) } } } }) } // 右側(cè)報志愿組件 var right_fix_cookie = getCookie('right_bar_bzy') if(!right_fix_cookie) { $.ajax({ type: "GET", // url: 'http://static-gkcx.dev.gaokao.cn/www/2.0/json/coop/9.json', // 測試 url: 'https://static-gkcx.gaokao.cn/www/2.0/json/coop/9.json' + '?a=' + window.location.host, // 正式 crossDomain: true, dataType: 'json', success: function (res) { if(res.code === '0000') { if(res.data[145].default.status) { var bzyImg = res.data[145].default.img_url var bzyDom = ( "
" + "
" + "
" + "" + "
" + "" + "" + "
" + "" + "
" + "
" + "
" ) $('.right-bzy-box').append(bzyDom) $('.right-bar-bzy .icon_close').click(function() { var now = new Date() var time = now.getTime() time += 3600 * 6 * 1000 now.setTime(time) document.cookie = 'right_bar_bzy=true;expires=' + now.toUTCString() + ';path=/' $('.enter-score-box').hide() }) $('.right-bar-bzy .score-enter button').click(function() { var scoreVal = document.getElementById('scoreVal').value if(!scoreVal || scoreVal.length < 3) { alert('請輸入正確的分?jǐn)?shù)') return } window.open('https://mnzy.gaokao.cn?forecastSore=' + scoreVal) }) } } } }) }