起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: 18333151861

[处理中1] 拨打电话怎么实现?

[复制链接]

47

主题

130

帖子

331

积分

中级会员

Rank: 3Rank: 3

积分
331
发表于 2016-10-25 10:58:59 | 显示全部楼层
18333151861 发表于 2016-10-25 10:15
我就是想做个手机联系人的功能,点击联系人后,跳转到详情页面,然后在详情页,点击号码,可以拨打号码? ...

你的联系人页面是怎么做的,可以看看你的代码吗.谢谢!!
回复 支持 反对

使用道具 举报

30

主题

145

帖子

248

积分

中级会员

Rank: 3Rank: 3

积分
248
QQ
 楼主| 发表于 2016-10-25 11:49:22 | 显示全部楼层
wex5.. 发表于 2016-10-25 10:58
你的联系人页面是怎么做的,可以看看你的代码吗.谢谢!!
  1. <?xml version="1.0" encoding="utf-8"?>

  2. <div xmlns="http://www.w3.org/1999/xhtml" class="window" component="$UI/system/components/justep/window/window"
  3.   design="device:m;">  
  4.   <div component="$UI/system/components/justep/model/model" xid="model" onLoad="modelDataLoad">
  5.     <div component="$UI/system/components/justep/data/data" autoLoad="true"
  6.       xid="contactsData" idColumn="id" confirmDelete="false">
  7.       <column label="ID" name="id" type="String" xid="xid1"/>  
  8.       <column label="首字母" name="caplower" type="String" xid="xid2"/>  
  9.       <column label="姓名" name="name" type="String" xid="xid3"/>  
  10.       <rule xid="rule1">
  11.         <col name="countname" xid="ruleCol1">
  12.           <calculate xid="calculate1">
  13.             <expr xid="default1">js: $model.comp('contactsata').sum('id') + '人'</expr>
  14.           </calculate>
  15.         </col>
  16.       </rule>
  17.     </div>  
  18.     <div component="$UI/system/components/justep/data/data" autoLoad="true"
  19.       xid="caplowerData" idColumn="fPinyin" confirmDelete="false">
  20.       <column label="拼音" name="fPinyin" type="String" xid="xid5"/>  
  21.       <data xid="default2">[{"fPinyin":"A"},{"fPinyin":"B"},{"fPinyin":"C"},{"fPinyin":"D"},{"fPinyin":"E"},{"fPinyin":"F"},{"fPinyin":"G"},{"fPinyin":"H"},{"fPinyin":"I"},{"fPinyin":"J"},{"fPinyin":"K"},{"fPinyin":"L"},{"fPinyin":"M"},{"fPinyin":"N"},{"fPinyin":"O"},{"fPinyin":"P"},{"fPinyin":"Q"},{"fPinyin":"R"},{"fPinyin":"S"},{"fPinyin":"T"},{"fPinyin":"U"},{"fPinyin":"V"},{"fPinyin":"W"},{"fPinyin":"X"},{"fPinyin":"Y"},{"fPinyin":"Z"}]</data>
  22.     </div>
  23.   </div>  
  24.   <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
  25.     xid="panel1">
  26.     <div class="x-panel-top" xid="top1">
  27.       <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar"
  28.         title="移动办公系统" xid="titleBar1">
  29.         <div class="x-titlebar-left" xid="left1">
  30.           <a component="$UI/system/components/justep/button/button" class="btn btn-link"
  31.             label="刘洋" xid="button1" icon="icon-person">
  32.             <i xid="i2" class="icon-person"/>  
  33.             <span xid="span2">刘洋</span>
  34.           </a>
  35.         </div>  
  36.         <div class="x-titlebar-title" xid="title1">移动办公系统</div>  
  37.         <div class="x-titlebar-right reverse" xid="right1">
  38.           <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-only-label"
  39.             label="退出" xid="closeBtn" onClick="closeBtnClick">
  40.             <i xid="i4"/>  
  41.             <span xid="span3">退出</span>
  42.           </a>
  43.         </div>
  44.       </div>
  45.     </div>  
  46.     <div class="x-panel-content" xid="content1">
  47.       <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
  48.         xid="panel3">
  49.         <div class="x-panel-top" xid="top2" height="88">
  50.           <div component="$UI/system/components/justep/row/row" class="x-row"
  51.             xid="row1">
  52.             <div class="x-col" xid="col1">
  53.               <input component="$UI/system/components/justep/input/input" class="form-control contactssearch"
  54.                 xid="searchinput" placeHolder="输入部门、姓名" bind-keyup="searchinputKeyup"/>
  55.             </div>  
  56.             </div>  
  57.           <div component="$UI/system/components/bootstrap/row/row" class="row pull-right searchres" xid="row4">
  58.    <div class="col w-98" xid="col3"><span xid="span5">共检索:</span></div>
  59.    <div class="col w-66" xid="col6"><div component="$UI/system/components/justep/output/output" xid="allContacts" style="width:100%;"></div></div>
  60.    <div class="col w-20" xid="col9"><span xid="span1" style="width:100%;">人</span></div>
  61.   </div></div>  
  62.         <div class="x-panel-content" xid="content2" id="myContactWindow">
  63.           <div class="x-key-index " style="position:fixed;right:5px;z-index:99;margin-top:0px;height:100%;background-color:#FFFFFF;" xid="div2" bind-load="modelDataLoad">
  64.    <div class="info" xid="div3"></div>
  65.    <ul data-bind="foreach: keys" style="height:160%" xid="ul1">
  66.     <li class="x-key-item" data-bind="text:$object" xid="li3"></li></ul> </div><div xid="div1">
  67.             <div component="$UI/system/components/justep/list/list" class="x-list"
  68.               xid="list2" style="width:96%;margin-top:-10px;" data="caplowerData">
  69.               <ul class="x-list-template" xid="listTemplateUl2">
  70.                 <li xid="li1">
  71.                   <h5 xid="h51" class="pyIndex" bind-text="ref(&quot;fPinyin&quot;)"><![CDATA[]]></h5>  
  72.                   <div component="$UI/system/components/justep/list/list" class="x-list"
  73.                     xid="list1" data="contactsData" filter="$row.val('caplower').toUpperCase()==$object.val('fPinyin') ">
  74.                     <ul class="x-list-template" xid="listTemplateUl1">
  75.                       <li xid="li4">
  76.                         <div component="$UI/system/components/justep/row/row"
  77.                           class="x-row contactslist" xid="row3"  bind-click="row3Click">
  78.                           <div class="x-col x-col-20" xid="col4" style="height:100%;">
  79.                             <img src="$UI/tongxunlu/img/contact.jpg" alt=""
  80.                               xid="image1" style="width:35px;height:28px;"/>
  81.                           </div>  
  82.                           <div class="x-col" xid="col5" style="height:100%;">
  83.                             <span xid="span6" bind-text='ref("name")' style="line-height:55px;" class="center-block"></span></div>
  84.                         </div>
  85.                       </li>
  86.                     </ul>
  87.                   </div>
  88.                 </li>
  89.               </ul>
  90.             </div>
  91.           </div>
  92.         </div>  
  93.         
  94.       </div>
  95.     </div>
  96.   </div>
  97. <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="detailDialog" src="$UI/qhdoa/pages/contact/contactsdetail.w"></span></div>
复制代码
回复 支持 反对

使用道具 举报

30

主题

145

帖子

248

积分

中级会员

Rank: 3Rank: 3

积分
248
QQ
 楼主| 发表于 2016-10-25 15:24:40 | 显示全部楼层
已经实现,可以结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-7-15 15:57 , Processed in 0.055689 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表