Sencha touch Sencha Touch:通过Sencha应用程序拨打电话号码

Sencha touch Sencha Touch:通过Sencha应用程序拨打电话号码,sencha-touch,Sencha Touch,我们为我们公司创建了一个电话目录Sencha touch移动应用程序。我们要求通过点击员工详细信息屏幕中的电话号码拨打员工,这将触发拨打电话。为了达到同样的效果,我们使用了以绿色突出显示的代码,该代码在iOS和Andorid Icecream(在三星的旧版本中测试)中有效,但在Jellybean操作系统中失败 有没有人能帮助我们克服这个问题,或者什么是使它在所有设备中都能工作的最佳方法 Ext.Viewport.setActiveItem({ xtype: 'adminstaffdetailvi

我们为我们公司创建了一个电话目录Sencha touch移动应用程序。我们要求通过点击员工详细信息屏幕中的电话号码拨打员工,这将触发拨打电话。为了达到同样的效果,我们使用了以绿色突出显示的代码,该代码在iOS和Andorid Icecream(在三星的旧版本中测试)中有效,但在Jellybean操作系统中失败

有没有人能帮助我们克服这个问题,或者什么是使它在所有设备中都能工作的最佳方法

Ext.Viewport.setActiveItem({ xtype: 'adminstaffdetailview', styleHtmlContent: true, html: adminStaffDetailsTemplate,  
            listeners: {  
                tap: function( tap, element ){  
                    if(tap.delegatedTarget.id == 'rowPhoneTap'){  
                        window.location = "wtai://wp/mc;[" + tap.delegatedTarget.innerText.trim() + "]";  
                    }  
                },  
                element: 'element',  
                delegate: 'tr'  
            }});  
        Ext.Viewport.unmask();  
    }

为什么不使用带有tel协议的链接而不是窗口位置来调用? 您需要将数据设置到您的tpl(电话号码)

Ext.Viewport.setActiveItem({
xtype:'adminstaffdetailview',
styleHtmlContent:对,
tpl:[''],//您的模板adminStaffDetailsTemplate,
});
Ext.Viewport.setActiveItem({
    xtype: 'adminstaffdetailview',
    styleHtmlContent: true,
    tpl: ['<a href="tel:{phone_number}">call</a>'], // your template adminStaffDetailsTemplate,
});