提交 9cca5965 authored 作者: chengye's avatar chengye

缴费单与账单关系错误导致的异常

上级 aeb9bddd
......@@ -84,19 +84,7 @@
function () {
$ = layui.jquery;
var form = layui.form,
layer = layui.layer,
laydate = layui.laydate,
upload = layui.upload;
//消息提示
function layMsg(msg,type=6,time=1000){
layer.msg(msg,{
icon: type,
time: time,
});
}
layer = layui.layer;
//生成缴费单
form.on('submit(payment)',
......@@ -108,14 +96,14 @@
dataType: "json",
success: function (data) {
if (data.status == 1) {
layer.msg(data.message,{icon: 6,time: 1000 },function(){
layer.msg(data.message,{icon: 6,time: 4000 },function(){
if(data.data){
var url = "/payment"
window.location.href=url
}
})
} else {
layer.msg(data.message,{icon: 5,time: 1000 })
layer.msg(data.message,{icon: 5,time: 4000 })
}
}
});
......@@ -132,11 +120,11 @@
dataType: "json",
success: function (data) {
if (data.status == 1) {
layer.msg(data.message,{icon: 6,time: 1000},function(){
layer.msg(data.message,{icon: 6,time: 4000},function(){
window.location.href='/settle';
})
} else {
layer.msg(data.message,{icon: 5,time: 1000 })
layer.msg(data.message,{icon: 5,time: 4000 })
}
}
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论