diff --git a/app/queries/weapps/subject_query.rb b/app/queries/weapps/subject_query.rb
index d64d85ac9..0bf3e1e04 100644
--- a/app/queries/weapps/subject_query.rb
+++ b/app/queries/weapps/subject_query.rb
@@ -19,9 +19,9 @@ class Weapps::SubjectQuery < ApplicationQuery
subjects = subjects.joins(:sub_discipline_containers).where(sub_discipline_containers: {container_type: "Subject"})
end
- subjects = subjects.left_joins(:shixuns).select('subjects.id, subjects.name, subjects.excellent, subjects.stages_count, subjects.status,
+ subjects = subjects.left_joins(:shixuns).select('subjects.id, subjects.name, subjects.excellent, subjects.stages_count, subjects.status, subjects.homepage_show,
subjects.shixuns_count, subjects.updated_at, IFNULL(sum(shixuns.myshixuns_count), 0) myshixuns_count')
- .group('subjects.id').order("#{order_type} #{sort_type}")
+ .group('subjects.id').order("(homepage_show, #{order_type}) #{sort_type}")
subjects
end
diff --git a/public/react/public/index.html b/public/react/public/index.html
index 7da2b8d03..38fd550ab 100755
--- a/public/react/public/index.html
+++ b/public/react/public/index.html
@@ -17,8 +17,8 @@
-
-
+
+
@@ -44,13 +44,13 @@
window.__isR = true;
// 不支持ie9 ie10
if (
- ( navigator.userAgent.indexOf('MSIE 9') != -1
+ ( navigator.userAgent.indexOf('MSIE 9') != -1
|| navigator.userAgent.indexOf('MSIE 10') != -1 )
- &&
+ &&
location.pathname.indexOf("/compatibility") == -1) {
debugger;
// location.href = './compatibility'
- location.href = '/compatibility.html'
+ location.href = '/compatibility.html'
}
// const isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
const isWeiXin = (/MicroMessenger/i.test(navigator.userAgent.toLowerCase()));
@@ -203,10 +203,10 @@
-->
-
+
+
+
+
+