目录

$tel

$tel是与电话、短信、邮件相关的服务对象

$tel.call()

打电话

语法

  1. $tel.call("139***")

参数

  • tel:拨打的电话号码

实例

  1. var tel = $id("telnum").get("value");//获取文本框中输入的电话号码
  2. $tel.call(tel);

$tel.sendMsg()

发短信服务,支持群发短信

语法

  1. $tel.sendMsg({
  2. "tel" : "139***,1397***",//电话号码
  3. "body" : "hello"//短信内容
  4. })

参数

  • tel:发送短信的电话号码
  • body:发送短信的内容

实例

  1. var telnum = $id("telnum").get("value")//输入类控件;
  2. $tel.sendMsg({
  3. "tel" : telnum, //电话号码
  4. "body" : "hello send message test"//短信内容
  5. });

$tel.sendMail()

发邮件服务,支持群发邮件

语法

  1. $tel.sendMail({
  2. "receive" : "wwww@qq.com,lll@163.com", //收件人
  3. "title" : "hello", //邮件主题
  4. "content" : "欢迎使用UAP Mobile"//邮件内容
  5. })

参数

  • receive:收件人的邮箱账号
  • title:邮件主题
  • content:邮件内容

实例

  1. $tel.sendMail({
  2. "receive" : "xxx@163.com", //收件人
  3. "title" : "hello", //邮件主题
  4. "content" : "欢迎使用UAP Mobile"//邮件内容
  5. });

$tel.saveContact()

保存联系人

语法

  1. $tel.saveContact({})

参数

  • tel:手机号码
  • employeename:联系人名称
  • jobname:职位
  • orgname:部门名称
  • address:单位地址
  • email:邮箱
  • officetel:办公电话

实例

  1. $tel.saveContact({
  2. "tel" : "139****",
  3. "employeename" : "张三",
  4. "jobname" : "职员",
  5. "orgname" : "开发部",
  6. "address" : "北京市海淀区***",
  7. "email" : "zhangsan@yonyou.com",
  8. "officetel" : "6243****"
  9. });
文档更新时间: 2018-01-15 14:39