From 7c3e94ae52734a9a62020aa082256cde6c55a919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 12 Feb 2020 14:03:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/public/index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 @@ --> - + + + + + From 61ca4cefa0c7b61b5daefbdf19fed952f7befa16 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Wed, 12 Feb 2020 14:23:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=AF=BE?= =?UTF-8?q?=E5=A0=82=E9=A6=96=E9=A1=B5=E6=8E=92=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queries/weapps/subject_query.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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