From 7ea2477f3b0ee9699746ba75098b9f09f3b71eb9 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Thu, 20 Feb 2025 20:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Home/Views/answer/add.volt | 43 ++++++++-------- app/Http/Home/Views/answer/edit.volt | 41 ++++++++------- app/Http/Home/Views/question/edit.volt | 70 ++++++++++++++------------ public/static/home/js/answer.edit.js | 6 --- public/static/home/js/question.edit.js | 4 +- 5 files changed, 84 insertions(+), 80 deletions(-) delete mode 100644 public/static/home/js/answer.edit.js diff --git a/app/Http/Home/Views/answer/add.volt b/app/Http/Home/Views/answer/add.volt index 4422c86d..c140a37e 100644 --- a/app/Http/Home/Views/answer/add.volt +++ b/app/Http/Home/Views/answer/add.volt @@ -10,28 +10,32 @@
-
-
-
-
- +
+
+ +
+
+ +
-
-
-
- +
+
+ +
-
-
-
- - +
+
+ + +
-
- + +
-
- {{ partial('answer/tips') }} +
+
+ {{ partial('answer/tips') }} +
@@ -41,6 +45,5 @@ {{ js_include('lib/kindeditor/kindeditor.min.js') }} {{ js_include('home/js/content.editor.js') }} - {{ js_include('home/js/answer.edit.js') }} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/Http/Home/Views/answer/edit.volt b/app/Http/Home/Views/answer/edit.volt index 0bff7bd2..4ab2118f 100644 --- a/app/Http/Home/Views/answer/edit.volt +++ b/app/Http/Home/Views/answer/edit.volt @@ -10,27 +10,31 @@
-
-
-
-
- +
+
+ +
+
+ +
-
-
-
- +
+
+ +
-
-
-
- +
+
+ +
-
- + +
-
- {{ partial('answer/tips') }} +
+
+ {{ partial('answer/tips') }} +
@@ -40,6 +44,5 @@ {{ js_include('lib/kindeditor/kindeditor.min.js') }} {{ js_include('home/js/content.editor.js') }} - {{ js_include('home/js/answer.edit.js') }} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/Http/Home/Views/question/edit.volt b/app/Http/Home/Views/question/edit.volt index 3e454f2a..75469ef2 100644 --- a/app/Http/Home/Views/question/edit.volt +++ b/app/Http/Home/Views/question/edit.volt @@ -14,44 +14,48 @@
-
-
-
- +
+
+
+
+ +
-
-
-
- +
+
+ +
-
- {% if category_options|length > 0 %} -
- -
- +
+
+ {% if category_options|length > 0 %} +
+ +
+ +
-
- {% endif %} - {% if xm_tags|length > 0 %} -
- -
-
+ {% endif %} + {% if xm_tags|length > 0 %} +
+ +
+
+
+
+ {% endif %} +
+
+
-
- {% endif %} -
-
-
@@ -71,4 +75,4 @@ {{ js_include('home/js/content.editor.js') }} {{ js_include('home/js/question.edit.js') }} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/public/static/home/js/answer.edit.js b/public/static/home/js/answer.edit.js deleted file mode 100644 index eb77410f..00000000 --- a/public/static/home/js/answer.edit.js +++ /dev/null @@ -1,6 +0,0 @@ -layui.use(['jquery', 'layer'], function () { - - var $ = layui.jquery; - var layer = layui.layer; - -}); \ No newline at end of file diff --git a/public/static/home/js/question.edit.js b/public/static/home/js/question.edit.js index b627ece8..230f6bca 100644 --- a/public/static/home/js/question.edit.js +++ b/public/static/home/js/question.edit.js @@ -11,9 +11,9 @@ layui.use(['jquery'], function () { data: xmTags, autoRow: true, filterable: true, - filterMethod: function (val, item, index, prop) { + filterMethod: function (val, item) { return item.name.toLowerCase().indexOf(val.toLowerCase()) !== -1; } }); -}); \ No newline at end of file +});