Browse Source

修改 聊天框长度,暂时打开买卖家中心开关

wangdy 8 years ago
parent
commit
1d05fca414

+ 3 - 3
src/main/webapp/resources/js/common/module/chat_web_module.js

@@ -119,7 +119,7 @@ define([ 'common/query/chat', 'common/query/enterprise' ], function() {
 			var iTop = (window.screen.availHeight - 30 - 600) / 2;
 			//获得窗口的水平位置
 			var iLeft = (window.screen.availWidth - 10 - 1030) / 2;
-			var newTab = window.open('', '即时对话框', 'height=600, width=1030, top=' + iTop + ', left=' + iLeft + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no'),
+			var newTab = window.open('', '即时对话框', 'height=750, width=1030, top=' + iTop + ', left=' + iLeft + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no'),
 				chatInfoDto = {
 				userPhone: vm.param.phone,
 				enUU: vm.param.enUU,
@@ -129,8 +129,8 @@ define([ 'common/query/chat', 'common/query/enterprise' ], function() {
 				otherUserType: userType
 			};
 			ChatBusinessLayer.visitWebChat(chatInfoDto, 'CHAT').then(function (gid) {
-				newTab.location.href = 'http://192.168.253.121:20220/chat/visit?gid=' +  gid;
-				//newTab.location.href = 'http://im.ubtob.com/chat/visit?gid=' + gid;
+				//newTab.location.href = 'http://192.168.253.121:20220/chat/visit?gid=' +  gid;
+				newTab.location.href = 'http://im.ubtob.com/chat/visit?gid=' + gid;
 			}, function (error) {
 				console.log(error);
 				newTab.close();

+ 2 - 2
src/main/webapp/resources/view/vendor/forstore/vendor_order.html

@@ -746,8 +746,8 @@
                         </span>
 						<span style="position: relative;">
                             <img src="static/img/common/songguo.png">
-                            <!--<a name="{{purchase.id}}" href="javascript:void(0)" class="contact_btn" ng-controller="ChatContactCtrl as chat" ng-click="chat.contactWithOther(purchase.buyPhone, purchase.buyerenuu, chat.UserType.ENTERPRISE)">联系买家</a>-->
-							<a name="{{purchase.id}}" href="javascript:void(0)" class="contact_btn" >联系买家</a>
+                            <a name="{{purchase.id}}" href="javascript:void(0)" class="contact_btn" ng-controller="ChatContactCtrl as chat" ng-click="chat.contactWithOther(purchase.buyPhone, purchase.buyerenuu, chat.UserType.ENTERPRISE)">联系买家</a>
+							<!--<a name="{{purchase.id}}" href="javascript:void(0)" class="contact_btn" >联系买家</a>-->
                              <div name="{{purchase.id}}" class="buyer-contact" ng-if="purchase.active" ng-class="{true : 'buyer-contact-info', false : 'display-none'}[purchase.active]">
                                  <div class="contact-title">
                                      <a ng-click="purchase.active=false"><i class="fa fa-close fa-lg" aria-hidden="true"></i></a>