|
|
@@ -139,29 +139,20 @@ define([ 'common/query/chat', 'common/query/enterprise' ], function() {
|
|
|
// //获得窗口的水平位置
|
|
|
// var iLeft = (window.screen.availWidth - 10 - 1030) / 2;
|
|
|
// if (!/^1\d{10}$/.test(phone)){
|
|
|
- // if (!phone){
|
|
|
- // ChatBusinessLayer.getAdminInfo(enUU).then(function (tel) {
|
|
|
- // phone = tel;
|
|
|
- // /*if (!/^1\d{10}$/.test(phone)){
|
|
|
- // toaster.pop('warning', '该店铺暂无管理员电话号码!');
|
|
|
- // return;
|
|
|
- // }*/
|
|
|
- // openChatBox(phone);
|
|
|
- // // startChat(phone,enUU,userType,iTop,iLeft);
|
|
|
- // });
|
|
|
- // }else {
|
|
|
- // openChatBox(phone);
|
|
|
- // // startChat(phone,enUU,userType,iTop,iLeft);
|
|
|
- // }
|
|
|
- ChatBusinessLayer.getAdminInfo(enUU).then(function (tel) {
|
|
|
- phone = tel;
|
|
|
- /*if (!/^1\d{10}$/.test(phone)){
|
|
|
- toaster.pop('warning', '该店铺暂无管理员电话号码!');
|
|
|
- return;
|
|
|
- }*/
|
|
|
+ if (!phone){
|
|
|
+ ChatBusinessLayer.getAdminInfo(enUU).then(function (tel) {
|
|
|
+ phone = tel;
|
|
|
+ /*if (!/^1\d{10}$/.test(phone)){
|
|
|
+ toaster.pop('warning', '该店铺暂无管理员电话号码!');
|
|
|
+ return;
|
|
|
+ }*/
|
|
|
+ openChatBox(phone);
|
|
|
+ // startChat(phone,enUU,userType,iTop,iLeft);
|
|
|
+ });
|
|
|
+ }else {
|
|
|
openChatBox(phone);
|
|
|
- // startChat(phone,enUU,userType,iTop,iLeft);
|
|
|
- });
|
|
|
+ // startChat(phone,enUU,userType,iTop,iLeft);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$scope.showLinkBox = false;
|