diff --git a/app/Http/Web/Services/CourseQuery.php b/app/Http/Web/Services/CourseQuery.php
index ef547743..92a65247 100644
--- a/app/Http/Web/Services/CourseQuery.php
+++ b/app/Http/Web/Services/CourseQuery.php
@@ -223,7 +223,7 @@ class CourseQuery extends Service
$params['tc'] = $query['tc'];
}
- if (isset($query['sc']) && $query['tc'] != 'all') {
+ if (isset($query['sc']) && $query['sc'] != 'all') {
$validator->checkSubCategory($query['sc']);
$params['sc'] = $query['sc'];
}
diff --git a/app/Http/Web/Views/course/list.volt b/app/Http/Web/Views/course/list.volt
index b0870473..23de18fa 100644
--- a/app/Http/Web/Views/course/list.volt
+++ b/app/Http/Web/Views/course/list.volt
@@ -2,86 +2,15 @@
{% block content %}
-
-
首页
-
上页
-
下页
-
尾页
+
{% endif %}
\ No newline at end of file
diff --git a/app/Http/Web/Views/search/content_course.volt b/app/Http/Web/Views/search/content_course.volt
new file mode 100644
index 00000000..ea6e602a
--- /dev/null
+++ b/app/Http/Web/Views/search/content_course.volt
@@ -0,0 +1,35 @@
+{% if pager.total_pages > 0 %}
+
+ {% for item in pager.items %}
+
+
+
+
+
{{ item.summary }}
+
+ 分类:{{ item.category.name }}
+ 讲师:{{ item.teacher.name }}
+ 难度:{{ level_info(item.level) }}
+ 课时:{{ item.lesson_count }}
+ 学员:{{ item.user_count }}
+
+
+
+ {% endfor %}
+
+{% else %}
+
+
+
+
+
+ 没有找到{{ request.get('query') }}相关内容,换个关键字试试吧!
+
+
+{% endif %}
\ No newline at end of file
diff --git a/app/Http/Web/Views/search/content_other.volt b/app/Http/Web/Views/search/content_other.volt
new file mode 100644
index 00000000..530405f4
--- /dev/null
+++ b/app/Http/Web/Views/search/content_other.volt
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/Http/Web/Views/search/list.volt b/app/Http/Web/Views/search/list.volt
index 812b1455..f56a5418 100644
--- a/app/Http/Web/Views/search/list.volt
+++ b/app/Http/Web/Views/search/list.volt
@@ -2,38 +2,27 @@
{% block content %}
-
- {% for item in pager.items %}
-
-
-
-
-
- {% if item.market_price > 0 %}
- ¥{{ item.market_price }}
- 中级
- {{ item.lesson_count }}节课
- {{ item.user_count }}人购买
- {% else %}
- 免费
- 中级
- {{ item.lesson_count }}节课
- {{ item.user_count }}人报名
- {% endif %}
-
-
-
- {% endfor %}
-
+ {% set type = request.get('type','trim','course') %}
-