|
|
|
@ -29,15 +29,6 @@ Component({ |
|
|
|
if(this.data.notice){ |
|
|
|
return |
|
|
|
} |
|
|
|
var index = app.globalData.msgIdList.indexOf(message.id) |
|
|
|
if(index >= 0){ |
|
|
|
app.globalData.msgNumber += 1 |
|
|
|
if(app.globalData.msgNumber >= 60){ |
|
|
|
app.globalData.msgIdList.splice(index, 1); |
|
|
|
} |
|
|
|
return |
|
|
|
} |
|
|
|
app.globalData.msgNumber = 0 |
|
|
|
this.setData({ notice: true, message }) |
|
|
|
}, |
|
|
|
submit: function(e){ |
|
|
|
|