Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0ebac747
authored
Mar 13, 2018
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单-工具-短信模块 添加快捷拨号菜单
系统管理-用户列表-查看用户信息: 手机号码后面添加拨号按钮
parent
78b36db2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
1 deletions
src/main/java/com/ctrip/fun/admin/controller/tools/SendMessageController.java
src/main/webapp/WEB-INF/templates/common/layout.ftl
src/main/webapp/WEB-INF/templates/system/UserInfoDetail.ftl
src/main/webapp/WEB-INF/templates/tools/sendMessage/call.ftl
src/main/java/com/ctrip/fun/admin/controller/tools/SendMessageController.java
View file @
0ebac747
...
...
@@ -78,6 +78,19 @@ public class SendMessageController {
}
/**
* 发送短信页
*
* @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"
;
}
/**
* 发送短信
*
* @param dto
...
...
src/main/webapp/WEB-INF/templates/common/layout.ftl
View file @
0ebac747
...
...
@@ -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>
>
...
...
src/main/webapp/WEB-INF/templates/system/UserInfoDetail.ftl
View file @
0ebac747
...
...
@@ -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!}
<button
class=
"btn btn-default"
onclick=
"callTitle('${bean.mobilePhone!}');"
title=
"我们将会先拨通您的座机号码,再拨通对方的号码"
>
拨打
</button></td>
<td>
手机号归属地
</td><td>
${bean.city!} ${bean.province!}
</td>
</tr>
<tr>
<td>
账户余额
</td>
...
...
src/main/webapp/WEB-INF/templates/tools/sendMessage/call.ftl
0 → 100644
View file @
0ebac747
<#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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment