Showing
1 changed file
with
5 additions
and
1 deletions
@@ -68,6 +68,7 @@ var chat = { | @@ -68,6 +68,7 @@ var chat = { | ||
68 | unFinshMSGs: {}, // 没有发送出去消息 | 68 | unFinshMSGs: {}, // 没有发送出去消息 |
69 | $ratingView: $('#chat-comment'), | 69 | $ratingView: $('#chat-comment'), |
70 | canEvalute: true, | 70 | canEvalute: true, |
71 | + canManualService: true, | ||
71 | 72 | ||
72 | 73 | ||
73 | messageT: require('service/chat/msg.hbs'), | 74 | messageT: require('service/chat/msg.hbs'), |
@@ -168,7 +169,7 @@ var chat = { | @@ -168,7 +169,7 @@ var chat = { | ||
168 | self.orderListView.trigger('show.OderListView', [orderType]); | 169 | self.orderListView.trigger('show.OderListView', [orderType]); |
169 | }) | 170 | }) |
170 | .on('click.chat.switchServer', '[data-action=change-human]', function() { | 171 | .on('click.chat.switchServer', '[data-action=change-human]', function() { |
171 | - self.switchService('human'); | 172 | + self.canManualService && self.switchService('human'); |
172 | }) | 173 | }) |
173 | .on('keydown.chat.sendText', '.text-in', function(event) { | 174 | .on('keydown.chat.sendText', '.text-in', function(event) { |
174 | if (event.which === 13) { | 175 | if (event.which === 13) { |
@@ -478,6 +479,8 @@ var chat = { | @@ -478,6 +479,8 @@ var chat = { | ||
478 | // var uuid = rec.uuid; | 479 | // var uuid = rec.uuid; |
479 | var viewData; | 480 | var viewData; |
480 | 481 | ||
482 | + this.canManualService = true; | ||
483 | + | ||
481 | // 服务状态: 离线 | 484 | // 服务状态: 离线 |
482 | if ( | 485 | if ( |
483 | recType === allTypes.OFFLINE || | 486 | recType === allTypes.OFFLINE || |
@@ -505,6 +508,7 @@ var chat = { | @@ -505,6 +508,7 @@ var chat = { | ||
505 | 508 | ||
506 | case allTypes.CS_CHATTING: | 509 | case allTypes.CS_CHATTING: |
507 | if (chatMessage.type === 5) { // 重复登陆 | 510 | if (chatMessage.type === 5) { // 重复登陆 |
511 | + this.canManualService = false; | ||
508 | this._sysInfo(chatMessage.newContent); | 512 | this._sysInfo(chatMessage.newContent); |
509 | } | 513 | } |
510 | break; | 514 | break; |
-
Please register or login to post a comment