From 4c902d9c20dd965d1ec832760809c622d1df9aac Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 17 Jun 2021 11:17:03 +0800
Subject: [PATCH] 20210617  开售开关

---
 src/main/resources/templates/febs/views/modules/systemSetting/platformBanner.html |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/systemSetting/platformBanner.html b/src/main/resources/templates/febs/views/modules/systemSetting/platformBanner.html
index dd1c36f..21d72de 100644
--- a/src/main/resources/templates/febs/views/modules/systemSetting/platformBanner.html
+++ b/src/main/resources/templates/febs/views/modules/systemSetting/platformBanner.html
@@ -100,7 +100,6 @@
             
             if (layEvent === 'edit') {
                 febs.modal.open('轮播图设置', 'modules/systemSetting/platformBannerUpdate/' + data.id, {
-                    area: $(window).width() <= 1000 ? '100%' : '50%',
                     btn: ['提交', '取消'],
                     yes: function (index, layero) {
                         $('#user-update').find('#submit').trigger('click');
@@ -130,11 +129,17 @@
             sortObject.type = 'null';
             tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject});
         });
-     	// 新增按钮
+     	
+     	// 刷新按钮
         $add.on('click', function () {
-        	febs.get(ctx + 'systemSetting/platformBannerAdd/', null, function () {
-            	febs.alert.success('确认新增');
-                $reset.click();
+        	febs.modal.open('轮播图新增', 'modules/systemSetting/platformBannerAdd/', {
+                btn: ['提交', '取消'],
+                yes: function (index, layero) {
+                    $('#user-add').find('#submit').trigger('click');
+                },
+                btn2: function () {
+                    layer.closeAll();
+                }
             });
         });
 
@@ -152,7 +157,10 @@
                 cols: [[
                 	{field: 'id', title: '', minWidth: 10,align:'left'},
                 	{field: 'name', title: '标题', minWidth: 120,align:'center'},
-                    {field: 'imageUrl', title: '图片链接', minWidth: 200,align:'center'},
+                    {field: 'imageUrl', title: '图片链接',
+                        templet: function (d) {
+                            return '<img src="'+d.imageUrl+'" >'
+                        }, minWidth: 200,align:'center'},
                     {field: 'jumpUrl', title: '跳转链接', minWidth: 200,align:'center'},
                     {field: 'sort', title: '联系方式', minWidth: 200,align:'center'},
                     

--
Gitblit v1.9.1