39a415f8 by yangjianbin

init

1 parent 114dae5e
<?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(newData),
data: JSON.stringify(data),
dataType: 'json',
contentType: "application/json; charset=UTF-8",
success: function (data) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!