1

我正在使用 tel:2125552345 格式链接到电话号码,但它似乎没有启动电话应用程序。我需要特定的权限集吗?我在 Trigger.io App Config 屏幕中找不到任何内容。有任何想法吗?

<script id="tpl_office_page" type="text/template">  

        <b>{{officeName}}</b>
        <p>{{addressLine1}}
        <br>{{addressLine2}}</br></p>

        <div class="ui-grid-a">
            <div class="ui-block-a">24x7 Service Desk Toll #</div>
            <div class="ui-block-b"><button type="submit" data-theme="b" data-mini="true" data-inline="true"><a href="tel:{{tollNumber}}">{{tollNumber}}</a></button></div>    
        </div>      

        <div class="ui-grid-a">
            <div class="ui-block-a">24x7 Service Desk Toll-Free #</div>
            <div class="ui-block-b"><button type="submit" data-theme="b" data-mini="true" data-inline="true"><a href="tel:{{tollFreeNumber}}">{{tollFreeNumber}}</a></button></div>    
        </div>

        <div class="ui-grid-a">
            <div class="ui-block-a">24x7 Service Desk Email</div>
            <div class="ui-block-b"><button type="submit" data-theme="b" data-mini="true" data-inline="true"><a href="mailto:{{SDeMail}}">{{SDeMail}}</a></button></div>       
        </div>

        <div class="ui-grid-a">
            <div class="ui-block-a">Local Contact #</div>
            <div class="ui-block-b"><button type="submit" data-theme="b" data-mini="true" data-inline="true"><a href="tel:{{localNumber}}">{{localNumber}}</a></button></div>      
        </div>  

    <ul data-role="listview" data-theme="b" id="office_details">
        <li><a href="">Meeting Room Map</a></li>
        <li>Walk Up Location <br> {{walkUpLocation}} </li>
        <li>Local Escalation Contact <P> {{localEscalationContact}} (<a class="inline" href="tel:{{localEscalationNumber}}">{{localEscalationNumber}}</a>) <P> <a href="mailto:{{localEscalationEmail}}">{{localEscalationEmail}}</a></li>
        <li>ITS Regional Contact <P> {{itsRegionalContact}} <br> <a href="mailto:{{itsEscalationEmail}}">{{itsEscalationEmail}}</a> </li>
        <li><a id="#show_office_map" href="#" data-params="lat={{latitude}}^lng={{longitude}}">Office Location Map</a></li>
    </ul>
</script>

我相信这可能与css格式有关。这是我注意到的

以下作品

<p>This is a test: <a href="tel:+1 502 581 5000">+1 502 581 5000</a>

但这不起作用

<div class="ui-grid-a">
            <div class="ui-block-a">24x7 Service Desk Toll #</div>
            <div class="ui-block-b"><button type="submit" data-theme="b" data-mini="true" data-inline="true"><a href="tel:+1 502 581 5000">+1 502 581 5000</a></button></div>      
        </div>      
4

1 回答 1

4

To link to a phone number simply use html like this:

<a href="tel:123">Phone number</a>

If that's not working for you then what Android version/device you are using would be useful to track down the issue.

于 2012-10-24T16:15:46.897 回答