1

弹出窗口的文本和图标不会显示在某些安卓设备上。这是一个视频,展示了会发生什么。

这不会发生在桌面或 iOS 上。

这是我的网站头中的代码:

<script>
setTimeout(function(){
  swal({
    title: "How can we help?",
    text: "Do you need to sell your house?",
    type: "info",
    animation: true,
    showCancelButton: true,
    confirmButtonText: "Yes",
    cancelButtonText: "No",
    closeOnConfirm: false,
    closeOnCancel: false },
    function(isConfirm){
      if (isConfirm) {
        swal({
          title: "We can help!",
          text: "We have all the information you need, ready to see it?",
          type: "success",
          confirmButtonText: "Show me!",
          cancelButtonText: "No thanks"
        },
        function(){
          window.location.href = '/sell-your-house/';
        });
      }
      else {
        swal({
          title: "That's okay!",
          text: "We'll be here when you need us!",
          type: "error",
          confirmButtonText: "Back to Browsing",
        });
      }
  });
}, 5000);
</script>

我正在使用动画:“从顶部滑动”并尝试更改为“真实”,但这没有帮助。我还尝试了“假”,只是排除了“动画:”这一行。

我认为在弹出窗口之前阻止滚动可能会有所帮助,但我也不知道该怎么做。而且它也感觉像一个黑客,而不是一个真正的解决方案......

有任何想法吗?

谢谢!戴夫

4

0 回答 0