实时数据:新增观众、礼物列表
修复直播状态无法判断
This commit is contained in:
@@ -65,6 +65,24 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md-offset2"></div>
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card" style="width: 100%;height: 400px">
|
||||
<div class="layui-card-header">观众列表</div>
|
||||
<div class="layui-card-body">
|
||||
<table id="users" lay-filter="listTools"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md-offset2"></div>
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card" style="width: 100%;height: 400px">
|
||||
<div class="layui-card-header">礼物列表</div>
|
||||
<div class="layui-card-body">
|
||||
<table id="gifts" lay-filter="listTools"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,6 +121,10 @@
|
||||
}
|
||||
|
||||
}
|
||||
/*$.get("/realTimeData/data.do",{roomid:json.data[i].roomid},function (json) {
|
||||
|
||||
})*/
|
||||
|
||||
element.tabChange('upInfo', id);
|
||||
form.render()
|
||||
})
|
||||
@@ -114,7 +136,8 @@
|
||||
if(priceChart!=null){
|
||||
priceChart.destroy()
|
||||
}
|
||||
$.post("/realTimeData/get/query.do", {"roomid": this.getAttribute('lay-id')}, function (json) {
|
||||
let roomid=this.getAttribute('lay-id');
|
||||
$.post("/realTimeData/get/query.do", {"roomid": roomid}, function (json) {
|
||||
console.log(json)
|
||||
if (json.code !== 0) {
|
||||
$('#popular').text(0);
|
||||
@@ -123,6 +146,30 @@
|
||||
layer.close(index);
|
||||
return;
|
||||
}
|
||||
table.render({
|
||||
elem: '#gifts'
|
||||
,height: 312
|
||||
,url: '/realTimeData/data.do?rid='+roomid+'&model=1' //数据接口
|
||||
,page: true //开启分页
|
||||
,cols: [[ //表头
|
||||
{field: 'uid', title: '观众id', width:110, sort: true, fixed: 'left'}
|
||||
,{field: 'msg', title: '内容', width:400, sort: true}
|
||||
,{field: 'size', title: '数量', width:100}
|
||||
,{field: 'money', title: '金瓜子', width: 100}
|
||||
,{field: 'time', title: '时间', width: 200, sort: true}
|
||||
]]
|
||||
});
|
||||
table.render({
|
||||
elem: '#users'
|
||||
,height: 312
|
||||
,url: '/realTimeData/data.do?rid='+roomid+"&model=2" //数据接口
|
||||
,page: true //开启分页
|
||||
,cols: [[ //表头
|
||||
{field: 'uid', title: '观众id', width:110, sort: true, fixed: 'left'}
|
||||
,{field: 'msg', title: '内容', width:400, sort: true}
|
||||
,{field: 'time', title: '时间', width: 200, sort: true}
|
||||
]]
|
||||
});
|
||||
let gifts = json.data.gift;
|
||||
let prices = json.data.price;
|
||||
let priceSize = 0;
|
||||
|
||||
Reference in New Issue
Block a user