69cb49a3 by yangjianbin

init

1 parent 237273ab
...@@ -40,6 +40,10 @@ class CheckLogin ...@@ -40,6 +40,10 @@ class CheckLogin
40 $session->repaymentPlanSource = $this->getRepaymentPlanSource(); 40 $session->repaymentPlanSource = $this->getRepaymentPlanSource();
41 } 41 }
42 42
43 if (!$session->allRole) {
44 $session->allRole = $this->getAllRole();
45 }
46
43 47
44 /*if (preg_match("/admin|base/i", uri_string())) { 48 /*if (preg_match("/admin|base/i", uri_string())) {
45 if(!$this->CI->session->isadmin){ 49 if(!$this->CI->session->isadmin){
...@@ -142,4 +146,16 @@ class CheckLogin ...@@ -142,4 +146,16 @@ class CheckLogin
142 } 146 }
143 } 147 }
144 148
149 private function getAllRole()
150 {
151 try {
152 $url = $this->CI->config->item('apiBaseUrl') . 'system/role/getAllRole';
153 $res = json_decode(file_get_contents($url));
154 $products = $res->data;
155 return $products;
156 } catch (Exception $e) {
157 return array();
158 }
159 }
160
145 } 161 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
33 </div> 33 </div>
34 <div class="form-group col-sm-3 col-md-2"> 34 <div class="form-group col-sm-3 col-md-2">
35 <label>借款期数</label> 35 <label>借款期数</label>
36 <input type="text" class="form-control input-text" value="<?=$this->session->products[0] ? $this->session->products[0]->repaymentMode : '';?>" id="repaymentMode"> 36 <input type="text" class="form-control input-text" readonly value="<?=$this->session->products[0] ? $this->session->products[0]->repaymentMode : '';?>" id="repaymentMode">
37 </div> 37 </div>
38 <div class="form-group col-sm-3 col-md-2"> 38 <div class="form-group col-sm-3 col-md-2">
39 <label>还款方式</label> 39 <label>还款方式</label>
40 <input type="text" class="form-control input-text" value="<?=$this->session->products[0] ? $this->session->products[0]->loanDeadline : '';?>" id="loanDeadline"> 40 <input type="text" class="form-control input-text" readonly value="<?=$this->session->products[0] ? $this->session->products[0]->loanDeadline : '';?>" id="loanDeadline">
41 </div> 41 </div>
42 </div> 42 </div>
43 </div> 43 </div>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
63 63
64 <div class="row cl pb-20 col-sm-12"> 64 <div class="row cl pb-20 col-sm-12">
65 <div class="col-sm-offset-4 col-sm-2"> 65 <div class="col-sm-offset-4 col-sm-2">
66 <input class="btn btn-primary btn-block" value="计算" type="submit"> 66 <input class="btn btn-primary btn-block" value="计算" type="button">
67 </div> 67 </div>
68 <div class="col-sm-2"> 68 <div class="col-sm-2">
69 <input class="btn btn-warning btn-block" value="重置" type="reset"> 69 <input class="btn btn-warning btn-block" value="重置" type="reset">
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 </div> 18 </div>
19 19
20 <div class="page-container"> 20 <div class="page-container">
21 <form class="" onreset="resetHandler()"> 21 <!--<form class="" onreset="resetHandler()">
22 <div class="row cl mb-20"> 22 <div class="row cl mb-20">
23 <div class="col-xs-4"> 23 <div class="col-xs-4">
24 <input type="text" class="form-control input-text table_search" value="" placeholder="网站名称" column="1"> 24 <input type="text" class="form-control input-text table_search" value="" placeholder="网站名称" column="1">
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 <div> 31 <div>
32 <input class="btn btn-warning radius" type="reset" value="重置"> 32 <input class="btn btn-warning radius" type="reset" value="重置">
33 </div> 33 </div>
34 </form> 34 </form>-->
35 <div class="body mt-20"> 35 <div class="body mt-20">
36 <table class="table table-border table-bordered table-bg" id="table" width="100%"> 36 <table class="table table-border table-bordered table-bg" id="table" width="100%">
37 <thead class="text-c"> 37 <thead class="text-c">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!