seajs.use(['arale/switchable/1.0.2/carousel','arale/qrcode/1.0.3/qrcode','arale/dialog/1.3.1/dialog'], function(Carousel,Qrcode,Dialog) { var M = { ver : 1, os : 5, channel : "web", domain : "http://ms-api.duowan.com", installList : [], //获取游戏详情 getDetail : function(gameId){ var url = M.domain+"/mobileGame/detail.do"; var data = { channel: M.channel, ver: M.ver, os: M.os, gameId: gameId }; $.ajax({ url: url, dataType: 'jsonp', data: data, success: function(ret){ var detail = ret.data; detail.isInstall = false; if(M.installList){ for(var i=0; i

打开手机扫一扫

', width:200, classPrefix:"pop-qrcode" }); qrcode = new Qrcode({ text: url, width: 160, height: 160 }); pop.show(); $("#qcWrap").html(qrcode); popFlag = true; } else { pop.show(); } }); } } function initData() { var timeout = setTimeout(function(){ if(window.doneFlag) { V.init(); } else { initData(); } },200); } C.init(); initData(); });