|
@@ -64,6 +64,7 @@ var chat = { |
|
@@ -64,6 +64,7 @@ var chat = { |
64
|
|
64
|
|
65
|
unFinshMSGs: {}, // 没有发送出去消息
|
65
|
unFinshMSGs: {}, // 没有发送出去消息
|
66
|
$ratingView: $('#chat-comment'),
|
66
|
$ratingView: $('#chat-comment'),
|
|
|
67
|
+ canEvalute: true,
|
67
|
|
68
|
|
68
|
|
69
|
|
69
|
messageT: require('service/chat/msg.hbs'),
|
70
|
messageT: require('service/chat/msg.hbs'),
|
|
@@ -153,7 +154,7 @@ var chat = { |
|
@@ -153,7 +154,7 @@ var chat = { |
153
|
|
154
|
|
154
|
this.$chat
|
155
|
this.$chat
|
155
|
.on('click.Rating.toggle', '[data-trigger=rating]', function() {
|
156
|
.on('click.Rating.toggle', '[data-trigger=rating]', function() {
|
156
|
- self.ratingView.toggle();
|
157
|
+ self.canEvalute && self.ratingView.toggle();
|
157
|
})
|
158
|
})
|
158
|
.on('click.leaveMSG', '[data-trigger=leave-msg]', function() {
|
159
|
.on('click.leaveMSG', '[data-trigger=leave-msg]', function() {
|
159
|
self.leaveMSGView.trigger('show.LeaveMSGView');
|
160
|
self.leaveMSGView.trigger('show.LeaveMSGView');
|
|
@@ -209,6 +210,9 @@ var chat = { |
|
@@ -209,6 +210,9 @@ var chat = { |
209
|
});
|
210
|
});
|
210
|
}).on('rating-success', function(e, data) {
|
211
|
}).on('rating-success', function(e, data) {
|
211
|
self._sysInfo(`您对我们的服务评价为:${data}`);
|
212
|
self._sysInfo(`您对我们的服务评价为:${data}`);
|
|
|
213
|
+ self.canEvalute = false;
|
|
|
214
|
+ cmEntity.type = socketConf.recType.EVALUTE_SUCCESS;
|
|
|
215
|
+ socket.send(cmEntity);
|
212
|
resizeFooter();
|
216
|
resizeFooter();
|
213
|
});
|
217
|
});
|
214
|
|
218
|
|
|
@@ -230,6 +234,7 @@ var chat = { |
|
@@ -230,6 +234,7 @@ var chat = { |
230
|
connect() {
|
234
|
connect() {
|
231
|
cmEntity.type = 1;
|
235
|
cmEntity.type = 1;
|
232
|
this.bootSocket();
|
236
|
this.bootSocket();
|
|
|
237
|
+ this.canEvalute = true;
|
233
|
|
238
|
|
234
|
this.switchService('rebot');
|
239
|
this.switchService('rebot');
|
235
|
},
|
240
|
},
|