app.81f09fbdf22714aa57d7.js 11 KB

1
  1. webpackJsonp([22],{0:function(t,n,e){e("j1ja"),t.exports=e("NHnr")},"3p2F":function(t,n){},NHnr:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a={};e.d(a,"islogin",function(){return p}),e.d(a,"walletData",function(){return h}),e.d(a,"AgentInfo",function(){return S}),e.d(a,"myGameList",function(){return g}),e.d(a,"MemberData",function(){return T}),e.d(a,"Discountlist",function(){return _}),e.d(a,"PayData",function(){return A}),e.d(a,"ptbRechargeLog",function(){return L}),e.d(a,"CashLog",function(){return C}),e.d(a,"Settlement",function(){return D}),e.d(a,"allgamelist",function(){return b}),e.d(a,"myMemberList",function(){return v}),e.d(a,"insteadPayData",function(){return G});var o={};e.d(o,"getWalletData",function(){return I}),e.d(o,"getAgentInfo",function(){return P}),e.d(o,"getMygamelist",function(){return U}),e.d(o,"getMemberData",function(){return R}),e.d(o,"getDiscountlist",function(){return w}),e.d(o,"getPayData",function(){return F}),e.d(o,"getPtbRechargeLog",function(){return N}),e.d(o,"getCashLog",function(){return O}),e.d(o,"getsettlement",function(){return j}),e.d(o,"getAllgamelist",function(){return W}),e.d(o,"getMyMemberlist",function(){return Y}),e.d(o,"getInsteadPayData",function(){return B});var i=e("7+uW"),r=e("Dd8w"),c=e.n(r),u=e("NYxO"),l=e("mtWM"),s=e.n(l),f={name:"App",computed:c()({},Object(u.c)(["islogin"])),watch:{islogin:function(t){t&&(this.getWalletData(),this.getAllgamelist())}},methods:c()({},Object(u.b)(["getWalletData","getAllgamelist"]),{getUserData:function(){var t=this;s.a.post("/v8/agent/info").then(function(n){0===n.data.error&&(t.$store.state.login=!0,t.$router.push({path:"/"}),t.$store.state.AgentInfo=n.data.data)})}}),created:function(){this.getUserData()}},m={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var d=e("VU/8")(f,m,!1,function(t){e("3p2F")},null,null).exports,E=(e("j1ja"),e("/ocq")),p=function(t){return t.login},h=function(t){return t.WalletData},S=function(t){return t.AgentInfo},g=function(t){return t.myGameList},T=function(t){return t.MemberData},_=function(t){return t.Discountlist},A=function(t){return t.PayData},L=function(t){return t.ptbRechargeLog},C=function(t){return t.CashLog},D=function(t){return t.settlement},b=function(t){return t.allgamelist},v=function(t){return t.myMemberList},G=function(t){return t.insteadPayData},y=e("mw3O"),M=e.n(y),I=function(t){var n,e,a=t.commit;n=function(t){a("GET_WALLETDATA_SUCCESS",t)},e=function(){a("GET_WALLETDATA_FAILED")},s.a.post("/v8/financial/wallet").then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})},P=function(t){var n,e,a=t.commit;n=function(t){a("GET_AGENTINFO_SUCCESS",t)},e=function(){a("GET_AGENTINFO_FAILED")},s.a.post("/v8/agent/info").then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})},U=function(t,n){var e=t.commit,a=n.obj,o=n.cbk;!function(t,n,e){s.a.post("/v8/game/my_list",M.a.stringify(t)).then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})}(a,function(t){e("GET_MYGAMELIST_SUCCESS",t),o&&o(t)},function(){e("GET_MYGAMELIST_FAILED")})},R=function(t,n){var e=t.commit,a=n.obj,o=n.cbk;!function(t,n,e){s.a.post("/v8/sub/list",M.a.stringify(t)).then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})}(a,function(t){e("GET_MEMBER_SUCCESS",t),o&&o(t)},function(){e("GET_MEMBER_FAILED")})},w=function(t,n){var e=t.commit,a=n.obj,o=n.cbk;!function(t,n,e){s.a.post("/v8/discount/list",M.a.stringify(t)).then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})}(a,function(t){e("GET_DISCOUNTLIST_SUCCESS",t),o&&o(t)},function(){e("GET_DISCOUNTLIST_FAILED")})},F=function(t,n){var e=t.commit;!function(t,n,e){s.a.post("/v8/data/member_recharge",M.a.stringify(t)).then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})}(n,function(t){e("GET_PAYDATA_SUCCESS",t)},function(){e("GET_PAYDATA_FAILED")})},N=function(t,n){var e=t.commit,a=n.obj,o=n.cbk;!function(t,n,e){s.a.post("/v8/data/ptb_recharge_log",M.a.stringify(t)).then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})}(a,function(t){e("GET_PTBRECHARGELOG_SUCCESS",t),o&&o(t)},function(){e("GET_PTBRECHARGELOG_FAILED")})},O=function(t,n){var e=t.commit,a=n.obj,o=n.cbk;!function(t,n,e){s.a.post("/v8/financial/cash_log",M.a.stringify(t)).then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})}(a,function(t){e("GET_CASHLOG_SUCCESS",t),o&&o(t)},function(){e("GET_CASHLOG_FAILED")})},j=function(t){var n,e,a=t.commit;n=function(t){a("GET_SETTLEMENT_SUCCESS",t)},e=function(){a("GET_SETTLEMENT_FAILED")},s.a.post("/v8/user/settlement").then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})},W=function(t){var n,e,a=t.commit;n=function(t){a("GET_ALLGAMELIST_SUCCESS",t)},e=function(){a("GET_ALLGAMELIST_FAILED")},s.a.post("/v8/game/all_list").then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})},Y=function(t){var n,e,a=t.commit;n=function(t){a("GET_MYMEMBERLIST_SUCCESS",t)},e=function(){a("GET_MYMEMBERLIST_FAILED")},s.a.post("/v8/pay/get_my_member_list").then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(t),console.info(t)})},B=function(t,n){var e=t.commit,a=n.obj,o=n.cbk;!function(t,n,e){s.a.post("/v8/data/gm_instead_log",M.a.stringify(t)).then(function(t){0===t.data.error?n(t.data):e()}).catch(function(t){e(),console.info(t)})}(a,function(t){e("GET_INSTEADPAYDATA_SUCCESS",t),o&&o(t)},function(){e("GET_INSTEADPAYDATA_FAILED")})},H={GET_WALLETDATA_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"WalletData",e)},GET_AGENTINFO_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"AgentInfo",e)},GET_MYGAMELIST_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"myGameList",k(t.myGameList,e))},GET_MEMBER_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"MemberData",k(t.MemberData,e))},GET_DISCOUNTLIST_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"Discountlist",k(t.Discountlist,e))},GET_PAYDATA_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"PayData",e)},GET_PTBRECHARGELOG_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"ptbRechargeLog",k(t.ptbRechargeLog,e))},GET_CASHLOG_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"CashLog",k(t.CashLog,e))},GET_SETTLEMENT_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"settlement",e)},GET_ALLGAMELIST_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"allgamelist",e)},GET_MYMEMBERLIST_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"myMemberList",e)},GET_INSTEADPAYDATA_SUCCESS:function(t,n){var e=n.data;i.a.set(t,"insteadPayData",k(t.insteadPayData,e))}};function k(t,n){if(t)return t.count=n.count,t.list=t.list.concat(n.list),t;var e={};return e.count=n.count,e.list=n.list,e}i.a.use(u.a);var x=new u.a.Store({state:{login:!1,WalletData:null,AgentInfo:null,myGameList:{count:0,list:[]},MemberData:{count:0,list:[]},Discountlist:{count:0,list:[]},PayData:null,ptbRechargeLog:{count:0,list:[]},CashLog:{count:0,list:[]},settlement:null,allgamelist:null,myMemberList:null,insteadPayData:{count:0,list:[]}},mutations:H,actions:o,getters:a});i.a.use(E.a);var z=new E.a({routes:[{path:"/",name:"home",component:function(){return e.e(4).then(e.bind(null,"wUZA"))}},{path:"/login",name:"login",meta:{notAuth:!0},component:function(){return e.e(8).then(e.bind(null,"K31e"))}},{path:"/cash",name:"cash",component:function(){return Promise.all([e.e(0),e.e(13)]).then(e.bind(null,"TGnp"))}},{path:"/cash/record",name:"/cash/record",component:function(){return Promise.all([e.e(0),e.e(9)]).then(e.bind(null,"LoCt"))}},{path:"/child",name:"child",component:function(){return Promise.all([e.e(0),e.e(1)]).then(e.bind(null,"ocue"))}},{path:"/game",name:"game",component:function(){return Promise.all([e.e(0),e.e(18)]).then(e.bind(null,"BrFJ"))}},{path:"/news",name:"news",component:function(){return Promise.all([e.e(0),e.e(14)]).then(e.bind(null,"vKBe"))}},{path:"/onsale",name:"onsale",component:function(){return Promise.all([e.e(0),e.e(2)]).then(e.bind(null,"zT0X"))}},{path:"/pay",name:"pay",component:function(){return Promise.all([e.e(0),e.e(11)]).then(e.bind(null,"jid7"))}},{path:"/pay/record",name:"/pay/record",component:function(){return Promise.all([e.e(0),e.e(16)]).then(e.bind(null,"N0St"))}},{path:"/security",name:"security",redirect:"/security/menu",component:function(){return Promise.all([e.e(0),e.e(10)]).then(e.bind(null,"eRfF"))},children:[{path:"menu",name:"menu",component:function(){return Promise.all([e.e(0),e.e(12)]).then(e.bind(null,"WhaU"))}},{path:"info",name:"info",component:function(){return Promise.all([e.e(0),e.e(7)]).then(e.bind(null,"4+z5"))}},{path:"resetpwd",name:"resetpwd",component:function(){return Promise.all([e.e(0),e.e(5)]).then(e.bind(null,"fVpK"))}},{path:"paypwd",name:"paypwd",component:function(){return Promise.all([e.e(0),e.e(19)]).then(e.bind(null,"+xL+"))}},{path:"mobile",name:"mobile",component:function(){return Promise.all([e.e(0),e.e(20)]).then(e.bind(null,"LRPZ"))}}]},{path:"/server",name:"server",component:function(){return Promise.all([e.e(0),e.e(3)]).then(e.bind(null,"6NVk"))}},{path:"/steadpay",name:"steadpay",component:function(){return Promise.all([e.e(0),e.e(15)]).then(e.bind(null,"W259"))}},{path:"/steadpay/record",name:"steadpayRecord1",component:function(){return Promise.all([e.e(0),e.e(6)]).then(e.bind(null,"o2SM"))}},{path:"/steadpay/record2",name:"steadpayRecord2",component:function(){return Promise.all([e.e(0),e.e(17)]).then(e.bind(null,"EzlI"))}}]});z.beforeEach(function(t,n,e){t.meta.notAuth?e():x.state.login?e():e({path:"/login",query:{redirect:t.fullPath}})});var $,K,V,q,J,Z=z;console.info("loader success base.js..."),i.a.prototype.routerTo=function(t){this.$router.push({path:t})},i.a.prototype.timetrans=function(t){var n=new Date(1e3*t);return n.getFullYear()+"-"+((n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1)+"-")+((n.getDate()<10?"0"+n.getDate():n.getDate())+" ")+((n.getHours()<10?"0"+n.getHours():n.getHours())+":")+((n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":")+(n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds())},i.a.prototype.ClickInput=function(t){t.target.select()},$=document,K=window,V=$.documentElement,q="orientationchange"in K?"orientationchange":"resize",J=function(){var t=V.clientWidth;void 0!==t&&(V.style.fontSize=t/375*37.5+"px")},void 0!==$.addEventListener&&(K.addEventListener(q,J,!1),$.addEventListener("DOMContentLoaded",J,!1));e("e195");var X=e("1BT9"),Q=e.n(X);i.a.use(Q.a,{defaultType:"bottom",duration:1e3,wordWrap:!0,width:"auto"}),i.a.config.productionTip=!1,new i.a({el:"#app",router:Z,store:x,components:{App:d},template:"<App/>"})},e195:function(t,n){}},[0]);