app.62318750de72b7f10b75.js 12 KB

12
  1. webpackJsonp([19],{ENeJ:function(t,e){},NHnr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("7+uW"),i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var a=n("VU/8")({name:"App"},i,!1,function(t){n("p/7P")},null,null).exports,l=n("/ocq");o.default.use(l.a);var r=new l.a({routes:[{path:"/",name:"Sthome",component:function(t){return Promise.all([n.e(0),n.e(2)]).then(function(){var e=[n("AWEG")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/AllMatch",name:"AllMatch",component:function(t){return Promise.all([n.e(0),n.e(13)]).then(function(){var e=[n("UHzo")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/StRollBallpage",name:"RollBallpage",component:function(t){return Promise.all([n.e(0),n.e(3)]).then(function(){var e=[n("xrfs")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/StRollBallBettingPage",name:"RollBallBettingPage",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){var e=[n("kNNQ")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/StBallBettingPage",name:"BallBettingPage",component:function(t){return Promise.all([n.e(0),n.e(5)]).then(function(){var e=[n("3x2K")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/StLeagueList",name:"StLeagueList",component:function(t){return Promise.all([n.e(0),n.e(6)]).then(function(){var e=[n("CuhB")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/StLeagueBetting",name:"StLeagueBetting",component:function(t){return Promise.all([n.e(0),n.e(7)]).then(function(){var e=[n("3CiS")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/TennisBall",name:"TennisBall",component:function(t){return Promise.all([n.e(0),n.e(11)]).then(function(){var e=[n("+v7I")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/BaseBall",name:"BaseBall",component:function(t){return Promise.all([n.e(0),n.e(17)]).then(function(){var e=[n("cxIO")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/BasketBall",name:"BasketBall",component:function(t){return Promise.all([n.e(0),n.e(14)]).then(function(){var e=[n("Czjl")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/Login",name:"Login",component:function(t){return n.e(0).then(function(){var e=[n("YZbW")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/Register",name:"./Register",component:function(t){return n.e(0).then(function(){var e=[n("EXqD")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/PersonalCenter",name:"PersonalCenter",component:function(t){return Promise.all([n.e(0),n.e(4)]).then(function(){var e=[n("VIYK")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/BettingRecord",name:"BettingRecord",component:function(t){return Promise.all([n.e(0),n.e(10)]).then(function(){var e=[n("3LKF")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/ProfitAndLossRecord",name:"ProfitAndLossRecord",component:function(t){return Promise.all([n.e(0),n.e(16)]).then(function(){var e=[n("lOtE")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/AccessRecords",name:"PrepaidPhoneRecords",component:function(t){return Promise.all([n.e(0),n.e(12)]).then(function(){var e=[n("1t/7")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/PersonInfo",name:"PersonInfo",component:function(t){return n.e(9).then(function(){var e=[n("tqzN")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/MessageCenter",name:"MessageCenter",component:function(t){return Promise.all([n.e(0),n.e(8)]).then(function(){var e=[n("DHsS")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/MessageDetail/:id",name:"MessageDetail",component:function(t){return n.e(15).then(function(){var e=[n("zpNY")];t.apply(null,e)}.bind(this)).catch(n.oe)}}],scrollBehavior:function(t,e,n){return n||{x:0,y:0}}});r.beforeEach(function(t,e,n){"/StRollBallpage"==t.path&&(t.query.isTrue=!0),n()});var c=r,s=n("NYxO"),u=n("mvHQ"),p=n.n(u),m=(n("gAs1"),{setCache:function(t,e){if(e instanceof Array){var n=p()(e);window.sessionStorage.setItem(t,n)}else window.sessionStorage.setItem(t,e)},getCache:function(t){return window.sessionStorage.getItem(t)},setItem:function(t,e){if(e instanceof Array||e instanceof Object){var n=p()(e);localStorage.setItem(t,n)}else localStorage.setItem(t,e)},getItem:function(t){return localStorage.getItem(t)},timer:function(t,e,n){setInterval(function(){++e<10&&(e="0"+e),60==e&&(t++,e="00"),n&&n(t,e)},1e3)},bettingFunction:function(t,e,n,o,i,a,l,r,c){var s=!0,u=!1;t.forEach(function(o,i){e.mark==o.mark&&(n.forEach(function(n){e.mark==n.mark&&(r&&r(n,!1),t.splice(i,1))}),s=!1)}),s&&(l>=10?u=!0:(t.push(e),t.forEach(function(t){e.mark==t.mark&&n.forEach(function(t){e.mark==t.mark&&r&&r(t,!0)})})));var p={title:i,data:t},m=[];1e4!=a?o[a]=p:o?o.length>0&&o.push(p):m.push(p),c&&c(o,m,u)},getBettingId:function(t,e,n){t&&t.forEach(function(t,o){t.title==e&&n&&n(t.data,o)})},ajaxTimerFun:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,n=setInterval(function(){t&&t(n)},e)},betPlay:function(t,e){var n=0,o=e.length;return n=this.oddsAlgorithm(t,e),function(t){return{title:t+"串1",index:function(t){for(var e=1,n=o;n>o-t;n--)e*=n;return e}(t)/function(t){for(var e=1,n=t;n>1;n--)e*=n;return e}(t),odds:n}}(t)},oddsAlgorithm:function(t,e){var n=[],o=t,i=[];e.forEach(function(t){n.push(t.odds)});for(var a=0;a<Math.pow(2,n.length);a++){for(var l=0,r="",c=0;c<n.length;c++)a>>c&1&&(l++,r+=n[c]+",");if(l==o){var s=r.split(",");s.pop(),i.push(s)}}var u=0;return i.forEach(function(t){var e=1;t.forEach(function(t){e*=1+1*t}),u+=1*e-1}),u}});o.default.use(s.a);var h={gameRatio:"",activity:m.getItem("activity"),ballId:m.getItem("ballId"),show:"",isShow:!1,rgShow:!1,macth_id:m.getItem("macth_id"),betting:JSON.parse(m.getItem("betting")),isBetting:m.getItem("isBetting"),deleteType:"",token:"",limit:m.getItem("limit"),headTitle:JSON.parse(m.getItem("headTitle")),noRoll:!1,playAlias:JSON.parse(m.getItem("playAlias")),homeRollBall:"",limitingCond:{},messageDetail:JSON.parse(m.getItem("messageDetail"))},f={newNoRoll:function(t,e){t.noRoll=e},newGameRatio:function(t,e){t.gameRatio=e},newActivity:function(t,e){t.activity=e,m.setItem("activity",e)},newBallId:function(t,e){t.ballId=e,m.setItem("ballId",e)},newShow:function(t,e){t.show=e},newisShow:function(t,e){t.isShow=e},newRgShow:function(t,e){t.rgShow=e},newMacth_id:function(t,e){t.macth_id=e,m.setItem("macth_id",e)},newBetting:function(t,e){var n=0;e&&e.forEach(function(t){n+=t.data.length}),t.betting=e,m.setItem("betting",e),t.limit=n,m.setItem("limit",n)},newIsBetting:function(t,e){t.isBetting=e,m.setItem("isBetting",e)},newToken:function(t,e){t.token=e,m.setItem("token",e)},newDeleteType:function(t,e){t.deleteType=e},newLimit:function(t,e){t.limit=e,m.setItem("limit",e)},newHeadTitle:function(t,e){t.headTitle=e,m.setItem("headTitle",e)},newPlayAlias:function(t,e){t.playAlias=e,m.setItem("playAlias",e)},newHomeRollBall:function(t,e){t.homeRollBall=e},newLimitingCond:function(t,e){t.limitingCond=e,m.setItem("limitingCond",e)},newMessageDetail:function(t,e){t.messageDetail=e,m.setItem("messageDetail",e)}},g=new s.a.Store({state:h,getters:{getNoRoll:function(t){return t.noRoll},getGameRatio:function(t){return t.gameRatio},getActivity:function(t){return t.activity},getBallId:function(t){return t.ballId},getShow:function(t){return t.show},getIsShow:function(t){return t.isShow},getRgShow:function(t){return t.rgShow},getMatchId:function(t){return t.macth_id},getBetting:function(t){return t.betting},getIsBetting:function(t){return t.isBetting},getDeleteType:function(t){return t.deleteType},getToken:function(t){return t.token},getLimit:function(t){return t.limit},getHeadTitle:function(t){return t.headTitle},getPlayAlias:function(t){return t.playAlias},getHomeRollBall:function(t){return t.homeRollBall},getLimitingCond:function(t){t.limitingCond},getMessageDetail:function(t){return t.messageDetail}},mutations:f,actions:{GETGAMERATIO:function(t,e){t.commit("newGameRatio",e)},GETACTIVITY:function(t,e){t.commit("newActivity",e)},GET_BALL_ID:function(t,e){t.commit("newBallId",e)},GETSHOW:function(t,e){t.commit("newShow",e)},GET_ISSHOW:function(t,e){t.commit("newisShow",e)},GETRGSHOW:function(t,e){t.commit("newRgShow",e)},MACTH_ID:function(t,e){t.commit("newMacth_id",e)},BETTING:function(t,e){t.commit("newBetting",e)},ISBETTING:function(t,e){t.commit("newIsBetting",e)},DEL_TYPE:function(t,e){t.commit("newDeleteType",e)},SET_TOKEN:function(t,e){t.commit("newToken",e)},SET_LIMIT:function(t,e){t.commit("newLimit",e)},SET_HEADTITLE:function(t,e){t.commit("newHeadTitle",e)},SET_NOROLL:function(t,e){t.commit("newNoRoll",e)},SET_PLAYALIAS:function(t,e){t.commit("newPlayAlias",e)},SET_HOMEROLLBALL:function(t,e){t.commit("newHomeRollBall",e)},SET_LIMITINGCOND:function(t,e){t.commit("newLimitingCond",e)},SET_MESSAGEDETAIl:function(t,e){t.commit("newMessageDetail",e)}}}),d=n("r8FW"),w=n.n(d),B=(n("ENeJ"),n("mtWM")),I=n.n(B),S=n("//Fk"),y=n.n(S),v=n("mw3O"),b=n.n(v),R=n("Fd2+");I.a.defaults.baseURL="生产环境",I.a.defaults.timeout=1e4;var T="http://sports.bocai108.com";function A(t){return t=T+t}I.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",I.a.interceptors.request.use(function(t){var e=g.state.token;return e&&(t.headers.Authorization=e),t},function(t){return y.a.error(t)}),I.a.interceptors.response.use(function(t){return 200===t.status?y.a.resolve(t):y.a.reject(t)},function(t){if(console.log(t.response),t.response){switch(t.response.status){case 401:c.replace({path:"/login",query:{redirect:c.currentRoute.fullPath}});break;case 403:Object(R.a)({message:"登录过期,请重新登录",duration:1e3,forbidClick:!0}),localStorage.removeItem("token"),g.commit("loginSuccess",null),setTimeout(function(){c.replace({path:"/login",query:{redirect:c.currentRoute.fullPath}})},1e3);break;case 404:Object(R.a)({message:"网络请求不存在",duration:1500,forbidClick:!0});break;default:Object(R.a)({message:t.response.data.message,duration:1500,forbidClick:!0})}return y.a.reject(t.response)}});var L={get:function(t,e){return new y.a(function(n,o){I.a.get(A(t),{params:e}).then(function(t){n(t)}).catch(function(t){o(t)})})},post:function(t,e){return new y.a(function(n,o){I.a.post(A(t),b.a.stringify(e)).then(function(t){n(t)}).catch(function(t){o(t)})})}};o.default.use(w.a),o.default.config.productionTip=!1,o.default.prototype.$ports={sign:{login:""},home:{navTypeList:"/sports/head/typeList",ballList:"/sports/head/ballList",getRollingBall:"/sports/RollingBall/getRollingBall",trollingBall:"/sports/RollingBall/zqrollingball",highMatch:"/sports/HomeMatch/highMatch",rollingBall:"/sports/RollingBall/lqrollingball",wqrollingBall:"/sports/RollingBall/wqrollingball",bqrollingBall:"/sports/RollingBall/bqrollingball",sports:"/Sports/Sports/data",getSon:"/sports/MatchList/getSoon"},match:{matchData:"/Sports/MatchList/matchData",participate:"/Sports/MatchList/participate",participateDtl:"/Sports/MatchList/participate_details",matchDetails:"/sports/MatchList/matchDetails",ChampionsCup:"/Sports/MatchList/getUEFAChampions",first:"/Sports/MatchList/first",matchState:"/sports/MatchList/matchState"},rollBall:{allqleague:"/sports/AllRollingBall/alllqleague",getGame:"/sports/MatchList/getGame"},gambling:{matchOdds:"/sports/MatchList/matchOdds",updateOdds:"/sports/MatchList/updateOdds",getOddsCode:"/sports/MatchList/getOddsCode"},login:{login:"/api/Account/login",reg:"/api/Account/enroll",getAgent:"/api/Account/getAgent",ProfitAndLossRecord:"/api/UserBuy/moneyRecord",prizeRecord:"/api/UserBuy/prizeRecord",rechargeRecord:"/api/UserBuy/rechargeRecord",bettingRecord:"/api/UserBuy/bettingRecord",resetPassword:"/api/account/resetPassword",ChangePayPassword:"/api/Account/resetPayPassword",loginOut:"/Api/Account/Logout",moneyOutRecord:"/api/userBuy/moneyOutRecord",dataStatistics:"/api/userBuy/index",mesaageList:"/Api/Information/getUserNews",upStatus:"/Api/Information/upStatus",delUserNews:"/Api/Information/delUserNews",updateUserInfo:"/api/account/updateUserInfo"},betOrder:{Bet:"/Api/Betorder/Bet"},VerOddsScore:"/sports/MatchVer/VerOddsScore"},o.default.prototype.$http=L,o.default.prototype.$public=m,o.default.prototype.$axios=I.a,new o.default({el:"#app",router:c,store:g,components:{App:a},template:"<App/>"})},"p/7P":function(t,e){}},["NHnr"]);
  2. //# sourceMappingURL=app.62318750de72b7f10b75.js.map