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
0bd412ec
authored
2018-03-15 22:50:14 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
3cf405cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
application/views/common/header.php
application/views/work/add.php
application/views/common/header.php
View file @
0bd412e
...
...
@@ -23,4 +23,7 @@
<meta
name=
"keywords"
content=
""
>
<meta
name=
"description"
content=
""
>
<title>
标题
</title>
<script>
var
apiBaseUrl
=
"http://151.28ms.com:8088/"
;
</script>
</head>
...
...
application/views/work/add.php
View file @
0bd412e
...
...
@@ -8,7 +8,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-header"
>
填写借款人信息
</div>
<div
class=
"panel-body"
>
<form
action=
"
<?=
site_url
(
'
work/added
'
)
?>
"
method=
"post"
class=
"form form-horizontal"
id=
"work_add"
>
<form
action=
"
<?=
site_url
(
'
order/into/applyOrder
'
)
?>
"
method=
"post"
class=
"form form-horizontal"
id=
"work_add"
>
<div
class=
"row cl"
>
<label
class=
"form-label col-xs-4 col-sm-3"
>
姓名
</label>
<div
class=
"formControls col-xs-3 col-sm-3"
>
...
...
@@ -29,7 +29,7 @@
</div>
<div
class=
"row cl"
>
<div
class=
"col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3"
>
<input
class=
"btn btn-primary radius"
type=
"
submit
"
value=
"提交"
>
<input
class=
"btn btn-primary radius"
type=
"
button
"
value=
"提交"
>
</div>
</div>
</form>
...
...
@@ -57,6 +57,24 @@
}
}
});
$
(
"#work_add"
).
click
(
function
(){
var
targetUrl
=
$
(
"#addForm"
).
attr
(
"action"
);
var
data
=
$
(
"#addForm"
).
serialize
();
$
.
ajax
({
type
:
'post'
,
url
:
apiBaseUrl
+
targetUrl
,
cache
:
false
,
data
:
data
,
dataType
:
'json'
,
success
:
function
(
data
){
alert
(
'success'
);
},
error
:
function
(){
alert
(
"请求失败"
)
}
})
})
});
</script>
</body>
...
...
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