123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>工单回调</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="format-detection" content="telephone=no">
- <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
- <link rel="stylesheet" type="text/css" href="../script/lib/valid/validationEngine.jquery.css">
- <link rel="stylesheet" type="text/css" href="../script/lib/layui/admin/style/admin.css?v9" media="all">
- <link rel="stylesheet" type="text/css" href="../script/lib/fancybox/jquery.fancybox.css">
- <script src="../script/lib/jquery/jquery.min.js"></script>
- <script src="../script/lib/layui/layui.js"></script>
- <script src="../script/lib/echarts/echarts.common.min.js"></script>
- <script src="../script/lib/miniui/miniui.js"></script>
- <script><{Dever::script()}></script>
- <script src="../script/dever/core.js"></script>
- <script src="../script/dever/core.js?1"></script>
- <script type="text/javascript" src="../script/lib/valid/jquery.validationEngine.min.js?v3"></script>
- <script type="text/javascript" src="../script/lib/layui/upload.js?v226"></script>
- <script type="text/javascript" src="../script/lib/fancybox/jquery.fancybox.js"></script>
- <script src="../script/lib/manage/main.js"></script>
- <style>
- .dever-upload-pic
- {
- width:100px;
- }
- h5 {
- margin-bottom: 10px;
- }
- td {
- color: black;
- }
- .layui-card-body {
- /*position: relative;*/
- /*padding: 50px 15px;*/
- line-height: 20px;
- margin-left: -10px;
- }
- .layui-input {
- /*position: relative;*/
- /*padding: 30px;*/
- margin-top: 20px;
- /*line-height: 24px;*/
- }
- .container{
- max-width: 1024px;
- margin: auto;
- }
- .layui-span{
- color: blue;
- margin-left: 80px;
- }
- .layui-col-xs4{
- font-size: 18px;
- }
- .layui-col-xs6{
- margin-top: 15px;
- font-size: 15px;
- }
- #content{
- margin-left: 11px;
- margin-right: 18px;
- }
- .url{
- margin-top:40px;
- margin-bottom: 20px;
- }
- .huifu{
- border-style:none;
- background-color: white;
- }
- .pm{
- margin-left: 14px;
- margin-bottom: -14px;
- }
- </style>
- </head>
- <body>
- <div class="layui-card">
- <div class="layui-container">
- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;"> </fieldset>
- <p class='pm'>手机号:</p>
- <input type="text" value="<{$user['mobile']}>" autocomplete="off" id="content" class="layui-input" style="width: auto;display: inline;" placeholder="输入手机号"><a href="javascript:;" class="layui-btn" id="search" >搜索</a>
- <div class="layui-card-body">
- <{if(isset($user)):}>
- <table class="table layui-table layui-table-body" id="table">
- <col width="100">
- <col width="100">
- <thead>
- <tr>
-
- <th><{$user['title']}></th>
- <th>平台</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><{$user['username']}></td>
- <td width=80px;><{$user['type']}></td>
- </tr>
- </tbody>
- </table>
- <div class="url">
- <{if($user['order']):}>
- <div style="margin-bottom:10px;">
- <a href="<{$user['order']}>" class="layui-btn" id="order" target="_blank">代理商订单</a>
- <a href="<{$user['agent']}>" class="layui-btn" id="desc" target="_blank">代理商详情</a>
- </div>
- <div style="margin-bottom:10px;">
- <a href="<{$user['soft']}>" class="layui-btn" id="soft"target="_blank">软件服务费</a>
- <{endif}>
- <{if($user['option']):}>
- <a href="<{$user['option']}>" class="layui-btn" id="option"target="_blank">期权信息</a>
- <{endif}>
- </div>
- <div style="margin-bottom:10px;">
- <a href="<{$user['work']}>" class="layui-btn" id="work" target="_blank">创建工单</a>
- <a href="<{$user['work_list']}>" class="layui-btn" id="work_list" target="_blank">工单列表</a>
- </div>
- </div>
- <{endif}>
- </div>
- </div>
- </div>
- </div>
- <!-- <input id="id" name="id" value="<{$id}>" type='hidden'/> -->
- </div>
- <script>
- var layer;
- layui.use('layer', function(){
- layer = layui.layer;
- });
- function search()
- {
- var content = $('#content').val();
- if (!content) {
- layer.alert('请输入手机号');
- layer.close();
- } else {
- $.ajax({
- type:"GET",
- url:config.host + 'lib/appoint.callback',
- data: {
- phone : $('#content').val(),
- //json:2,
- type:1
- },
- //dataType: "json",
- success: function (data) {
- if(data == '手机号不正确'){
- layer.alert('请输入正确的手机号');
- // location.reload();
- layer.close();
- } else {
- location.href = config.host + 'lib/appoint.callback&phone=' + $('#content').val();
- }
-
- },
- error: function(data){
- layer.alert('手机号错误');
- }
- });
- }
-
-
- }
- $('#search').click(function() {
- search();
- })
- $('#content').focus();
- $('#content').bind('keydown',function(event){
- if(event.keyCode == "13")
- {
- $.ajax({
- type:"GET",
- url:config.host + 'lib/appoint.callback',
- data: {
- phone : $('#content').val(),
- //json:2,
- type :1,
- },
- //dataType: "json",
- success: function (data) {
- if(data == '手机号不正确'){
- layer.alert('请输入正确的手机号');
- layer.close();
- } else {
- location.href = config.host + 'lib/appoint.callback&phone=' + $('#content').val();
- }
-
- },
- error: function(data){
- layer.alert('手机号错误');
- }
- });
- }
- });
- </script>
- </body>
- </html>
|