| 12 |
- 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 u=r,s=a("NYxO"),l=a("BO1k"),d=a.n(l),f=a("mvHQ"),h=a.n(f),m=(a("gAs1"),{setCache:function(t,e){if(e instanceof Array){var a=h()(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=h()(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,u,s,l,d,f){var h=!0,m=!0,g=!1;t[n].home_team=i.home,t[n].guest_team=i.guest,t[n].playName=c,t[n].name=r,t[n].match_id=u,t[n].ballId=s;var p={title:e,data:[t[n]]};o.length>0?(o.forEach(function(i){i.title==e&&(i.data.forEach(function(t,e){t.id==a&&(i.data.splice(e,1),m=!1)}),m&&(l>=10?g=!0:(2==d&&o.forEach(function(t){if(t.data.length>0)for(var e=0;e<t.data.length;e++)if(t.data[e].match_id==u){t.data.splice(e,1);break}}),i.data.push(t[n]))),h=!1)}),h&&(l>=10?g=!0:(2==d&&o.forEach(function(t){if(t.data.length>0)for(var e=0;e<t.data.length;e++)if(t.data[e].match_id==u){t.data.splice(e,1);break}}),o.push(p)))):o.push(p),f&&f(o,g)},tandemBetting:function(t,e,a,n,o,i,c,r,u,s,l,d){t[n].home_team=i.home,t[n].guest_team=i.guest,t[n].playName=c,t[n].name=r,t[n].match_id=u,t[n].ballId=s;t[n]},publicBetting:function(t,e,a,n,o,i,c,r,u,s,l,d,f,h,m){var g=!0,p=!0,w=!1;t[n].matchData[o].oddsData[i].home_team=s.home,t[n].matchData[o].oddsData[i].guest_team=s.guest,t[n].matchData[o].oddsData[i].playName=l,t[n].matchData[o].oddsData[i].name=d,t[n].matchData[o].oddsData[i].ballId=f;var y={title:e,data:[t[n].matchData[o].oddsData[i]]};c.length>0?(c.forEach(function(c){c.title==e&&(c.data.forEach(function(t,e){t.id==a&&(c.data.splice(e,1),p=!1)}),p&&(h>=10?w=!0:c.data.push(t[n].matchData[o].oddsData[i])),g=!1)}),g&&(h>=10?w=!0:c.push(y))):c.push(y),m&&m(c,w)},strandPublicBetting:function(t,e,a,n,o,i,c,r,u,s,l,d,f,h,m,g){var p=!0,w=!0,y=!1;t[n].matchData[o].oddsData[i].playName=s,t[n].matchData[o].oddsData[i].home_team=f,t[n].matchData[o].oddsData[i].guest_team=h,t[n].matchData[o].oddsData[i].name=l,t[n].matchData[o].oddsData[i].ballId=d;var v={title:e,data:[t[n].matchData[o].oddsData[i]]};c.length>0?(c.forEach(function(r){r.title==e&&(r.data.forEach(function(t,e){t.id==a&&(r.data.splice(e,1),w=!1)}),w&&(m>=10?y=!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==u){t.data.splice(e,1);break}}),r.data.push(t[n].matchData[o].oddsData[i]))),p=!1)}),p&&(m>=10?y=!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==u){t.data.splice(e,1);break}}),c.push(v)))):c.push(v),g&&g(c,y)},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="",u=0;u<a.length;u++)i>>u&1&&(c++,r+=a[u]+",");if(c==n){var s=r.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},oddsDataUpdate:function(t,e,a,n){"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.id==a.id&&(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&&(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.id==e.id&&(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(s.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(m.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?m.getItem("passLimit"):t.passLimit},getPlayAlias:function(t){return""==t.playAlias?JSON.parse(m.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,m.setItem("passBetting",e),t.passLimit=a,m.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,m.setItem("token",e)},newDeleteType:function(t,e){t.deleteType=e},newPassLimit:function(t,e){t.limit=e,m.setItem("passLimit",e)},newPlayAlias:function(t,e){t.playAlias=e,m.setItem("playAlias",e)}},w=new s.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)}}}),y=a("r8FW"),v=a.n(y),E=(a("ENeJ"),a("zL8q")),T=a.n(E),b=(a("tvR6"),a("mtWM")),_=a.n(b),D=a("//Fk"),A=a.n(D),R=a("mw3O"),S=a.n(R),L=a("Fd2+");_.a.defaults.baseURL="生产环境",_.a.defaults.timeout=1e4;var B="http://sports.bocai108.com";function I(t){return t=B+t}_.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",_.a.interceptors.request.use(function(t){var e=w.state.token;return e&&(t.headers.Authorization=e),t},function(t){return A.a.error(t)}),_.a.interceptors.response.use(function(t){return 200===t.status?A.a.resolve(t):A.a.reject(t)},function(t){if(t.response){switch(t.response.status){case 401:u.replace({path:"/login",query:{redirect:u.currentRoute.fullPath}});break;case 403:Object(L.a)({message:"登录过期,请重新登录",duration:1e3,forbidClick:!0}),localStorage.removeItem("token"),w.commit("loginSuccess",null),setTimeout(function(){u.replace({path:"/login",query:{redirect:u.currentRoute.fullPath}})},1e3);break;case 404:Object(L.a)({message:"网络请求不存在",duration:1500,forbidClick:!0});break;default:Object(L.a)({message:t.response.data.message,duration:1500,forbidClick:!0})}return A.a.reject(t.response)}});var P={get:function(t,e){return new A.a(function(a,n){_.a.get(I(t),{params:e}).then(function(t){a(t)}).catch(function(t){n(t)})})},post:function(t,e){return new A.a(function(a,n){_.a.post(I(t),S.a.stringify(e)).then(function(t){a(t)}).catch(function(t){n(t)})})}};n.default.use(v.a),n.default.use(T.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"}},n.default.prototype.$http=P,n.default.prototype.$public=m,n.default.prototype.$axios=_.a,new n.default({el:"#app",router:u,store:w,components:{App:i},template:"<App/>"})},tvR6:function(t,e){},"wm/Q":function(t,e){}},["NHnr"]);
- //# sourceMappingURL=app.417a1cd3397c5f48b8e7.js.map
|