UNPKG

lixin-web

Version:

vue and bootstrap

1 lines 3.02 kB
var GameData=function(){var c;var e;var a;var b={};var d=function(g,h,i){if(h){b.key=i}var f={};f.url=Route.PATH+Route.WebAjax.PATH+Route.WebAjax.INIT_GAME_LOTTERY;f.data={name:g};f.success=function(j){if(j.error==0){var k=j.data;c=k.info;e=k.method;a=k.config;$.each(b,function(){if($.isFunction(this)){this()}})}};f.cache=true;HttpRequest(f)};return{init:d,getInfo:function(){return c},getMethod:function(){return e},getConfig:function(){return a}}}();var config={"11x5":{name:"11x5",type:"11x5",path:includePath+"/game/lottery/lottery.11x5"+postfix+".js"+stamp},"3d":{name:"3d",type:"3d",path:includePath+"/game/lottery/lottery.3d"+postfix+".js"+stamp},k3:{name:"k3",type:"k3",path:includePath+"/game/lottery/lottery.k3"+postfix+".js"+stamp},kl8:{name:"kl8",type:"kl8",path:includePath+"/game/lottery/lottery.kl8"+postfix+".js"+stamp},pk10:{name:"pk10",type:"pk10",path:includePath+"/game/lottery/lottery.pk10"+postfix+".js"+stamp},ssc:{name:"ssc",type:"ssc",path:includePath+"/game/lottery/lottery.ssc"+postfix+".js"+stamp},xy28:{name:"xy28",type:"xy28",path:includePath+"/game/lottery/lottery.xy28"+postfix+".js"+stamp}};var LotteryMain;(function(){Will.addHashChange(function(){var a=App.getHash("name")?App.getHash("name"):"cqssc";GameData.init(a,"lottery",b);function b(){var c=GameData.getInfo();var j=GameData.getMethod();var d=GameData.getConfig();var h=GameData.getInfo().showName;var e=GameData.getInfo().shortName;var i=GameData.getInfo().type;$(".lottery-nav > .menu > .list > .category > .items a").each(function(){if($(this).attr("href")&&$(this).attr("href").indexOf(e)>=0){$(".lottery-nav .title span:eq(0)").html($(this).text())}});$(".lottery-trend").attr("href","lottery-trend.html?"+App.getHash("name"));LotteryTrend.init(e);LotteryPlan.init(e);var f=App.getHash("type")?App.getHash("type"):"ssc";if(config[f].loaded){g()}else{$.ajax({url:config[f].path,dataType:"script",cache:true,}).done(g)}function g(){config[f].loaded=1;LotteryMain=window["Lottery"+f].LotteryMain;$("body").attr("data-lottery",App.getHash("type"));LotteryMain.init({lottery:c.shortName,lotteryType:c.type,downCode:c.downCode,fenDownCode:c.fenDownCode,liDownCode:c.liDownCode,method:j,sysCode:d.sysCode,sysUnitMoney:d.sysUnitMoney,userCode:AppData.getLotteryAccount().code,userLp:AppData.getLotteryAccount().point});RecordList.init();KaiJiangShiJianVue.lottery=c;LotteryOpenCode.init(c);AppLoop.push({key:"PlayLottery",lottery:c.shortName},function(k){var l=k.PlayLottery;if(l){if(l.openCode){LotteryOpenCode.flush(l.openCode)}if(l.hasNewNotice){LotteryOpenNotice.pull();RecordList.init()}}});!function(){var l=$('<button class="BeiShuKongZhi Jia">+</button>');var k=$('<button class="BeiShuKongZhi Jian">-</button>');$(".multiple").append(l);$(".multiple").prepend(k);l.click(function(){var m=$.Event("keydown");m.keyCode=38;$(this).prev().trigger(m);$(this).prev().trigger("keyup")});k.click(function(){var m=$.Event("keydown");m.keyCode=40;$(this).next().trigger(m);$(this).next().trigger("keyup")})}()}}});WebQQ.init()})();