From 4f47865c3b8132f097cc32fe9bd8e0fa12469786 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期四, 09 十一月 2023 10:08:48 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/tIntegral/tIntegral.js | 32 +++++++++++++++++++++++++++++++- 1 files changed, 31 insertions(+), 1 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tIntegral/tIntegral.js b/cloud-server-management/src/main/webapp/static/modular/system/tIntegral/tIntegral.js index ab66cd4..bff05c8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tIntegral/tIntegral.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tIntegral/tIntegral.js @@ -7,7 +7,12 @@ table: null, layerIndex: -1 }; - +/** + * 关闭此对话框 + */ +TSite.close = function() { + parent.layer.close(window.parent.TSite.layerIndex); +} /** * 初始化表格的列 */ @@ -74,6 +79,31 @@ ajax.set("oneId",oneId); ajax.start(); } +TSite.addSubmit = function () { + + var phonePattern = /^1[3-9]\d{9}$/; + if (!phonePattern.test($("#phone").val())) { + Feng.info("请输入合法手机号") + return ; + } + var ajax = new $ax(Feng.ctxPath + "/tIntegral/add", function(data){ + console.log("看看返回") + console.log(data) + if (data == 5001){ + Feng.error("不存在的手机号!") + }else{ + Feng.success("赠送成功!") + TSite.close(); + TSite.search(); + } + + }); + ajax.set("phone",$("#phone").val()); + ajax.set("integral",$("#number").val()); + ajax.set("remark",$("#remark").val()); + ajax.start(); + +} /** * 点击添加跨城站点管理 */ -- Gitblit v1.7.1