From 38baf97044eeb85ab532ce910ec5510d34d9af94 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期日, 17 八月 2025 21:54:14 +0800 Subject: [PATCH] 优惠券新增类型抵扣券 --- cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js b/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js index f4b07fe..58ff471 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js @@ -23,7 +23,7 @@ {title: '生日', field: 'birthday', visible: true, align: 'center', valign: 'middle'}, {title: '性别', field: 'gender', visible: true, align: 'center', valign: 'middle', formatter:function (data) { - return {1:"男",2:"女"}[data] + return {0:"男",1:"男",2:"女"}[data] } }, {title: '销售人员', field: 'salesmanUserName', visible: true, align: 'center', valign: 'middle'}, @@ -32,6 +32,7 @@ return {1:"是",0:"否"}[data] } }, + {title: '注册时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle'}, {title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle', formatter:function (data) { return {1:"正常",2:"冻结",3:"已注销"}[data] @@ -39,7 +40,14 @@ ]; }; TQuestion.close = function() { - parent.layer.close(window.parent.TQuestion.layerIndex); + // window.parent.layer.close(); + var index = parent.layer.getFrameIndex(window.name); + parent.layer.close(index); + + + // parent.layer.close(window.parent.parent.TQuestion.layerIndex); + // console.log("======"+window.parent.TQuestion.layerIndex) + // window.close(); } /** * 检查是否选中 @@ -63,6 +71,7 @@ * 点击添加 */ TQuestion.openAdd = function () { + var index = layer.open({ type: 2, title: '添加分类', @@ -362,8 +371,10 @@ Feng.error("当前手机号 已被注册") }else{ window.parent.TQuestion.table.refresh(); + layer.closeAll('page'); TQuestion.close(); Feng.success("添加成功"); + window.close(); } }, -- Gitblit v1.7.1