|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<title></title>
|
|
|
<link rel="stylesheet" href="./pear/component/pear/css/pear.css" />
|
|
|
<style>
|
|
|
.layui-elem-field legend {
|
|
|
margin-left: 20px;
|
|
|
padding: 0 10px;
|
|
|
font-size: 16px;
|
|
|
color: #05B5F8;
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<body>
|
|
|
<div class="layui-form" style="margin: 0 auto;width: 1000px;">
|
|
|
|
|
|
<fieldset class="layui-elem-field layui-field-title">
|
|
|
<legend>请支付考试费用</legend>
|
|
|
</fieldset>
|
|
|
|
|
|
<div class="layui-form-item" style="margin-left: -135px;text-align: center;font-size: 16px;" id="subjectView">
|
|
|
<script id="subjectScript" type="text/html">
|
|
|
{{# layui.each(d.list, function(index, item){ }}
|
|
|
<div class="layui-block">
|
|
|
<div class="layui-inline" style="width: 200px;text-align: right;"><span>{{item.name}}</span>:</div>
|
|
|
<div class="layui-inline layui-word-aux"><span>¥ {{item.money}}</span></div>
|
|
|
</div>
|
|
|
<br>
|
|
|
{{# }); }}
|
|
|
<div class="layui-block" style="color: #F59B22;">
|
|
|
<div class="layui-inline" style="width: 200px;text-align: right;"><span>合计</span>:</div>
|
|
|
<div class="layui-inline" style="font-size: 24px;font-weight: bold;"><span>¥ {{d.money}}</span></div>
|
|
|
</div>
|
|
|
</script>
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-form-item" style="margin-top: 20px;">
|
|
|
<div style="text-align: center;">
|
|
|
<button type="button" class="pear-btn pear-btn-primary" id="pay">支 付</button>
|
|
|
<button type="button" class="pear-btn pear-btn-primary" id="return">返 回</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<script src="./pear/component/layui/layui.js"></script>
|
|
|
<script src="./pear/component/pear/pear.js"></script>
|
|
|
<script>
|
|
|
layui.use(['form', 'step', 'laytpl', 'jquery'], function () {
|
|
|
let form = layui.form;
|
|
|
let $ = layui.jquery;
|
|
|
let step = layui.step;
|
|
|
let laytpl = layui.laytpl;
|
|
|
|
|
|
$.ajax({
|
|
|
url: "/dsBase/hk/getSubjectSumMoney",
|
|
|
async: false,
|
|
|
type: 'GET',
|
|
|
success: function (res) {
|
|
|
|
|
|
var subjectTpl = subjectScript.innerHTML;
|
|
|
var subjectView = document.getElementById('subjectView');
|
|
|
laytpl(subjectTpl).render(res, function (html) {
|
|
|
subjectView.innerHTML = html;
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}, error: function (xhr, status, error) {
|
|
|
layer.msg("获取学生信息异常!", {
|
|
|
icon: 2,
|
|
|
time: 1000
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#return").click(function () {
|
|
|
window.location.href = "./select.html";
|
|
|
});
|
|
|
|
|
|
});
|
|
|
</script>
|
|
|
<script>
|
|
|
</script>
|
|
|
</body>
|
|
|
|
|
|
</html> |