|
@@ -0,0 +1,220 @@
|
|
|
+<!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(isset($user['agent_uid']) && $user['agent_uid']>0):}>
|
|
|
+ <div style="margin-bottom:10px;">
|
|
|
+ <a href="<{$user['order']}>" class="layui-btn" id="order" onclick="order();" target="_blank">代理商订单</a>
|
|
|
+
|
|
|
+ <a href="<{$user['agent']}>" class="layui-btn" id="desc" onclick="desc();" target="_blank">代理商详情</a>
|
|
|
+ </div>
|
|
|
+ <div style="margin-bottom:10px;">
|
|
|
+ <a href="<{$user['soft']}>" class="layui-btn" id="soft" onclick="soft();" target="_blank">软件服务费</a>
|
|
|
+ <{endif}>
|
|
|
+ <{if(isset($user['option_uid']) && $user['option_uid']>0):}>
|
|
|
+ <a href="<{$user['option']}>;" class="layui-btn" id="option" onclick="option();" target="_blank">期权信息</a>
|
|
|
+ <{endif}>
|
|
|
+ </div>
|
|
|
+ <div style="margin-bottom:10px;">
|
|
|
+ <a href="<{$user['work']}>" class="layui-btn" id="work" onclick="work();" 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,
|
|
|
+ },
|
|
|
+ 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('手机号错误', function(){
|
|
|
+ // location.href = config.host + "lib/appoint.back&id=<{$active_id}>";
|
|
|
+ layer.close();
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+$('#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,
|
|
|
+ },
|
|
|
+ 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('手机号错误', function(){
|
|
|
+ layer.close();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|