This commit is contained in:
zlzw 2024-11-30 17:45:05 +08:00
parent b5c85409cf
commit e089c57c01

View File

@ -249,11 +249,11 @@
var lables = []; var lables = [];
var values = []; var values = [];
json.data.guardInfo.forEach(item => { json.data.guardInfo.forEach(item => {
lables.push(item.gift_name + "\n" + item.total_price + "¥") lables.push(item.gift_name + "\n" + item.total_price + "¥")
values.push(item.total_num) values.push(item.total_num)
}); });
json.data.giftInfo.forEach(item => { json.data.giftInfo.forEach(item => {
lables.push(item.gift_name + "\n" + item.total_price + "¥") lables.push(item.gift_name + "\n" + item.total_price + "¥")
values.push(item.total_gift_num) values.push(item.total_gift_num)
}); });
setChart(lables, values, json) setChart(lables, values, json)
@ -283,7 +283,7 @@
} }
}, },
onClick: (e) => { onClick: (e) => {
var giftName=e.chart.tooltip.title[0] var giftName = e.chart.tooltip.title[0]
console.log(e.chart.tooltip.title) console.log(e.chart.tooltip.title)
layer.open({ layer.open({
@ -297,7 +297,7 @@
// btn: ['确定', '取消'], // btn: ['确定', '取消'],
content: '/html/ui/videoGiftItem.html?roomId=' + roomId + "&videoId=" + videoId + "&giftName=" + giftName, content: '/html/ui/videoGiftItem.html?roomId=' + roomId + "&videoId=" + videoId + "&giftName=" + giftName,
yes: function (index, layero) { yes: function (index, layero) {
} }
}); });
} }
@ -370,7 +370,7 @@
} else { } else {
barrageRenderer.barrageLayoutCalculate.allBarrageInstances.push(...data.data.danmu); barrageRenderer.barrageLayoutCalculate.allBarrageInstances.push(...data.data.danmu);
} }
if (data.data.nextDanmu) { if (data.data.danmu.length === 3000) {
loadDanmu(page + 1) loadDanmu(page + 1)
} }
// barrageRenderer.setBarrages(data.data.danmu); // barrageRenderer.setBarrages(data.data.danmu);