简体   繁体   English

iPhone电话链接不起作用-Sencha框架

[英]iPhone tel link not working - Sencha Framework

I am adding a call button to a mobile site 我要在移动网站上添加通话按钮

<div class = "button page1"
    <div class = "phone-button">
        <a href = "tel:8885555555">
            <span class = "button">
                <span class = "phone-img"></span>
                <span class = "button-text">Call</span>
            </span>
        </a>
    </div>
</div>

Other than some minor css differences, the call button div's are the same throughout the site. 除了一些小的CSS差异外,整个网站上的呼叫按钮div相同。 The button works fine on one page, but for all other instances, when the call button is clicked the number pops up for just a second and then disappears bringing up the html in the 'cancel/call' pop-up instead of the phone number. 该按钮在一页上可以正常工作,但对于所有其他情况,单击呼叫按钮时,该数字仅会弹出一秒钟,然后消失,并在“取消/呼叫”弹出窗口中弹出html而不是电话号码。 The button works properly on other phones, so does anyone know why it's not working in mobile safari? 该按钮可在其他手机上正常工作,所以有人知道为什么它不能在移动Safari中使用吗?

UPDATE: the site uses Sencha Touch framework, and I found some old forum posts about a bug there ( http://www.sencha.com/forum/showthread.php?153341-tel-link-does-not-work-on-iOS-with-ST-2.x !), but I can't find anything recent. 更新:该站点使用Sencha Touch框架,我在那里找到了一些有关错误的老论坛帖子( http://www.sencha.com/forum/showthread.php?153341-tel-link-does-not-work-on -iOS-with-ST-2.x !),但最近找不到任何内容。

解决方案:Sencha的框架中存在一个错误,因此我最终删除了Sencha的电话号码路由功能,并且上面的代码运行良好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM