| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/layer/need/layer.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>来电人</title>
- </head>
- <body>
- <div class="Common">
- <table>
- <tr>
- <th style="width: 120px;">来电人:</th>
- <td>
- <span class="callerName" style="display: none;"></span>
- <div style="display: inline-block;" class="passwordSearch">
- <input type="number" id="password" value=""autocomplete="off"/>
- <button onclick="getPhone()">查询</button>
- </div>
- </td>
-
- </tr>
- </table>
- </div>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script>
- var callerName = decodeURI(helper.request.queryString("callerName"));
- var wid=helper.request.queryString("wid")
- if (callerName) {
- $(".callerName").text(callerName)
- }
- function getPhone(){
- if (!$("#password").val()) {
- layer.msg('请输入密码')
- return
- }
- $.ajax({
- type:"get",
- url:huayi.config.callcenter_url + "WorkOrder/GetPhone", //获取数据的Servlet地址,
- async:true,
- dataType:"json",
- data:{
- workorderid:wid,
- password:$("#password").val(),
- token: $.cookie("token")
- },
- success:function(res){
- if (res.state.toLowerCase() ==="success") {
- $(".passwordSearch").hide()
- $(".callerName").show()
- }
- }
- });
- }
- </script>
- </body>
- </html>
|