69cb49a3 by yangjianbin

init

1 parent 237273ab
......@@ -40,6 +40,10 @@ class CheckLogin
$session->repaymentPlanSource = $this->getRepaymentPlanSource();
}
if (!$session->allRole) {
$session->allRole = $this->getAllRole();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
......@@ -142,4 +146,16 @@ class CheckLogin
}
}
private function getAllRole()
{
try {
$url = $this->CI->config->item('apiBaseUrl') . 'system/role/getAllRole';
$res = json_decode(file_get_contents($url));
$products = $res->data;
return $products;
} catch (Exception $e) {
return array();
}
}
}
\ No newline at end of file
......
......@@ -33,11 +33,11 @@
</div>
<div class="form-group col-sm-3 col-md-2">
<label>借款期数</label>
<input type="text" class="form-control input-text" value="<?=$this->session->products[0] ? $this->session->products[0]->repaymentMode : '';?>" id="repaymentMode">
<input type="text" class="form-control input-text" readonly value="<?=$this->session->products[0] ? $this->session->products[0]->repaymentMode : '';?>" id="repaymentMode">
</div>
<div class="form-group col-sm-3 col-md-2">
<label>还款方式</label>
<input type="text" class="form-control input-text" value="<?=$this->session->products[0] ? $this->session->products[0]->loanDeadline : '';?>" id="loanDeadline">
<input type="text" class="form-control input-text" readonly value="<?=$this->session->products[0] ? $this->session->products[0]->loanDeadline : '';?>" id="loanDeadline">
</div>
</div>
</div>
......@@ -63,7 +63,7 @@
<div class="row cl pb-20 col-sm-12">
<div class="col-sm-offset-4 col-sm-2">
<input class="btn btn-primary btn-block" value="计算" type="submit">
<input class="btn btn-primary btn-block" value="计算" type="button">
</div>
<div class="col-sm-2">
<input class="btn btn-warning btn-block" value="重置" type="reset">
......
......@@ -18,7 +18,7 @@
</div>
<div class="page-container">
<form class="" onreset="resetHandler()">
<!--<form class="" onreset="resetHandler()">
<div class="row cl mb-20">
<div class="col-xs-4">
<input type="text" class="form-control input-text table_search" value="" placeholder="网站名称" column="1">
......@@ -31,7 +31,7 @@
<div>
<input class="btn btn-warning radius" type="reset" value="重置">
</div>
</form>
</form>-->
<div class="body mt-20">
<table class="table table-border table-bordered table-bg" id="table" width="100%">
<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!