From acf7cd254090a98916270612e523eecfb1857264 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 09 Jan 2025 14:41:06 +0800
Subject: [PATCH] refactor(mall): 重构轮播图编辑页面

---
 src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html |   43 ++++++++++++++++++++-----------------------
 1 files changed, 20 insertions(+), 23 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html b/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
index a21f756..1c26e1b 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
@@ -435,8 +435,6 @@
         //         return layedit.sync(indexUpdate);
         //     }
         // });
-
-        formSelects.render();
         const E = window.wangEditor;
         const editor = new E('#toolbar-container', '#text-container'); // 传入两个元素
         editor.config.showLinkImg = false;
@@ -476,7 +474,7 @@
 
         var category = xmSelect.render({
             el: '#goods-category',
-            language: 'zn',
+            language: 'zh',
             prop : {
                 value : 'id',
                 children : 'child'
@@ -494,18 +492,9 @@
             data: []
         })
 
-        febs.get(ctx + 'admin/goodsCategory/categoryTree', null, function(res) {
-            category.update({
-                data : res.data,
-                autoRow: true,
-            });
-
-            // initValue();
-        })
-
         var couponRule = xmSelect.render({
             el: '#coupon-rule',
-            language: 'zn',
+            language: 'zh',
             prop : {
                 value : 'id',
                 children : 'child'
@@ -523,18 +512,9 @@
             data: []
         })
 
-        febs.get(ctx + 'admin/goods/couponTreeSet', null, function(res) {
-            couponRule.update({
-                data : res.data,
-                autoRow: true,
-            });
-
-            initValue();
-        })
-
         var carriageRule = xmSelect.render({
             el: '#carriage-rule',
-            language: 'zn',
+            language: 'zh',
             prop : {
                 value : 'id',
                 children : 'child'
@@ -559,6 +539,23 @@
             });
         })
 
+        febs.get(ctx + 'admin/goods/couponTreeSet', null, function(res) {
+            couponRule.update({
+                data : res.data,
+                autoRow: true,
+            });
+        })
+
+        febs.get(ctx + 'admin/goodsCategory/categoryTree', null, function(res) {
+            category.update({
+                data : res.data,
+                autoRow: true,
+            });
+            initValue();
+        })
+
+        formSelects.render();
+
 
         var tableSkuData = [];
         var tableIns = table.render({

--
Gitblit v1.9.1