fix(agent): 代理编辑校验失败改用必须确认的弹窗, 让操作员看清原因
返水率/码率/占股超过上级上限时后端已返回具体原因(含上级上限值), 但前端用 layer.msg 一闪而过易被忽略, 误以为'改不动'。改为 layer.alert 必须点确认, 确保看清失败原因(如'返水率不能超过所属代理的返水率 0!')。
This commit is contained in:
@@ -269,7 +269,12 @@
|
||||
dataType: 'JSON',
|
||||
success: function (data) {
|
||||
if (data.code == 0) {
|
||||
layer.msg(data.msg);
|
||||
// 校验未通过:用必须点确认的弹窗代替一闪而过的 toast,确保操作员看清失败原因
|
||||
// (如返水率/码率/占股超过上级上限时,后端会返回具体上限值)
|
||||
layer.alert(data.msg, {
|
||||
title: lang.message,
|
||||
icon: 0
|
||||
});
|
||||
} else if (data.code == 1) {
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
@@ -292,7 +297,10 @@
|
||||
dataType: 'JSON',
|
||||
success: function (d) {
|
||||
if (d.code == 0) {
|
||||
layer.msg(d.msg);
|
||||
layer.alert(d.msg, {
|
||||
title: lang.message,
|
||||
icon: 0
|
||||
});
|
||||
} else if (d.code == 1) {
|
||||
layer.alert(d.msg, {
|
||||
title: lang.message
|
||||
|
||||
Reference in New Issue
Block a user