app.88d2e2d73e7b2bf22c26.js 6.0 KB

12
  1. webpackJsonp([3],{ENeJ:function(t,e){},NHnr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("7+uW"),a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var r=n("VU/8")({name:"App"},a,!1,function(t){n("bco8")},null,null).exports,i=n("/ocq");o.default.use(i.a);var c=new i.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"),f=n.n(l),d=(n("gAs1"),{setCache:function(t,e){if(e instanceof Array){var n=f()(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=f()(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,a,r,i,c,u){var s=!0,l=!1;t.forEach(function(o,a){e.id==o.id&&(n.forEach(function(n){e.id==n.id&&(c&&c(n,!1),t.splice(a,1))}),s=!1)}),s&&(i>=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 f={title:a,data:t},d=[];1e4!=r?o[r]=f:o?o.length>0&&o.push(f):d.push(f),u&&u(o,d,l)},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,a=[];e.forEach(function(t){n.push(t.odds)});for(var r=0;r<Math.pow(2,n.length);r++){for(var i=0,c="",u=0;u<n.length;u++)r>>u&1&&(i++,c+=n[u]+",");if(i==o){var s=c.split(",");s.pop(),a.push(s)}}var l=0;return a.forEach(function(t){var e=1;t.forEach(function(t){e*=1+1*t}),l+=1*e-1}),l}});o.default.use(s.a);var p={gameRatio:"",activity:"StMorningPlate",ball_code:"zq",paly_code:"concede",macth_id:"",token:"",playAlias:JSON.parse(d.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},newMacth_id:function(t,e){t.macth_id=e},newToken:function(t,e){t.token=e,d.setItem("token",e)},newPlayAlias:function(t,e){t.playAlias=e,d.setItem("playAlias",e)}},g=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},getMatchId:function(t){return t.macth_id},getToken:function(t){return t.token},getPlayAlias:function(t){return t.playAlias}},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)},MACTH_ID:function(t,e){t.commit("newMacth_id",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)}}}),h=n("r8FW"),y=n.n(h),v=(n("ENeJ"),n("mtWM")),w=n.n(v),A=n("//Fk"),b=n.n(A),_=n("mw3O"),R=n.n(_),E=n("Fd2+");w.a.defaults.baseURL="生产环境",w.a.defaults.timeout=1e4;var P="http://sports.5gogo.com";function I(t){return t=P+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=g.state.token;return e&&(t.headers.Authorization=e),t},function(t){return b.a.error(t)}),w.a.interceptors.response.use(function(t){return 200===t.status?b.a.resolve(t):b.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(E.a)({message:"登录过期,请重新登录",duration:1e3,forbidClick:!0}),localStorage.removeItem("token"),g.commit("loginSuccess",null),setTimeout(function(){u.replace({path:"/login",query:{redirect:u.currentRoute.fullPath}})},1e3);break;case 404:Object(E.a)({message:"网络请求不存在",duration:1500,forbidClick:!0});break;default:Object(E.a)({message:t.response.data.message,duration:1500,forbidClick:!0})}return b.a.reject(t.response)}});var T={get:function(t,e){return new b.a(function(n,o){w.a.get(I(t),{params:e}).then(function(t){n(t)}).catch(function(t){o(t)})})},post:function(t,e){return new b.a(function(n,o){w.a.post(I(t),R.a.stringify(e)).then(function(t){n(t)}).catch(function(t){o(t)})})}};o.default.use(y.a),o.default.config.productionTip=!1,o.default.prototype.$ports={home:{gameList:"/Sports/MatchListWeb/gameList"},match:{},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"}},o.default.prototype.$http=T,o.default.prototype.$public=d,o.default.prototype.$axios=w.a,new o.default({el:"#app",router:u,store:g,components:{App:r},template:"<App/>"})},bco8:function(t,e){}},["NHnr"]);
  2. //# sourceMappingURL=app.88d2e2d73e7b2bf22c26.js.map