callback.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>工单回调</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
  13. <link rel="stylesheet" type="text/css" href="../script/lib/valid/validationEngine.jquery.css">
  14. <link rel="stylesheet" type="text/css" href="../script/lib/layui/admin/style/admin.css?v9" media="all">
  15. <link rel="stylesheet" type="text/css" href="../script/lib/fancybox/jquery.fancybox.css">
  16. <script src="../script/lib/jquery/jquery.min.js"></script>
  17. <script src="../script/lib/layui/layui.js"></script>
  18. <script src="../script/lib/echarts/echarts.common.min.js"></script>
  19. <script src="../script/lib/miniui/miniui.js"></script>
  20. <script><{Dever::script()}></script>
  21. <script src="../script/dever/core.js"></script>
  22. <script src="../script/dever/core.js?1"></script>
  23. <script type="text/javascript" src="../script/lib/valid/jquery.validationEngine.min.js?v3"></script>
  24. <script type="text/javascript" src="../script/lib/layui/upload.js?v226"></script>
  25. <script type="text/javascript" src="../script/lib/fancybox/jquery.fancybox.js"></script>
  26. <script src="../script/lib/manage/main.js"></script>
  27. <style>
  28. .dever-upload-pic
  29. {
  30. width:100px;
  31. }
  32. h5 {
  33. margin-bottom: 10px;
  34. }
  35. td {
  36. color: black;
  37. }
  38. .layui-card-body {
  39. /*position: relative;*/
  40. /*padding: 50px 15px;*/
  41. line-height: 20px;
  42. margin-left: -10px;
  43. }
  44. .layui-input {
  45. /*position: relative;*/
  46. /*padding: 30px;*/
  47. margin-top: 20px;
  48. /*line-height: 24px;*/
  49. }
  50. .container{
  51. max-width: 1024px;
  52. margin: auto;
  53. }
  54. .layui-span{
  55. color: blue;
  56. margin-left: 80px;
  57. }
  58. .layui-col-xs4{
  59. font-size: 18px;
  60. }
  61. .layui-col-xs6{
  62. margin-top: 15px;
  63. font-size: 15px;
  64. }
  65. #content{
  66. margin-left: 11px;
  67. margin-right: 18px;
  68. }
  69. .url{
  70. margin-top:40px;
  71. margin-bottom: 20px;
  72. }
  73. .huifu{
  74. border-style:none;
  75. background-color: white;
  76. }
  77. .pm{
  78. margin-left: 14px;
  79. margin-bottom: -14px;
  80. }
  81. </style>
  82. </head>
  83. <body>
  84. <div class="layui-card">
  85. <div class="layui-container">
  86. <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;"> </fieldset>
  87. <p class='pm'>手机号:</p>
  88. <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>
  89. <div class="layui-card-body">
  90. <{if(isset($user)):}>
  91. <table class="table layui-table layui-table-body" id="table">
  92. <col width="100">
  93. <col width="100">
  94. <thead>
  95. <tr>
  96. <th><{$user['title']}></th>
  97. <th>平台</th>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. <tr>
  102. <td><{$user['username']}></td>
  103. <td width=80px;><{$user['type']}></td>
  104. </tr>
  105. </tbody>
  106. </table>
  107. <div class="url">
  108. <{if($user['order']):}>
  109. <div style="margin-bottom:10px;">
  110. <a href="<{$user['order']}>" class="layui-btn" id="order" target="_blank">代理商订单</a>
  111. <a href="<{$user['agent']}>" class="layui-btn" id="desc" target="_blank">代理商详情</a>
  112. </div>
  113. <div style="margin-bottom:10px;">
  114. <a href="<{$user['soft']}>" class="layui-btn" id="soft"target="_blank">软件服务费</a>
  115. <{endif}>
  116. <{if($user['option']):}>
  117. <a href="<{$user['option']}>" class="layui-btn" id="option"target="_blank">期权信息</a>
  118. <{endif}>
  119. </div>
  120. <div style="margin-bottom:10px;">
  121. <a href="<{$user['work']}>" class="layui-btn" id="work" target="_blank">创建工单</a>
  122. <a href="<{$user['work_list']}>" class="layui-btn" id="work_list" target="_blank">工单列表</a>
  123. </div>
  124. </div>
  125. <{endif}>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <!-- <input id="id" name="id" value="<{$id}>" type='hidden'/> -->
  131. </div>
  132. <script>
  133. var layer;
  134. layui.use('layer', function(){
  135. layer = layui.layer;
  136. });
  137. function search()
  138. {
  139. var content = $('#content').val();
  140. if (!content) {
  141. layer.alert('请输入手机号');
  142. layer.close();
  143. } else {
  144. $.ajax({
  145. type:"GET",
  146. url:config.host + 'lib/appoint.callback',
  147. data: {
  148. phone : $('#content').val(),
  149. //json:2,
  150. type:1
  151. },
  152. //dataType: "json",
  153. success: function (data) {
  154. if(data == '手机号不正确'){
  155. layer.alert('请输入正确的手机号');
  156. // location.reload();
  157. layer.close();
  158. } else {
  159. location.href = config.host + 'lib/appoint.callback&phone=' + $('#content').val();
  160. }
  161. },
  162. error: function(data){
  163. layer.alert('手机号错误');
  164. }
  165. });
  166. }
  167. }
  168. $('#search').click(function() {
  169. search();
  170. })
  171. $('#content').focus();
  172. $('#content').bind('keydown',function(event){
  173. if(event.keyCode == "13")
  174. {
  175. $.ajax({
  176. type:"GET",
  177. url:config.host + 'lib/appoint.callback',
  178. data: {
  179. phone : $('#content').val(),
  180. //json:2,
  181. type :1,
  182. },
  183. //dataType: "json",
  184. success: function (data) {
  185. if(data == '手机号不正确'){
  186. layer.alert('请输入正确的手机号');
  187. layer.close();
  188. } else {
  189. location.href = config.host + 'lib/appoint.callback&phone=' + $('#content').val();
  190. }
  191. },
  192. error: function(data){
  193. layer.alert('手机号错误');
  194. }
  195. });
  196. }
  197. });
  198. </script>
  199. </body>
  200. </html>