From c6332a2118d9d8fe43d773495a403d4a9edf533d Mon Sep 17 00:00:00 2001 From: lisy <linlangsur163@163.com> Date: 星期二, 15 八月 2023 18:15:59 +0800 Subject: [PATCH] 管理后台:积分商品的购买详情,列表页面;todo核销操作 --- cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods.js | 35 +++++++++++++++++++---------------- 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods.js b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods.js index a913f80..f323923 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods.js @@ -49,8 +49,10 @@ }, {title: '排序', field: 'sort', visible: true, align: 'center', valign: 'middle' }, - {title: '活动状态', field: 'state', visible: true, align: 'center', valign: 'middle' - + {title: '活动状态', field: 'activeStatus', visible: true, align: 'center', valign: 'middle', + formatter: function (value, row, index) { + return {1: "未开始", 2: "已开始", 3: "已结束"}[value] + } }, {title: '可售状态', field: 'shelves', visible: true, align: 'center', valign: 'middle', formatter: function (value, row, index) { @@ -145,11 +147,11 @@ if (this.check()) { var index = layer.open({ type: 2, - title:'编辑', - area: ['100%', '100%'], //宽高 + title:'购买详情', + area: ['70%', '70%'], //宽高 fix: false, //不固定 maxmin: true, - content: Feng.ctxPath + '/tGoods/tCity_update/' + TPointProducts.seItem.id + content: Feng.ctxPath + '/tGoods/tPay_detail/' + TPointProducts.seItem.id }); this.layerIndex = index; } @@ -166,7 +168,7 @@ area: ['100%', '100%'], //宽高 fix: false, //不固定 maxmin: true, - content: Feng.ctxPath + '/tGoods/tCity_update/' + TPointProducts.seItem.id + content: Feng.ctxPath + '/tGoods/tGoods_update/' + TPointProducts.seItem.id }); this.layerIndex = index; } @@ -178,16 +180,17 @@ */ TPointProducts.grounding = function (m) { console.log('m:',m); - // if (this.check()) { - // var ajax = new $ax(Feng.ctxPath + "/tGoods/freeze", function (data) { - // Feng.success("冻结成功!"); - // TPointProducts.table.refresh(); - // }, function (data) { - // Feng.error("冻结失败!" + data.responseJSON.message + "!"); - // }); - // ajax.set("id",this.seItem.id); - // ajax.start(); - // } + if (this.check()) { + var ajax = new $ax(Feng.ctxPath + "/tGoods/grounding", function (data) { + Feng.success("操作成功!"); + TPointProducts.table.refresh(); + }, function (data) { + Feng.error("操作失败!" + data.responseJSON.message + "!"); + }); + ajax.set("id",this.seItem.id); + ajax.set("type",m); + ajax.start(); + } }; -- Gitblit v1.7.1