From 4fe7d356651b0ddd13cc4c57465ff98862e8d416 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 19 Jul 2023 17:34:01 +0800
Subject: [PATCH] 商城商品修改

---
 src/main/resources/templates/febs/views/modules/goods/goodsList.html |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsList.html b/src/main/resources/templates/febs/views/modules/goods/goodsList.html
index 5737be2..f7ede30 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsList.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsList.html
@@ -28,7 +28,7 @@
                             </div>
                         </div>
                     </form>
-                    <table lay-filter="userTable" lay-data="{id: 'userTable'}"></table>
+                    <table lay-filter="goodsListTable" lay-data="{id: 'goodsListTable'}"></table>
                     <style type="text/css">
                         .layui-table-cell{
                             text-align:center;
@@ -79,11 +79,19 @@
         <span>否</span>
     {{# } }}
 </script>
-<script type="text/html" id="goodsTypeFormat">
+<script type="text/html" id="isNormalFormat">
     {{# if(d.isNormal == 1) { }}
+        <span>积分兑换商品</span>
+    {{# else if(d.isNormal == 2) { }}
+        <span>购买积分商品</span>
+    {{# else if(d.isNormal == 3) { }}
         <span>普通商品</span>
+    {{# else if(d.isNormal == 4) { }}
+        <span>课程卷商品</span>
+    {{# else if(d.isNormal == 5) { }}
+        <span>民宿卷商品</span>
     {{# } else { }}
-        <span>套餐</span>
+        <span></span>
     {{# } }}
 </script>
 <style>
@@ -104,7 +112,7 @@
             $reset = $view.find('#reset'),
             $searchForm = $view.find('form'),
             $add = $view.find('#add'),
-            sortObject = {field: 'phone', type: null},
+            sortObject = {field: 'isSale', type: 'asc'},
             tableIns;
 
         form.render();
@@ -115,7 +123,7 @@
         initTable();
 
         // 初始化表格操作栏各个按钮功能
-        table.on('tool(userTable)', function (obj) {
+        table.on('tool(goodsListTable)', function (obj) {
             var data = obj.data,
                 layEvent = obj.event;
             if (layEvent === 'downGoods') {
@@ -227,7 +235,7 @@
         function initTable() {
             tableIns = febs.table.init({
                 elem: $view.find('table'),
-                id: 'userTable',
+                id: 'goodsListTable',
                 url: ctx + 'admin/goods/goodsList?goodsType=1',
                 cols: [[
                     {field: 'goodsNo', title: '商品编号', minWidth: 100,align:'left'},
@@ -239,7 +247,7 @@
                     {field: 'categaryName', title: '分类', minWidth: 140,align:'left'},
                     {field: 'isSale', title: '是否上架', templet: '#upOrDownSwitch', minWidth: 100,align:'center'},
                     {field: 'isHot', title: '是否主推', templet: '#isHotSwitch', minWidth: 100,align:'center'},
-                    {templet:"#goodsTypeFormat",  title: '商品类型', minWidth: 140,align:'left'},
+                    {templet:"#isNormalFormat",  title: '商品类型', minWidth: 140,align:'left'},
                     {templet:"#isSkuFormat", title: '是否多规格', minWidth: 100,align:'left'},
                     {field: 'presentPrice', title: '现价', minWidth: 100,align:'left'},
                     {field: 'originalPrice', title: '原价', minWidth: 100,align:'left'},

--
Gitblit v1.9.1