Commit 0ebac747 by Huang Linyu

菜单-工具-短信模块 添加快捷拨号菜单

系统管理-用户列表-查看用户信息: 手机号码后面添加拨号按钮
parent 78b36db2
......@@ -76,6 +76,19 @@ public class SendMessageController {
model.put("action", "/sendMessage/create");
return "tools/sendMessage/form";
}
/**
* 发送短信页
*
* @param dto
* @param model
* @return
*/
@RequestMapping(value = "/call", method = RequestMethod.GET)
public String toCall(@ModelAttribute("dto") SmsForm dto, ModelMap model) {
model.put("action", "/sendMessage/call");
return "tools/sendMessage/call";
}
/**
* 发送短信
......
......@@ -312,6 +312,9 @@ ${pageCss}
<li <#if current == "sendMessage_create">class="active"</#if>>
<a href="/sendMessage/create">发送短信</a>
</li>
<li <#if current == "sendMessage_call">class="active"</#if>>
<a href="/sendMessage/call">快捷拨号</a>
</li>
<li class="nav-header">站内信息</li>
<li <#if current == "insideSms_create">class="active"</#if>>
......
......@@ -321,6 +321,16 @@ $(function() {
});
//拨打电话
function callTitle(phone){
$.post("/callcenter/sipPhone/originateOne",{"dst":phone},function(data){
if(data.errCode==0){
alert("正在为您拨号...");
}
});
}
</script>
</#assign>
......@@ -353,7 +363,8 @@ $(function() {
</tr><tr>
<td>性别</td><td>${bean.gender!}</td><td>生日</td><td>${bean.birth!}</td>
</tr><tr>
<td>手机号</td><td>${bean.mobilePhone!}</td><td>手机号归属地</td><td>${bean.city!} ${bean.province!}</td>
<td>手机号</td><td>${bean.mobilePhone!}&nbsp;<button class="btn btn-default" onclick="callTitle('${bean.mobilePhone!}');" title="我们将会先拨通您的座机号码,再拨通对方的号码">拨打</button></td>
<td>手机号归属地</td><td>${bean.city!} ${bean.province!}</td>
</tr>
<tr>
<td>账户余额</td>
......
<#assign pageJsContent>
</#assign>
<@com.layout title="快捷拨号" module="tools" current="sendMessage_call" pageJs=pageJsContent>
<form class="form-inline form-horizontal" action="${action}" method="post">
<#if returnPage??>
<input type="hidden" id="returnPage" name="returnPage" value="${returnPage}"/>
</#if>
<div id="course_container">
<div class="row-fluid show-grid">
<h3 class="open span12" data-collapse-summary="" aria-expanded="true">快捷拨号</h3>
<div class="feature_content">
<div class="long_content_div control-group ">
<label class="control-label" for="mobileNos">请输入手机号</label>
<div class="controls">
<input type="text" id="mobileNos" name="mobileNos" value="" placeholder="请输入手机号" required="" "="">
</div>
</div>
</div>
<button type="button" class="btn btn-primary pull-left bottom_margin" onclick="callTitle();">拨号</button>
</div>
</div>
</form>
<script>
//拨打电话
function callTitle(){
var phone= $("#mobileNos").val();
if(phone==""||phone=="undefinded"){
return alert("请输入手机号码!");
}
$.post("/callcenter/sipPhone/originateOne",{"dst":phone},function(data){
if(data.errCode==0){
alert("正在为您拨号...");
}
});
}
</script>
</@com.layout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment