|
@@ -115,6 +115,7 @@
|
|
|
hall_index : 0,
|
|
|
//手动停止播放
|
|
|
setStop : false,
|
|
|
+ source : false,
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -208,18 +209,25 @@
|
|
|
setDisabled : function() {
|
|
|
this.$emit('setDisabled', this.fetch.disabled);
|
|
|
},
|
|
|
- tips : function(id, content) {
|
|
|
+ tips : function(id, content, curtime) {
|
|
|
var id = '#tips_' + this.type_id + '_' + id;
|
|
|
if (this.tipsData[id]) {
|
|
|
this.Dever.layer.close(this.tipsData[id]);
|
|
|
}
|
|
|
+ var self = this;
|
|
|
this.tipsData[id] = this.Dever.layer.tips(content, id, {
|
|
|
tips: [1, '#0FA6D8'],
|
|
|
- tipsMore: true
|
|
|
+ tipsMore: true,
|
|
|
+ end : function() {
|
|
|
+ if (self.source && curtime) {
|
|
|
+ self.source.time[curtime] = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //time : 100000,
|
|
|
});
|
|
|
},
|
|
|
getRefresh : function(cate_id, type, type_id, content) {
|
|
|
- this.tips(type_id, content);
|
|
|
+ this.tips(type_id, content, this.playtime);
|
|
|
if (!this.tipsTimeData[this.playtime]) {
|
|
|
this.tipsTimeData[this.playtime] = [];
|
|
|
}
|
|
@@ -263,11 +271,13 @@
|
|
|
this.play = false;
|
|
|
this.Dever.layer.closeAll();
|
|
|
},
|
|
|
- time : function(time) {
|
|
|
+ time : function(data) {
|
|
|
+ var time = data[1];
|
|
|
+ this.source = data[0];
|
|
|
this.playtime = time;
|
|
|
//console.info(time);
|
|
|
if (this.tipsTimeData[time]) {
|
|
|
- this.handle(this.tipsTimeData[time]);
|
|
|
+ this.handle(this.tipsTimeData[time], time);
|
|
|
}
|
|
|
},
|
|
|
// 获取聊天历史数据
|
|
@@ -286,14 +296,14 @@
|
|
|
this.getData();
|
|
|
},
|
|
|
//执行聊天泡泡
|
|
|
- handle : function(items) {
|
|
|
+ handle : function(items, curtime) {
|
|
|
if (!this.play) {
|
|
|
return;
|
|
|
}
|
|
|
this.cycle && (clearInterval(this.cycle));
|
|
|
var i = 0;
|
|
|
var len = items.length;
|
|
|
- this.tips(items[i]['type_id'], items[i]['content']);
|
|
|
+ this.tips(items[i]['type_id'], items[i]['content'], curtime);
|
|
|
i++;
|
|
|
this.cycle = setInterval(() => {
|
|
|
var time = 5;
|
|
@@ -303,7 +313,7 @@
|
|
|
if (!this.play) {
|
|
|
clearInterval(this.cycle);
|
|
|
} else if (i < len) {
|
|
|
- this.tips(items[i]['type_id'], items[i]['content']);
|
|
|
+ this.tips(items[i]['type_id'], items[i]['content'], curtime);
|
|
|
i++;
|
|
|
} else {
|
|
|
clearInterval(this.cycle);
|