app.3007858e6636e6c3e058.js 12 KB

12
  1. webpackJsonp([6],{ENeJ:function(t,e){},NHnr:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});a("j1ja");var n=a("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=a("VU/8")({name:"App"},o,!1,function(t){a("wm/Q")},null,null).exports,c=a("/ocq");n.default.use(c.a);var r=new c.a({routes:[{path:"/",name:"home",component:function(t){return Promise.all([a.e(0),a.e(1)]).then(function(){var e=[a("tHxJ")];t.apply(null,e)}.bind(this)).catch(a.oe)}},{path:"/PersonalCenter",name:"PersonalCenter",component:function(t){return Promise.all([a.e(0),a.e(4)]).then(function(){var e=[a("RYJU")];t.apply(null,e)}.bind(this)).catch(a.oe)}},{path:"/ResultMatch",name:"ResultMatch",component:function(t){return Promise.all([a.e(0),a.e(2)]).then(function(){var e=[a("XaWd")];t.apply(null,e)}.bind(this)).catch(a.oe)}},{path:"/RuleMatch",name:"RuleMatch",component:function(t){return Promise.all([a.e(0),a.e(3)]).then(function(){var e=[a("UUCm")];t.apply(null,e)}.bind(this)).catch(a.oe)}}],scrollBehavior:function(t,e,a){return a||{x:0,y:0}}});r.beforeEach(function(t,e,a){"/StRollBallpage"==t.path&&(t.query.isTrue=!0),a()});var s=r,u=a("NYxO"),l=a("BO1k"),d=a.n(l),f=a("mvHQ"),m=a.n(f),h=(a("gAs1"),{setCache:function(t,e){if(e instanceof Array){var a=m()(e);window.sessionStorage.setItem(t,a)}else window.sessionStorage.setItem(t,e)},getCache:function(t){return window.sessionStorage.getItem(t)},setItem:function(t,e){if(e instanceof Array){var a=m()(e);localStorage.setItem(t,a)}else localStorage.setItem(t,e)},getItem:function(t){return localStorage.getItem(t)},timer:function(t,e,a){setInterval(function(){++e<10&&(e="0"+e),60==e&&(t++,e="00"),a&&a(t,e)},1e3)},publicBetMethod:function(t,e,a,n,o,i,c,r,s,u,l,d,f,m){var h=!0,g=!0,p=!1;if(t[a].home_team=o.home,t[a].guest_team=o.guest,t[a].playName=i,t[a].name=c,t[a].match_id=r,t[a].ballId=s,t[a].oddsType=d,"StRollBall"==d){t[a].roll_time=f.match_process+"-"+f.match_ptime;var y=f.match_score.split("-");t[a].home_score=y[0],t[a].guest_score=y[1]}var v=t[a].mark,w={title:e,data:[t[a]]};n.length>0?(n.forEach(function(o){o.title==e&&(o.data.forEach(function(t,e){t.mark==v&&(o.data.splice(e,1),g=!1)}),g&&(u>=10?p=!0:(2==l&&n.forEach(function(t){if(t.data.length>0)for(var e=0;e<t.data.length;e++)if(t.data[e].match_id==r){t.data.splice(e,1);break}}),o.data.push(t[a]))),h=!1)}),h&&(u>=10?p=!0:(2==l&&n.forEach(function(t){if(t.data.length>0)for(var e=0;e<t.data.length;e++)if(t.data[e].match_id==r){t.data.splice(e,1);break}}),n.push(w)))):n.push(w),m&&m(n,p,v)},publicBetting:function(t,e,a,n,o,i,c,r,s,u,l,d,f,m,h){var g=!0,p=!0,y=!1,v=t[n].matchData[o].oddsData[i],w=t[n].matchData[o];v.home_team=u.home,v.guest_team=u.guest,v.playName=l,v.name=d,v.ballId=f,v.match_id=s,v.oddsType=r,"StRollBall"==r&&(v.roll_time=w.match_process+"-"+w.a_time,v.home_score=w.home_score,v.guest_score=w.guest_score);var _=t[n].matchData[o].oddsData[i].mark,E={title:e,data:[t[n].matchData[o].oddsData[i]]};c.length>0?(c.forEach(function(a){a.title==e&&(a.data.forEach(function(t,e){t.mark==_&&(a.data.splice(e,1),p=!1)}),p&&(m>=10?y=!0:a.data.push(t[n].matchData[o].oddsData[i])),g=!1)}),g&&(m>=10?y=!0:c.push(E))):c.push(E),h&&h(c,y,_)},strandPublicBetting:function(t,e,a,n,o,i,c,r,s,u,l,d,f,m,h,g){var p=!0,y=!0,v=!1,w=t[n].matchData[o].oddsData[i];w.playName=u,w.home_team=f,w.guest_team=m,w.name=l,w.ballId=d,w.match_id=s,w.oddsType=r;var _=t[n].matchData[o].oddsData[i].mark,E={title:e,data:[t[n].matchData[o].oddsData[i]]};c.length>0?(c.forEach(function(a){a.title==e&&(a.data.forEach(function(t,e){t.mark==_&&(a.data.splice(e,1),y=!1)}),y&&(h>=10?v=!0:(c.forEach(function(t){if(t.data.length>0)for(var e=0;e<t.data.length;e++)if(t.data[e].match_id==s){t.data.splice(e,1);break}}),a.data.push(t[n].matchData[o].oddsData[i]))),p=!1)}),p&&(h>=10?v=!0:(c.forEach(function(t){if(t.data.length>0)for(var e=0;e<t.data.length;e++)if(t.data[e].match_id==s){t.data.splice(e,1);break}}),c.push(E)))):c.push(E),g&&g(c,v,_)},getBettingId:function(t,e,a){t&&t.forEach(function(t,n){t.title==e&&a&&a(t.data,n)})},ajaxTimerFun:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4,a=setInterval(function(){t&&t(a)},e)},betPlay:function(t,e){var a=0,n=e.length;return a=this.oddsAlgorithm(t,e),function(t){return{title:t+"串1",index:function(t){for(var e=1,a=n;a>n-t;a--)e*=a;return e}(t)/function(t){for(var e=1,a=t;a>1;a--)e*=a;return e}(t),odds:a}}(t)},oddsAlgorithm:function(t,e){var a=[],n=t,o=[];e.forEach(function(t){a.push(t.odds)});for(var i=0;i<Math.pow(2,a.length);i++){for(var c=0,r="",s=0;s<a.length;s++)i>>s&1&&(c++,r+=a[s]+",");if(c==n){var u=r.split(",");u.pop(),o.push(u)}}var l=0;return o.forEach(function(t){var e=1;t.forEach(function(t){e*=1+1*t}),l+=1*e-1}),l},oddsDataUpdate:function(t,e,a,n){e=JSON.parse(e),"1"==a?(t.forEach(function(t){e.forEach(function(a,n){t.lg_id==a.lg_id&&(t.matchData.forEach(function(t){a.matchData.forEach(function(e,n){t.match_id==e.match_id&&(t.oddsData.forEach(function(t){e.oddsData.forEach(function(a){t.mark==a.mark&&(t.odds>a.odds?t.change="rising":t.odds<a.odds?t.change="falling":t.change="",e.oddsData.splice(n,1))})}),a.matchData.splice(n,1))})}),e.splice(n,1))})}),n&&n()):"2"==a&&(console.log(2),t.forEach(function(t){e.forEach(function(a,n){t[0].p_code==a[0].p_code&&(t.forEach(function(t){a.forEach(function(e,n){t.mark==e.mark&&(t.odds>e.odds?t.change="rising":t.odds<e.odds?t.change="falling":t.change="",a.splice(n,1))})}),e.splice(n,1))})}),n&&n())},getGameType:function(t){var e=t,a=!0,n=!1,o=void 0;try{for(var i,c=d()([{value:"lq",label:"篮球"},{value:"wq",label:"网球"},{value:"zq",label:"足球"},{value:"bq",label:"棒球"}]);!(a=(i=c.next()).done);a=!0){var r=i.value;if(r.value===t){e=r.label;break}}}catch(t){n=!0,o=t}finally{try{!a&&c.return&&c.return()}finally{if(n)throw o}}return e}});n.default.use(u.a);var g={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},getControlRouting:function(t){return t.controlRouting},getLoading:function(t){return t.loading},getRgShow:function(t){return t.rgShow},getMatchId:function(t){return t.macth_id},getBetting:function(t){return t.betting},getPassBetting:function(t){return""==t.passBetting?JSON.parse(h.getItem("passBetting")):t.passBetting},getBettingType:function(t){return t.bettingType},getLeagueChoose:function(t){return t.leagueChoose},getLeagueData:function(t){return t.leagueData},getDeleteType:function(t){return t.deleteType},getToken:function(t){return t.token},getLimit:function(t){return t.limit},getPassLimit:function(t){return""==t.passLimit?h.getItem("passLimit"):t.passLimit},getPlayAlias:function(t){return""==t.playAlias?JSON.parse(h.getItem("playAlias")):t.playAlias}},p={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},newControlRouting:function(t,e){t.controlRouting=e},newLoading:function(t,e){t.loading=e},newRgShow:function(t,e){t.rgShow=e},newMacth_id:function(t,e){t.macth_id=e},newBetting:function(t,e){var a=0;e&&e.forEach(function(t){a+=t.data.length}),t.limit=a,t.betting=e},newPassBetting:function(t,e){var a=0;e&&e.forEach(function(t){a+=t.data.length}),t.passBetting=e,h.setItem("passBetting",e),t.passLimit=a,h.setItem("passLimit",a)},newBettingType:function(t,e){t.bettingType=e},newLeagueChoose:function(t,e){t.leagueChoose=e},newLeagueData:function(t,e){t.leagueData=e},newToken:function(t,e){t.token=e,h.setItem("token",e)},newDeleteType:function(t,e){t.deleteType=e},newPassLimit:function(t,e){t.limit=e,h.setItem("passLimit",e)},newPlayAlias:function(t,e){t.playAlias=e,h.setItem("playAlias",e)}},y=new u.a.Store({state:{gameRatio:"",activity:"StMorningPlate",ball_code:"zq",paly_code:"CO",controlRouting:"",loading:"",rgShow:!1,macth_id:"",betting:[],passBetting:"",bettingType:1,leagueChoose:"",leagueData:[],deleteType:"",token:"",limit:0,passLimit:"",playAlias:""},getters:g,mutations:p,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)},SET_CONTROLROUTING:function(t,e){t.commit("newControlRouting",e)},GETLOADING:function(t,e){t.commit("newLoading",e)},GETRGSHOW:function(t,e){t.commit("newRgShow",e)},MACTH_ID:function(t,e){t.commit("newMacth_id",e)},SET_BETTING:function(t,e){t.commit("newBetting",e)},SET_PASSBETTING:function(t,e){t.commit("newPassBetting",e)},SET_BETTINGTYPE:function(t,e){t.commit("newBettingType",e)},SET_LEAGUECHOOSE:function(t,e){t.commit("newLeagueChoose",e)},SET_LEAGUEDATA:function(t,e){t.commit("newLeagueData",e)},DEL_TYPE:function(t,e){t.commit("newDeleteType",e)},SET_TOKEN:function(t,e){t.commit("newToken",e)},SET_PASSLIMIT:function(t,e){t.commit("newPassLimit",e)},GETGAMERATIO:function(t,e){t.commit("newGameRatio",e)},SET_PLAYALIAS:function(t,e){t.commit("newPlayAlias",e)}}}),v=a("r8FW"),w=a.n(v),_=(a("ENeJ"),a("zL8q")),E=a.n(_),T=(a("tvR6"),a("mtWM")),b=a.n(T),R=a("//Fk"),S=a.n(R),A=a("mw3O"),L=a.n(A),B=a("Fd2+");b.a.defaults.baseURL="生产环境",b.a.defaults.timeout=1e4;var D="http://sports.bocai108.com";function P(t){return t=D+t}b.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",b.a.interceptors.request.use(function(t){var e=y.state.token;return e&&(t.headers.Authorization=e),t},function(t){return S.a.error(t)}),b.a.interceptors.response.use(function(t){return 200===t.status?S.a.resolve(t):S.a.reject(t)},function(t){if(t.response){switch(t.response.status){case 401:s.replace({path:"/login",query:{redirect:s.currentRoute.fullPath}});break;case 403:Object(B.a)({message:"登录过期,请重新登录",duration:1e3,forbidClick:!0}),localStorage.removeItem("token"),y.commit("loginSuccess",null),setTimeout(function(){s.replace({path:"/login",query:{redirect:s.currentRoute.fullPath}})},1e3);break;case 404:Object(B.a)({message:"网络请求不存在",duration:1500,forbidClick:!0});break;default:Object(B.a)({message:t.response.data.message,duration:1500,forbidClick:!0})}return S.a.reject(t.response)}});var I={get:function(t,e){return new S.a(function(a,n){b.a.get(P(t),{params:e}).then(function(t){a(t)}).catch(function(t){n(t)})})},post:function(t,e){return new S.a(function(a,n){b.a.post(P(t),L.a.stringify(e)).then(function(t){a(t)}).catch(function(t){n(t)})})}};n.default.use(w.a),n.default.use(E.a),n.default.config.productionTip=!1,n.default.prototype.$ports={home:{gameList:"/Sports/MatchListWeb/gameList",getMatchRule:"/Sports/RuleMatch/getMatchRule",getMatchResult:"/sports/ResultMatch/getMatchResult"},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"},tvlive:{tvlist:"/Sports/MatchListWeb/getBroadcast"},VerOddsScore:"/sports/MatchVer/VerOddsScore"},n.default.prototype.$http=I,n.default.prototype.$public=h,n.default.prototype.$axios=b.a,new n.default({el:"#app",router:s,store:y,components:{App:i},template:"<App/>"})},tvR6:function(t,e){},"wm/Q":function(t,e){}},["NHnr"]);
  2. //# sourceMappingURL=app.3007858e6636e6c3e058.js.map