diff --git a/frontend/views/common/call-phone.php b/frontend/views/common/call-phone.php index 340f5c1..fd7ae17 100644 --- a/frontend/views/common/call-phone.php +++ b/frontend/views/common/call-phone.php @@ -119,7 +119,7 @@ use \common\libs\MyLib; } } else { // 浏览器不支持 WebSocket - alert("您的浏览器不支持 WebSocket!"); + parent.layer.msg("您的浏览器不支持 WebSocket!"); } } @@ -193,7 +193,7 @@ use \common\libs\MyLib; ws.send(val); console.log("数据已发送"); } else { - alert(obj.msg); + parent.layer.msg(obj.msg); } },'json');