• 全部赛程
  • DOTA2
  • CSGO
  • Sports

    Roading...

    注册

    Go

    最新版VP电竞APP

    VPGAME微信公众号

    我的任务

    pk10

    '+ '

    ' + el.mission_name +'

    '+ progess + '
    ' + awards +'
    ' + button +''; html += li; }); $('.mission-control-list').html(html); $('.mission-control-app').hover(function(){ var offsetTop = $(this).offset().top - $(window).scrollTop(); $('.mission-control-tooltip').css({top:(offsetTop-15)+'px'}) $('.mission-control-tooltip').show() },function(){ $('.mission-control-tooltip').hide() }) }, error: function(err){ console.warn(err); } }); } function IsPC() { var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; var flag = true; for (var v = 0; v < Agents.length; v++) { if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; } } return flag; } var zhiManager; var zhiManagerTimer; var isChatInit = false; function initService(){ if(typeof getzhiSDKInstance != 'undefined'){ clearInterval(zhiManagerTimer); }else{ return; } //初始化智齿咨询组件实例 zhiManager = (getzhiSDKInstance()); //再调用load方法 zhiManager.on("load", function() { zhiManager.initBtnDOM(); //zhiManager.collapse(); }); zhiManager.set('lan',CONFIG.lang=='zh_CN'?'cn':'en'); zhiManager.set('location',1);//设置入口方位 zhiManager.set('horizontal', 100); //设置水平边距,默认水平为 20 像素 zhiManager.set('vertical', 50); //设置垂直边距,默认垂直为 40 像素 zhiManager.set('customBtn', 'true');//废弃系统默认按钮 zhiManager.set("customMargin",50);//边距 zhiManager.set('moduleType',3);//机器人有限 zhiManager.set('userinfo', CONFIG.user_id > 0 ? { 'uname': CONFIG.user.nickname, 'partnerId': CONFIG.user_id, 'face': CONFIG.image_domain +'/'+ CONFIG.user.avatar } : null );//传用户信息 // zhiManager.set('manual', false); //true[手动初始化] false[自动初始化] | 默认调用后自动初始化 zhiManager.set('manTrace', true); zhiManager.set('powered', false);//不显示智齿冠名 if(IsPC()){ zhiManager.set('autoExpand', true); }else{ zhiManager.set('autoExpand', false); } zhiManager.set('curVisitUrl', location.href); } document.addEventListener('DOMNodeInserted',function(e){ if(window.location.href.indexOf('vp_login_kefu=true') != -1) { $('.zhiCustomBtn').removeClass('hide'); isChatInit = true; return } if(e.target.id == "ZCChatFrame" && isChatInit == false){ $('#ZCChatFrame').addClass('hide height'); $('.zhiCustomBtn').removeClass('hide'); } if(e.target.data == '收起' && isChatInit == false){ zhiManager.collapse(); isChatInit = true; } },false); /** * 检测活动页面是否存在未领取的任务,若存在则在网站下拉菜单中 * 对应的活动菜单添加红点样式 * @param {String|Number} id 活动 id */ function checkActivity (id) { $.ajax({ url: CONFIG.service_api + "/missions/series/notification/" + id, method: "GET", headers: $.extend( { Accept: "application/vnd.vpgame.v2+json", "Content-Type": "application/json" }, getAjaxHeader('', "missions/series/notification/" + id, "v2") ), data: {}, success: function (data) { if (data.data.notification > 0) { $('#active-center, #EPICompendium').addClass('uncheck'); } else { $('#active-center, #EPICompendium').removeClass('uncheck'); } } }) } $(function () { // checkActivity(CONFIG.activity_id); })