配置中心
Showing
8 changed files
with
307 additions
and
7 deletions
application/controllers/Config.php
0 → 100644
| 1 | <?php | ||
| 2 | defined('BASEPATH') OR exit('No direct script access allowed'); | ||
| 3 | |||
| 4 | class Config extends CI_Controller { | ||
| 5 | public function index() | ||
| 6 | { | ||
| 7 | $this->load->view('config/index'); | ||
| 8 | } | ||
| 9 | |||
| 10 | public function add() | ||
| 11 | { | ||
| 12 | $this->load->view('config/add'); | ||
| 13 | } | ||
| 14 | |||
| 15 | public function edit($id = null) | ||
| 16 | { | ||
| 17 | $this->load->view('config/add'); | ||
| 18 | } | ||
| 19 | } |
| ... | @@ -63,4 +63,9 @@ class Welcome extends CI_Controller { | ... | @@ -63,4 +63,9 @@ class Welcome extends CI_Controller { |
| 63 | { | 63 | { |
| 64 | $this->load->view('welcome/tool'); | 64 | $this->load->view('welcome/tool'); |
| 65 | } | 65 | } |
| 66 | |||
| 67 | public function config() | ||
| 68 | { | ||
| 69 | $this->load->view('welcome/config'); | ||
| 70 | } | ||
| 66 | } | 71 | } | ... | ... |
| ... | @@ -25,6 +25,9 @@ | ... | @@ -25,6 +25,9 @@ |
| 25 | <a href="<?=site_url('welcome/perm')?>" >权限中心</a> | 25 | <a href="<?=site_url('welcome/perm')?>" >权限中心</a> |
| 26 | </li> | 26 | </li> |
| 27 | <li class="dropDown dropDown_hover"> | 27 | <li class="dropDown dropDown_hover"> |
| 28 | <a href="<?=site_url('welcome/config')?>" >配置中心</a> | ||
| 29 | </li> | ||
| 30 | <li class="dropDown dropDown_hover"> | ||
| 28 | <a href="javascript:;" >应用工具 <i class="Hui-iconfont"></i></a> | 31 | <a href="javascript:;" >应用工具 <i class="Hui-iconfont"></i></a> |
| 29 | <ul class="dropDown-menu menu radius box-shadow"> | 32 | <ul class="dropDown-menu menu radius box-shadow"> |
| 30 | <li> | 33 | <li> | ... | ... |
application/views/config/add.php
0 → 100644
| 1 | <?php $this->load->view('common/header'); ?> | ||
| 2 | |||
| 3 | <body> | ||
| 4 | <div class="panel panel-default mb-20"> | ||
| 5 | <div class="panel-body cl"> | ||
| 6 | <div class="row cl"> | ||
| 7 | <div class="form-group col-sm-4 col-md-2"> | ||
| 8 | <label>产品名称</label> | ||
| 9 | <input type="text" class="form-control input-text" value=""> | ||
| 10 | </div> | ||
| 11 | </div> | ||
| 12 | <div class="row cl"> | ||
| 13 | <div class="form-group col-sm-4 col-md-2"> | ||
| 14 | <label>年化利率</label> | ||
| 15 | <input type="text" class="form-control input-text" value=""> | ||
| 16 | <span class="glyphicon form-control-feedback">%</span> | ||
| 17 | </div> | ||
| 18 | </div> | ||
| 19 | <div class="row cl"> | ||
| 20 | <div class="form-group col-sm-4 col-md-2"> | ||
| 21 | <label>罚息</label> <smail class="c-999">罚息=利率*N%</smail> | ||
| 22 | <input type="text" class="form-control input-text" value="" placeholder="请输入N"> | ||
| 23 | </div> | ||
| 24 | </div> | ||
| 25 | <div class="row cl"> | ||
| 26 | <div class="form-group col-sm-4 col-md-2"> | ||
| 27 | <label>滞纳金</label> | ||
| 28 | <input type="text" class="form-control input-text" value=""> | ||
| 29 | </div> | ||
| 30 | </div> | ||
| 31 | <div class="row cl"> | ||
| 32 | <div class="form-group col-sm-4 col-md-2"> | ||
| 33 | <label>还款方式</label> | ||
| 34 | <span class="form-control select-box"> | ||
| 35 | <select class="select" size="1"> | ||
| 36 | <option>请选择</option> | ||
| 37 | </select> | ||
| 38 | </span> | ||
| 39 | </div> | ||
| 40 | </div> | ||
| 41 | <div class="row cl"> | ||
| 42 | <div class="form-group col-sm-4 col-md-2"> | ||
| 43 | <label>借款期限</label> | ||
| 44 | <input type="text" class="form-control input-text" value=""> | ||
| 45 | <span class="glyphicon form-control-feedback">月</span> | ||
| 46 | </div> | ||
| 47 | </div> | ||
| 48 | <div class="row cl"> | ||
| 49 | <div class="form-group col-sm-4 col-md-2"> | ||
| 50 | <label>授额上限</label> | ||
| 51 | <input type="text" class="form-control input-text" value=""> | ||
| 52 | <span class="glyphicon form-control-feedback">元</span> | ||
| 53 | </div> | ||
| 54 | </div> | ||
| 55 | <div class="row cl"> | ||
| 56 | <div class="form-group col-sm-12 col-md-12"> | ||
| 57 | <label>备注</label> | ||
| 58 | <textarea class="textarea"></textarea> | ||
| 59 | </div> | ||
| 60 | </div> | ||
| 61 | </div> | ||
| 62 | </div> | ||
| 63 | |||
| 64 | <div class="row cl col-sm-12 pb-20"> | ||
| 65 | <div class="col-sm-2"> | ||
| 66 | <button class="btn btn-primary btn-block" onclick="save();">保存</button> | ||
| 67 | </div> | ||
| 68 | <div class="col-sm-2"> | ||
| 69 | <button class="btn btn-warning btn-block" onclick="layer_close();">取消</button> | ||
| 70 | </div> | ||
| 71 | </div> | ||
| 72 | |||
| 73 | <?php $this->load->view('common/footer'); ?> | ||
| 74 | |||
| 75 | <script> | ||
| 76 | function save() { | ||
| 77 | layer_close(); | ||
| 78 | } | ||
| 79 | </script> | ||
| 80 | </body> | ||
| 81 | </html> |
application/views/config/index.php
0 → 100644
| 1 | <?php $this->load->view('common/header'); ?> | ||
| 2 | |||
| 3 | <body> | ||
| 4 | <div class="page-container"> | ||
| 5 | <div> | ||
| 6 | <button class="btn btn-primary radius" onclick="layer_show('添加', '<?=site_url('/config/add')?>')">添加</button> | ||
| 7 | </div> | ||
| 8 | |||
| 9 | <div class="body mt-20"> | ||
| 10 | <table class="table table-border table-bordered table-bg" id="table"> | ||
| 11 | <thead class="text-c"> | ||
| 12 | <tr> | ||
| 13 | <th width="68px">操作</th> | ||
| 14 | <th>产品名称</th> | ||
| 15 | <th>年化利率%</th> | ||
| 16 | <th>罚息(利率*n%)</th> | ||
| 17 | <th>滞纳金</th> | ||
| 18 | <th>还款方式</th> | ||
| 19 | <th>借款期限(月)</th> | ||
| 20 | <th>授额上限(元)</th> | ||
| 21 | <th>录入时间</th> | ||
| 22 | <th>备注</th> | ||
| 23 | </tr> | ||
| 24 | </thead> | ||
| 25 | <tbody class="text-c"> | ||
| 26 | </tbody> | ||
| 27 | </table> | ||
| 28 | </div> | ||
| 29 | </div> | ||
| 30 | <?php $this->load->view('common/footer'); ?> | ||
| 31 | |||
| 32 | <script> | ||
| 33 | var table = $('#table').dataTable({ | ||
| 34 | aaSorting: [[1, "desc"]], | ||
| 35 | serverSide: true, | ||
| 36 | processing: true, | ||
| 37 | bSort: false, | ||
| 38 | searching: false,//是否显示搜索 | ||
| 39 | iDisplayLength: 6, | ||
| 40 | bLengthChange: false, | ||
| 41 | ajax: { | ||
| 42 | url: apiBaseUrl + '/order/into/getAllApplyOrder', | ||
| 43 | dataFilter: function (json) { | ||
| 44 | var ret = {}, json = jQuery.parseJSON(json); | ||
| 45 | ret.data = json.data; | ||
| 46 | var draw = getUrlParam('draw'); | ||
| 47 | if(draw) { | ||
| 48 | ret.draw = draw; | ||
| 49 | } | ||
| 50 | // ret.draw = parseInt(json.page.currentPage); | ||
| 51 | ret.recordsTotal = parseInt(json.page.totalNumber); | ||
| 52 | ret.recordsFiltered = parseInt(json.page.totalNumber); | ||
| 53 | return JSON.stringify(ret); | ||
| 54 | }, | ||
| 55 | data: function (data) { | ||
| 56 | data.pageSize = data.length; | ||
| 57 | data.currentPage = parseFloat(data.start / data.length) + 1; | ||
| 58 | return data; | ||
| 59 | } | ||
| 60 | }, | ||
| 61 | columns: [ | ||
| 62 | { | ||
| 63 | data: "id", render: function (data, type, full) { | ||
| 64 | return '<span class="dropDown dropDown_hover">\ | ||
| 65 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\ | ||
| 66 | <ul class="dropDown-menu menu radius box-shadow">\ | ||
| 67 | <li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/work/detail/' + data + '?tab=0\')">编辑</a></li>\ | ||
| 68 | <li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/work/detail/' + data + '?tab=2\')">删除</a></li>\ | ||
| 69 | </ul></span>'; | ||
| 70 | } | ||
| 71 | }, | ||
| 72 | {data: "orderId"},//产品名称 | ||
| 73 | {data: "createUser"},//年化利率 | ||
| 74 | {data: "idCard"},//罚息 | ||
| 75 | {data: "phoneNumber"},//滞纳金 | ||
| 76 | {data: "createTime"},//还款方式 | ||
| 77 | {data: "createTime"},//借款期限 | ||
| 78 | {data: "createTime"},//授额上限 | ||
| 79 | {data: "createTime"},//录入时间 | ||
| 80 | {data: "createTime"},//备注 | ||
| 81 | ] | ||
| 82 | }); | ||
| 83 | </script> | ||
| 84 | </body> | ||
| 85 | <html> |
application/views/finance/index.php
deleted
100644 → 0
application/views/tool/header.php
deleted
100644 → 0
File mode changed
application/views/welcome/config.php
0 → 100644
| 1 | <?php | ||
| 2 | $this->load->view('common/header'); | ||
| 3 | |||
| 4 | ?> | ||
| 5 | <body> | ||
| 6 | <?php | ||
| 7 | $this->load->view('common/top'); | ||
| 8 | ?> | ||
| 9 | <aside class="Hui-aside"> | ||
| 10 | <div class="menu_dropdown bk_2"> | ||
| 11 | <ul> | ||
| 12 | <li><a data-href="<?=site_url('/config/index')?>" data-title="产品配置" href="javascript:void(0)"><i class="Hui-iconfont"></i> 产品配置</a></li> | ||
| 13 | </ul> | ||
| 14 | </div> | ||
| 15 | </aside> | ||
| 16 | <div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div> | ||
| 17 | <section class="Hui-article-box"> | ||
| 18 | <div id="Hui-tabNav" class="Hui-tabNav hidden-xs"> | ||
| 19 | <div class="Hui-tabNav-wp"> | ||
| 20 | <ul id="min_title_list" class="acrossTab cl"> | ||
| 21 | <li class="active"> | ||
| 22 | <span title="我的桌面" data-href="welcome.html">我的桌面</span> | ||
| 23 | <em></em></li> | ||
| 24 | </ul> | ||
| 25 | </div> | ||
| 26 | <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont"></i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont"></i></a></div> | ||
| 27 | </div> | ||
| 28 | <div id="iframe_box" class="Hui-article"> | ||
| 29 | <div class="show_iframe"> | ||
| 30 | <div style="display:none" class="loading"></div> | ||
| 31 | <iframe scrolling="yes" frameborder="0" src="welcome.html"></iframe> | ||
| 32 | </div> | ||
| 33 | </div> | ||
| 34 | </section> | ||
| 35 | |||
| 36 | <div class="contextMenu" id="Huiadminmenu"> | ||
| 37 | <ul> | ||
| 38 | <li id="closethis">关闭当前 </li> | ||
| 39 | <li id="closeall">关闭全部 </li> | ||
| 40 | </ul> | ||
| 41 | </div> | ||
| 42 | <?php | ||
| 43 | |||
| 44 | $this->load->view('common/footer'); | ||
| 45 | |||
| 46 | ?> | ||
| 47 | <!--请在下方写此页面业务相关的脚本--> | ||
| 48 | <script type="text/javascript" src="/resource/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script> | ||
| 49 | <script type="text/javascript"> | ||
| 50 | $(function(){ | ||
| 51 | /*$("#min_title_list li").contextMenu('Huiadminmenu', { | ||
| 52 | bindings: { | ||
| 53 | 'closethis': function(t) { | ||
| 54 | console.log(t); | ||
| 55 | if(t.find("i")){ | ||
| 56 | t.find("i").trigger("click"); | ||
| 57 | } | ||
| 58 | }, | ||
| 59 | 'closeall': function(t) { | ||
| 60 | alert('Trigger was '+t.id+'\nAction was Email'); | ||
| 61 | }, | ||
| 62 | } | ||
| 63 | });*/ | ||
| 64 | }); | ||
| 65 | /*个人信息*/ | ||
| 66 | function myselfinfo(){ | ||
| 67 | layer.open({ | ||
| 68 | type: 1, | ||
| 69 | area: ['300px','200px'], | ||
| 70 | fix: false, //不固定 | ||
| 71 | maxmin: true, | ||
| 72 | shade:0.4, | ||
| 73 | title: '查看信息', | ||
| 74 | content: '<div>管理员信息</div>' | ||
| 75 | }); | ||
| 76 | } | ||
| 77 | |||
| 78 | /*资讯-添加*/ | ||
| 79 | function article_add(title,url){ | ||
| 80 | var index = layer.open({ | ||
| 81 | type: 2, | ||
| 82 | title: title, | ||
| 83 | content: url | ||
| 84 | }); | ||
| 85 | layer.full(index); | ||
| 86 | } | ||
| 87 | /*图片-添加*/ | ||
| 88 | function picture_add(title,url){ | ||
| 89 | var index = layer.open({ | ||
| 90 | type: 2, | ||
| 91 | title: title, | ||
| 92 | content: url | ||
| 93 | }); | ||
| 94 | layer.full(index); | ||
| 95 | } | ||
| 96 | /*产品-添加*/ | ||
| 97 | function product_add(title,url){ | ||
| 98 | var index = layer.open({ | ||
| 99 | type: 2, | ||
| 100 | title: title, | ||
| 101 | content: url | ||
| 102 | }); | ||
| 103 | layer.full(index); | ||
| 104 | } | ||
| 105 | /*用户-添加*/ | ||
| 106 | function member_add(title,url,w,h){ | ||
| 107 | layer_show(title,url,w,h); | ||
| 108 | } | ||
| 109 | |||
| 110 | |||
| 111 | </script> | ||
| 112 | |||
| 113 | </body> | ||
| 114 | </html> |
-
Please register or sign in to post a comment