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
9cce0446
authored
2018-03-28 23:04:24 +0800
by
wang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
d10a4fc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
application/views/config/edit.php
application/views/perm/personal.php
application/views/config/edit.php
View file @
9cce044
...
...
@@ -31,19 +31,19 @@
</div>
</div>
<!-- 需求改动先去了-->
<!--
<div class="row cl">
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
还款方式
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
name=
"repaymentMode"
>
<option>
请选择
</option>
<?php
/*foreach ($this->session->repayments as $k=>$v):*/
?>
<option
<?
/*=$v == $data->repaymentMode ? 'selected' : '' */
?>
value="
<?
/*=$k*/
?>
">
<?
/*=$v*/
?>
</option>
<?php
/*endforeach;*/
?>
<?php
foreach
(
$this
->
session
->
repayments
as
$k
=>
$v
)
:
?>
<option
<?
=
$v
==
$data
->
repaymentMode
?
'selected'
:
''
?>
value=
"
<?=
$k
?>
"
>
<?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
</div>
-->
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
借款期限
</label>
...
...
application/views/perm/personal.php
View file @
9cce044
...
...
@@ -100,6 +100,33 @@
function reset() {
layer_show('重置密码', '
<?=
site_url
(
'perm/reset'
);
?>
');
}
$.ajax({
type: '
put
',
url: apiBaseUrl + targetUrl,
cache: false,
dataType: '
json
',
data: JSON.stringify(data),
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('
操作失败
');
} else {
layer.msg('
操作成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
layer_close
();
}
},
500
);
},
error
:
function
()
{
layer
.
alert
(
"操作失败"
)
}
})
</script>
</body>
</html>
...
...
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