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
39a415f8
authored
2018-04-01 22:37:25 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
114dae5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
application/views/login.php
application/views/login.php
View file @
39a415f
<?php
$this
->
load
->
view
(
'common/header'
,
[
'styles'
=>
[
'/resource/login.css'
]]
);
$this
->
load
->
view
(
'common/header'
,
array
(
'styles'
=>
array
(
'/resource/login.css'
)
)
);
?>
<body
xmlns=
"http://www.w3.org/1999/html"
>
...
...
@@ -13,7 +13,7 @@
<div
class=
"login_name"
>
<p>
后台管理系统
</p>
</div>
<form
action=
"
"
id=
"edit"
>
<form
action=
"
<?=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'login'
?>
"
id=
"edit"
>
<input
name=
"username"
type=
"text"
placeholder=
"用户名"
>
<input
name=
"password"
type=
"password"
placeholder=
"密码"
>
</form>
...
...
@@ -36,15 +36,11 @@
//获得款中的节点
var
targetUrl
=
$
(
"#edit"
).
attr
(
"action"
);
//需要填写目的url
var
data
=
$
(
"#edit"
).
serializeJson
();
var
newData
=
{
username
:
data
[
'nameZh'
],
password
:
data
[
'id'
]
};
$
.
ajax
({
type
:
'post'
,
url
:
apiBaseUrl
+
targetUrl
,
cache
:
false
,
data
:
JSON
.
stringify
(
newD
ata
),
data
:
JSON
.
stringify
(
d
ata
),
dataType
:
'json'
,
contentType
:
"application/json; charset=UTF-8"
,
success
:
function
(
data
)
{
...
...
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