59 lines
2.2 KiB
PHP
59 lines
2.2 KiB
PHP
<?php $__env->startSection('title', '修改密码'); ?>
|
|
|
|
<?php $__env->startSection('content'); ?>
|
|
<form class="form-horizontal" method="post" action="<?php echo e(route('merchant.setting.password'), false); ?>">
|
|
|
|
<div class="form-group">
|
|
<label class="col-xs-3 control-label">新密码</label>
|
|
<div class="col-xs-8">
|
|
<input type="password" class="form-control" value="" name="password">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-3 control-label">确认密码</label>
|
|
<div class="col-xs-8">
|
|
<input type="password" class="form-control" value="" name="password_confirmation">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-xs-offset-3 col-xs-8">
|
|
<?php echo csrf_field(); ?>
|
|
|
|
<button class="btn btn-primary btn-block ajax" type="button">
|
|
<i class="icon icon-check"></i> 保存
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
|
|
<?php $__env->startPush('script'); ?>
|
|
<script type="text/javascript">
|
|
$('body').on('click', '.ajax', function(event) {
|
|
if ($(this).hasClass('disabled') || $(this).attr('disabled')) {
|
|
return false;
|
|
};
|
|
event.preventDefault();
|
|
var $this = $(this);
|
|
var $form = $this.parents('form');
|
|
var $action = $form.attr("action");
|
|
|
|
$this.attr('disabled', 'disabled');
|
|
var query = $form.serialize();
|
|
$.post($action, query, function(res) {
|
|
$this.removeAttr('disabled');
|
|
if (res.code) {
|
|
parent.updateAlert(res.msg, res.code, function() {
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
parent.layer.close(index);
|
|
});
|
|
} else {
|
|
parent.updateAlert(res.msg, res.code);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<?php $__env->stopPush(); ?>
|
|
|
|
<?php echo $__env->make('Merchant::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/setting/password.blade.php ENDPATH**/ ?>
|