详情咨询客服400-000-0777',closeShow:!0,btnRightShow:!0},function(){}):window.location.href=inEsapp?esapp_reg:inPassengerapp?link_reg:link_regIndex})},hideLoading:function(e){$(".loading").hide()},modalShow:function(){EsModal.show({okCallback:function(){$(".mask").hide()},cancelCallback:function(){$(".mask").hide()},okText:"我知道了",modalTitle:"提示",modalContent:'您已是企业用户,抱歉无法参与。
详询客服热线400-000-0777',closeShow:!0},function(){})},getToken:function(){var n="",i=this;inEsapp?bridgeApi.ready(function(){bridgeApi.getUserInfo(function(e){"string"==typeof e&&(e=JSON.parse(e)),Number(localStorage.phone)!==Number(e.phone)&&localStorage.clear(),n=e.token,companyId=e.companyId,userPhone=e.phone,i.getConfig(n,e)})}):inPassengerapp&&DDBridge.getUserInfo(function(e,o){n=o.token,companyId=o.companyId,userPhone=o.phone,i.getConfig(n,o)})},getConfig:function(e,o){var i=this;i.token=e,i.userInfo=o||{},console.log("userInfo",o),$.ajax({url:"//es.xiaojukeji.com/gaea/company/promotion/detail",type:"GET",data:{token:e},dataType:"jsonp",xhrFields:{withCredentials:!0},success:function(e){var o=e.data;0===e.status?(i.data=o,i.dataHandle(o)):i.errorHandle(e.msg)},error:function(e,o,n){i.errorHandle()}})},dataHandle:function(e){0===e.in_company?$(".btn").text("立即参加"):0===e.recharge?$(".btn").text("立即充值"):0===e.is_verify&&$(".btn").text("立即认证"),page.hideLoading()},errorHandle:function(e){page.hideLoading(),EsModal.show({okCallback:function(){$(".mask").hide()},okText:"我知道了",cancelCallback:function(){$(".mask").hide()},modalTitle:"提示",modalContent:e||"网络请求出错,请稍后重试",closeShow:!0})}};page.init()