...
|
...
|
@@ -64,6 +64,7 @@ var chat = { |
|
|
|
|
|
unFinshMSGs: {}, // 没有发送出去消息
|
|
|
$ratingView: $('#chat-comment'),
|
|
|
canEvalute: true,
|
|
|
|
|
|
|
|
|
messageT: require('service/chat/msg.hbs'),
|
...
|
...
|
@@ -153,7 +154,7 @@ var chat = { |
|
|
|
|
|
this.$chat
|
|
|
.on('click.Rating.toggle', '[data-trigger=rating]', function() {
|
|
|
self.ratingView.toggle();
|
|
|
self.canEvalute && self.ratingView.toggle();
|
|
|
})
|
|
|
.on('click.leaveMSG', '[data-trigger=leave-msg]', function() {
|
|
|
self.leaveMSGView.trigger('show.LeaveMSGView');
|
...
|
...
|
@@ -209,6 +210,9 @@ var chat = { |
|
|
});
|
|
|
}).on('rating-success', function(e, data) {
|
|
|
self._sysInfo(`您对我们的服务评价为:${data}`);
|
|
|
self.canEvalute = false;
|
|
|
cmEntity.type = socketConf.recType.EVALUTE_SUCCESS;
|
|
|
socket.send(cmEntity);
|
|
|
resizeFooter();
|
|
|
});
|
|
|
|
...
|
...
|
@@ -230,6 +234,7 @@ var chat = { |
|
|
connect() {
|
|
|
cmEntity.type = 1;
|
|
|
this.bootSocket();
|
|
|
this.canEvalute = true;
|
|
|
|
|
|
this.switchService('rebot');
|
|
|
},
|
...
|
...
|
|