123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>系统设置</title>
- <meta name="description" content="后台管理系统" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
- <!-- bootstrap -->
- <link href="css/bootstrap/bootstrap.css" rel="stylesheet">
- <link href="css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet">
- <!-- global styles -->
- <link rel="stylesheet" type="text/css" href="css/compiled/layout.css">
- <link rel="stylesheet" type="text/css" href="css/compiled/elements.css">
- <link rel="stylesheet" type="text/css" href="css/compiled/icons.css">
- <!-- libraries -->
- <link href="css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
- <!-- this page specific styles -->
- <link rel="stylesheet" href="css/compiled/setting.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="css/compiled/tables.css" type="text/css" media="screen" />
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- </head>
- <body>
- <!-- navbar -->
- <header class="navbar navbar-inverse" role="banner">
- <div class="navbar-header">
- <button class="navbar-toggle" type="button" data-toggle="collapse" id="menu-toggler">
- <span class="sr-only">导航</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="./index.html"><img src="img/logo.png"></a>
- </div>
- <ul class="nav navbar-nav pull-right hidden-xs">
- <li class="settings hidden-xs hidden-sm">
- <a href="./setting.html" role="button">
- <i class="icon-cog"></i>
- </a>
- </li>
- <li class="settings hidden-xs hidden-sm">
- <a href="./signin.html" role="button">
- 退出<i class="icon-signout" style="font-size: 12px;margin-left: 10px;"></i>
- </a>
- </li>
- </ul>
- </header>
- <!-- end navbar -->
- <!-- sidebar -->
- <div id="sidebar-nav">
- <ul id="dashboard-menu">
- <li>
- <a href="./index.html">
- <i class="icon-home"></i>
- <span>首页</span>
- </a>
- </li>
- <li>
- <a href="./flight-query.html">
- <i class="icon-plane"></i>
- <span>快捷下单</span>
- </a>
- </li>
- <li>
-
- <a href="./flight-query-complex.html">
- <i class="icon-fighter-jet"></i>
- <span>人工下单</span>
- </a>
- </li>
- <li>
- <a href="./order-list.html">
- <i class="icon-tasks"></i>
- <span>订单管理</span>
- </a>
- </li>
- <li class="active">
- <div class="pointer">
- <div class="arrow"></div>
- <div class="arrow_border"></div>
- </div>
- <a href="./setting.html">
- <i class="icon-cog"></i>
- <span>系统配置</span>
- </a>
- </li>
- </ul>
- </div>
- <!-- end sidebar -->
- <!-- main container -->
- <div class="content">
-
- <div id="pad-wrapper">
- <!-- query form -->
- <form class="setting">
- <div class="alert alert-danger"><i class="icon-remove-sign"></i>请输入您的设置信息。</div>
- <p class="tit">系统配置</p>
- <div class="row form-wrapper">
- <div class="seting-cont col-md-7 col-xs-10">
- <div class="field-box clearfix">
- <label>sessionKey:</label>
- <input class="form-control" type="text" name="sessionKey" required="required"/>
- </div>
- <div class="field-box clearfix">
- <label>用户名:</label>
- <input class="form-control" type="text" name="name" required="required"/>
- </div>
- <div class="field-box clearfix">
- <label>手机号:</label>
- <input class="form-control" type="text" name="phone" required="required"/>
- </div>
- <div class="field-box clearfix">
- <label>邮箱:</label>
- <input class="form-control" type="text" name="email" />
- </div>
- </div>
- </div>
- </form>
- <!-- end setting form -->
-
- <button class="btn btn-info setting-btn pull-right" type="button" data-toggle="modal" data-target="#orderinfoS" style="width: 9%;">确定</button>
- <!-- end query-list table -->
- </div>
- <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="orderinfoS" id="orderinfoS" aria-hidden="true">
- <div class="modal-dialog" role="document" style="width:32%;">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h3 class="modal-title text-success" id="gridSystemModalLabel">设置成功!</h3>
- </div>
- <div class="modal-body">
- <a type="button" class="btn btn-info details" href="./flight-query.html">快捷下单</a>
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- </div>
- <!-- <div class="modal-footer">
-
- </div> -->
- </div><!-- /.modal-content -->
- </div><!-- /.modal-dialog -->
- </div><!-- /.modal -->
- </div>
- <!-- end main container -->
- <!-- scripts -->
- <script src="js/jquery.min.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <script src="js/theme.js"></script>
- <script>
- $(function(){
- var uname = localStorage.uname;
- var token = localStorage.tokenId;
- var name;
- var phone;
- var email;
- var sessionKey;
- var configId;
- $(".icon-remove-sign").click(function(){
- $(this).parent(".alert").hide();
- });
- $.ajax({
- url:'http://114.55.6.23/jh/jhConfig/list',
- data:{},
- type:"POST",
- dataType:"json",
- error:function(XMLHttpRequest, textStatus, errorThrown) {
- console.log(XMLHttpRequest.responseText);
- console.log(XMLHttpRequest.readyState);
- console.log(textStatus);
- },
- success:function(data){
- console.log(data);
- configId = data.id;
- $("input[name='name']").val(data.name);
- $("input[name='phone']").val(data.phone);
- $("input[name='email']").val(data.email);
- $("input[name='sessionKey']").val(data.sessionKey);
- }
- });
- // 提交表单
- $(".setting-btn").click(function(){
- name = $("input[name='name']").val();
- phone = $("input[name='phone']").val();
- email = $("input[name='email']").val();
- sessionKey = $("input[name='sessionKey']").val();
- /*
- if(name || phone || email || sessionKey){
- $(this).parent(".setting").find(".alert").show();
- $(".icon-remove-sign").click(function(){
- $(this).parent(".alert").hide();
- });
- };*/
- $.ajax({
- url:'http://114.55.6.23/jh/jhConfig/save',
- data:{
- "uname":uname,
- "token":token,
- "id":configId,
- "name":name,
- "phone":phone,
- "email":email,
- "sessionKey":sessionKey
- },
- type:"POST",
- dataType:"json",
- error:function(XMLHttpRequest, textStatus, errorThrown) {
- console.log(XMLHttpRequest.responseText);
- console.log(XMLHttpRequest.readyState);
- console.log(textStatus);
- },
- success:function(data){
- if(data.status == 100){
- $(".setting .alert").html('<i class="icon-remove-sign"></i>'+data.attachment).show();
- $(".icon-remove-sign").click(function(){
- $(this).parent(".alert").hide();
- });
- }else if(data.status == 200){
- console.log(data);
- $('#orderinfoS').modal();
- }
-
- }
- });
- });
-
- });
- </script>
- </body>
- </html>
|