@@ -28,6 +28,7 @@
jsonpCallback: 'jsonpda',
success: function (ret) {
try {
+ if(!ret.extraJson) return
var data = ret.extraJson.list.slice(0, 4)
var locid = ret.locid
var pid = ret.pid
@@ -26,6 +26,7 @@
url:"//da.duowan.com/loc/" + loc,
dataType: 'jsonp',
success: function(ret) {
var data = ret.extraJson.list[0]
var param = {pid:ret.pid,locid:ret.locid}
var zqName = $('.dw-float-da').attr('data-zq')
var param = { pid: ret.pid, locid: ret.locid }
$('.dw-da-live').append(linkTpl(ret));
report.reportData(1, param)
@@ -114,10 +114,10 @@
this.initNiceScroll()
M.getRecommand()
M.getBanner()
- M.getExpect()
M.getGift()
M.sendStatistic($('[data-stat="sidebar-show"]'))
M.getBottomAd()
+ M.getExpect()
},
//加载样式
@@ -251,6 +251,7 @@
var $container = $('.ZQ-sidebar .part-expect')
$.ajax({
url: '//ku.newgame.duowan.com/index.php?type=jsonp&r=api/ajaxsearch&keyword=' + keyword,
+ type: "GET",
var data = ret.data
@@ -313,7 +314,7 @@
//数据请求完毕再显示
preLoad: function () {
loadNum++
- if (loadNum > 2) {
+ if (loadNum > 1) {
$('.ZQ-sidebar').show()
}
@@ -260,7 +260,6 @@
- dataType: 'jsonp',
if (data.game_id) {
@@ -271,6 +270,9 @@
M.preLoad()
+ },
+ error:function(e){
+ console.log(e)
})