78 行
2.8 KiB
HTML
可执行文件
78 行
2.8 KiB
HTML
可执行文件
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>服务商管理后台</title>
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css" />
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/goodsList.css" />
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/myscroll.css"/>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body {
|
|
padding: 10px 15px;
|
|
}
|
|
table {
|
|
border: 1px solid #f1f1f1;
|
|
margin-top: 40px;
|
|
}
|
|
.form-group>div{
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body style="cursor: pointer;">
|
|
<form class="layui-form" action="" id="addform">
|
|
<input type="hidden" name="id" value="{$info.id}">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">退款权限</label>
|
|
<div class="layui-input-block">
|
|
<input type="checkbox" name="canrefund" lay-text="开启|关闭" lay-skin="switch" <if condition="$info['canrefund'] eq 2">checked</if> >
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">退款授权码</label>
|
|
<div class="layui-input-inline">
|
|
<input type="text" name="refundcode" value="{$info['refundcode']}" maxlength="30" placeholder="请输入退款授权码" autocomplete="off" class="layui-input">
|
|
</div>
|
|
<div class="layui-form-mid layui-word-aux">开启授权权限,授权码不能为空</div>
|
|
</div>
|
|
<hr>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<div class="layui-input-inline">
|
|
<button class="layui-btn submit" type="button" lay-filter="formDemo">立即提交</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
|
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
|
|
<script>
|
|
layui.use(['form','layer'],function () {
|
|
var form = layui.form;
|
|
var layer = layui.layer;
|
|
$(".submit").click(function () {
|
|
$.ajax({
|
|
url: "{:U('editadCashierrefund')}",
|
|
type: "post",
|
|
data: $('#addform').serialize(),
|
|
success: function (data) {
|
|
if (data.status == 1) {
|
|
layer.msg(data.msg);
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
parent.layer.close(index);
|
|
} else {
|
|
layer.msg(data.msg, {icon: 2});
|
|
}
|
|
}
|
|
})
|
|
});
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|