Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bf1cf764
authored
2018-03-23 00:15:40 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
5892e48f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
application/controllers/User.php
application/views/user/index.php
application/controllers/User.php
View file @
bf1cf76
...
...
@@ -11,26 +11,31 @@ class User extends CI_Controller {
$this
->
load
->
view
(
'user/index'
);
}
public
function
info
(
$state
=
null
)
public
function
info
(
$
id
,
$
state
=
null
)
{
$res
=
json_decode
(
file_get_contents
(
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'client/client/'
.
$id
));
$data
=
$res
->
data
;
$arr
=
array
(
'data'
=>
$data
);
switch
(
$state
)
{
case
'1'
:
$this
->
load
->
view
(
'user/资料清单'
);
$this
->
load
->
view
(
'user/资料清单'
,
$arr
);
break
;
case
'2'
:
$this
->
load
->
view
(
'user/基本信息'
);
$this
->
load
->
view
(
'user/基本信息'
,
$arr
);
break
;
case
'3'
:
$this
->
load
->
view
(
'user/人脉圈'
);
$this
->
load
->
view
(
'user/人脉圈'
,
$arr
);
break
;
case
'4'
:
$this
->
load
->
view
(
'user/风险识别'
);
$this
->
load
->
view
(
'user/风险识别'
,
$arr
);
break
;
case
'5'
:
$this
->
load
->
view
(
'user/交易记录'
);
$this
->
load
->
view
(
'user/交易记录'
,
$arr
);
break
;
default
:
$this
->
load
->
view
(
'user/资料清单'
);
$this
->
load
->
view
(
'user/资料清单'
,
$arr
);
break
;
}
}
...
...
application/views/user/index.php
View file @
bf1cf76
...
...
@@ -63,6 +63,7 @@
data: "id", render: function (data, type, full) {
var url = "
<?=
site_url
(
'/user/info'
)
?>
";
url += '/' + data;
return '<span class="
dropDown
dropDown_hover
">\
<button class="
btn
radius
size
-
M
">请选择 <i class="
Hui
-
iconfont
"></i></button>\
<ul class="
dropDown
-
menu
menu
radius
box
-
shadow
">\
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment