webpackJsonp([3],{"7u9s":function(t,e){},ENeJ:function(t,e){},NHnr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("7+uW"),o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var i=n("VU/8")({name:"App"},o,!1,function(t){n("7u9s")},null,null).exports,r=n("/ocq");a.default.use(r.a);var c=new r.a({routes:[{path:"/",name:"home",component:function(t){return n.e(0).then(function(){var e=[n("tHxJ")];t.apply(null,e)}.bind(this)).catch(n.oe)}},{path:"/PersonalCenter",name:"PersonalCenter",component:function(t){return n.e(1).then(function(){var e=[n("RYJU")];t.apply(null,e)}.bind(this)).catch(n.oe)}}],scrollBehavior:function(t,e,n){return n||{x:0,y:0}}});c.beforeEach(function(t,e,n){"/StRollBallpage"==t.path&&(t.query.isTrue=!0),n()});var u=c,s=n("NYxO"),l=n("mvHQ"),d=n.n(l),f=(n("gAs1"),{setCache:function(t,e){if(e instanceof Array){var n=d()(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){var n=d()(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,a,o,i,r,c,u){var s=!0,l=!1;t.forEach(function(a,o){e.id==a.id&&(n.forEach(function(n){e.id==n.id&&(c&&c(n,!1),t.splice(o,1))}),s=!1)}),s&&(r>=10?l=!0:(t.push(e),t.forEach(function(t){e.id==t.id&&n.forEach(function(t){e.id==t.id&&c&&c(t,!0)})})));var d={title:o,data:t},f=[];1e4!=i?a[i]=d:a?a.length>0&&a.push(d):f.push(d),u&&u(a,f,l)},publicBetMethod:function(t,e,n,a,o,i,r,c,u,s,l){var d=!0,f=!0;t[a].teamName=i,t[a].palyName=r,t[a].name=c,t[a].match_id=u,t[a].ballId=s;var p={title:e,data:[t[a]]};o.length>0?(o.forEach(function(o){o.title==e&&(o.data.forEach(function(t,e){t.id==n&&(o.data.splice(e,1),f=!1)}),f&&o.data.push(t[a]),d=!1)}),d&&o.push(p)):o.push(p),l&&l(o)},publicBetting:function(t,e,n,a,o,i,r,c,u,s,l,d,f,p){var m=!0,h=!0;t[a].matchData[o].oddsData[i].teamName=s,t[a].matchData[o].oddsData[i].playName=l,t[a].matchData[o].oddsData[i].name=d,t[a].matchData[o].oddsData[i].ballId=f;var g={title:e,data:[t[a].matchData[o].oddsData[i]]};r.length>0?(r.forEach(function(s){s.title==e&&(s.data.forEach(function(t,e){t.id==n&&(s.data.splice(e,1),h=!1)}),h&&("StStringScene"==c&&r.forEach(function(t){if(t.data.length>0)for(var e=0;e0)for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:2e3,n=setInterval(function(){t&&t(n)},e)},betPlay:function(t,e){var n=0,a=e.length;return n=this.oddsAlgorithm(t,e),function(t){return{title:t+"串1",index:function(t){for(var e=1,n=a;n>a-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=[],a=t,o=[];e.forEach(function(t){n.push(t.odds)});for(var i=0;i>u&1&&(r++,c+=n[u]+",");if(r==a){var s=c.split(",");s.pop(),o.push(s)}}var l=0;return o.forEach(function(t){var e=1;t.forEach(function(t){e*=1+1*t}),l+=1*e-1}),l}});a.default.use(s.a);var p={gameRatio:"",activity:"StMorningPlate",ball_code:"zq",paly_code:"concede",ever:"",loading:"",macth_id:"",betting:[],bettingType:1,deleteType:"",token:"",limit:0,playAlias:JSON.parse(f.getItem("playAlias"))},m={newGameRatio:function(t,e){t.gameRatio=e},newActivity:function(t,e){t.activity=e},newBallCode:function(t,e){t.ball_code=e},newPaly_code:function(t,e){t.paly_code=e},newLoading:function(t,e){t.loading=e},newMacth_id:function(t,e){t.macth_id=e},newBetting:function(t,e){var n=0;e&&e.forEach(function(t){n+=t.data.length}),t.betting=e,t.limit=n},newBettingType:function(t,e){t.bettingType=e},newToken:function(t,e){t.token=e,f.setItem("token",e)},newDeleteType:function(t,e){t.deleteType=e},newPlayAlias:function(t,e){t.playAlias=e,f.setItem("playAlias",e)},newEver:function(t,e){t.ever=e}},h=new s.a.Store({state:p,getters:{getGameRatio:function(t){return t.gameRatio},getActivity:function(t){return t.activity},getBallCode:function(t){return t.ball_code},getPaly_code:function(t){return t.paly_code},getLoading:function(t){return t.loading},getMatchId:function(t){return t.macth_id},getBetting:function(t){return t.betting},getBettingType:function(t){return t.bettingType},getDeleteType:function(t){return t.deleteType},getToken:function(t){return t.token},getLimit:function(t){return t.limit},getPlayAlias:function(t){return t.playAlias},getEver:function(t){return t.ever}},mutations:m,actions:{SETACTIVITY:function(t,e){t.commit("newActivity",e)},SET_BALL_CODE:function(t,e){t.commit("newBallCode",e)},SET_PALY_CODE:function(t,e){t.commit("newPaly_code",e)},GETLOADING:function(t,e){t.commit("newLoading",e)},MACTH_ID:function(t,e){t.commit("newMacth_id",e)},SET_BETTING:function(t,e){t.commit("newBetting",e)},SET_BETTINGTYPE:function(t,e){t.commit("newBettingType",e)},DEL_TYPE:function(t,e){t.commit("newDeleteType",e)},SET_TOKEN:function(t,e){t.commit("newToken",e)},GETGAMERATIO:function(t,e){t.commit("newGameRatio",e)},SET_PLAYALIAS:function(t,e){t.commit("newPlayAlias",e)},SET_EVER:function(t,e){t.commit("newEver",e)}}}),g=n("r8FW"),y=n.n(g),v=(n("ENeJ"),n("mtWM")),w=n.n(v),E=n("//Fk"),T=n.n(E),A=n("mw3O"),b=n.n(A),_=n("Fd2+");w.a.defaults.baseURL="生产环境",w.a.defaults.timeout=1e4;var S="http://sports.bocai108.com";function B(t){return t=S+t}w.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",w.a.interceptors.request.use(function(t){var e=h.state.token;return e&&(t.headers.Authorization=e),t},function(t){return T.a.error(t)}),w.a.interceptors.response.use(function(t){return 200===t.status?T.a.resolve(t):T.a.reject(t)},function(t){if(console.log(t.response),t.response){switch(t.response.status){case 401:u.replace({path:"/login",query:{redirect:u.currentRoute.fullPath}});break;case 403:Object(_.a)({message:"登录过期,请重新登录",duration:1e3,forbidClick:!0}),localStorage.removeItem("token"),h.commit("loginSuccess",null),setTimeout(function(){u.replace({path:"/login",query:{redirect:u.currentRoute.fullPath}})},1e3);break;case 404:Object(_.a)({message:"网络请求不存在",duration:1500,forbidClick:!0});break;default:Object(_.a)({message:t.response.data.message,duration:1500,forbidClick:!0})}return T.a.reject(t.response)}});var I={get:function(t,e){return new T.a(function(n,a){w.a.get(B(t),{params:e}).then(function(t){n(t)}).catch(function(t){a(t)})})},post:function(t,e){return new T.a(function(n,a){w.a.post(B(t),b.a.stringify(e)).then(function(t){n(t)}).catch(function(t){a(t)})})}};a.default.use(y.a),a.default.config.productionTip=!1,a.default.prototype.$ports={home:{gameList:"/Sports/MatchListWeb/gameList"},match:{matchData:"/Sports/MatchList/matchData",matchState:"/sports/MatchList/matchState"},rollBall:{},gambling:{matchOdds:"/sports/MatchList/matchOdds",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",withdrawalsRecord:"/api/userBuy/moneyOutRecord"},betOrder:{Bet:"/Api/Betorder/Bet"}},a.default.prototype.$http=I,a.default.prototype.$public=f,a.default.prototype.$axios=w.a,new a.default({el:"#app",router:u,store:h,components:{App:i},template:""})}},["NHnr"]); //# sourceMappingURL=app.f36d5b3000fc924e055f.js.map