|
|
@@ -154,6 +154,9 @@ define([ 'common/query/chat', 'common/query/enterprise' ], function() {
|
|
|
}
|
|
|
|
|
|
var startChat= function (phone,enUU,userType,iTop,iLeft) {
|
|
|
+ if ($rootScope.newTab){
|
|
|
+ $rootScope.newTab.close();
|
|
|
+ }
|
|
|
var newTab = window.open('', '即时对话框', 'height=750, width=1000, top=' + iTop + ', left=' + iLeft + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no'),
|
|
|
chatInfoDto = {
|
|
|
userPhone: vm.param.phone,
|
|
|
@@ -176,6 +179,7 @@ define([ 'common/query/chat', 'common/query/enterprise' ], function() {
|
|
|
newTab.close();
|
|
|
toaster.pop('warning', '对方没有开通客服系统,请联系官方客服!');
|
|
|
});
|
|
|
+ $rootScope.newTab = newTab;
|
|
|
}
|
|
|
|
|
|
}]);
|