From bd1942ce31c1eeb793612b1373159ddc6ed8523d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Tue, 23 Jul 2019 10:31:34 +0800
Subject: [PATCH 11/21] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/ShixunHomeworkPage.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
index 3792f8635..91edc45fe 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
@@ -67,7 +67,7 @@ class ShixunHomeworkPage extends Component {
}
componentDidMount() {
- console.log("父组件加载框");
+ // console.log("父组件加载框");
const query = this.props.location.search;
const type = query.split('?tab=');
// let sum = []
From 33f9d9289fc498df6ae3a2e6fffae0b4ae342f26 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Tue, 23 Jul 2019 10:38:13 +0800
Subject: [PATCH 12/21] .
---
public/react/config/webpack.config.prod.js | 5 ++---
.../courses/coursesHome/{coursesHome.js => CoursesHome.js} | 0
.../coursesHome/{coursesHomeCard.js => CoursesHomeCard.js} | 0
3 files changed, 2 insertions(+), 3 deletions(-)
rename public/react/src/modules/courses/coursesHome/{coursesHome.js => CoursesHome.js} (100%)
rename public/react/src/modules/courses/coursesHome/{coursesHomeCard.js => CoursesHomeCard.js} (100%)
diff --git a/public/react/config/webpack.config.prod.js b/public/react/config/webpack.config.prod.js
index e1be720a4..7b9795e80 100644
--- a/public/react/config/webpack.config.prod.js
+++ b/public/react/config/webpack.config.prod.js
@@ -300,10 +300,9 @@ module.exports = {
comments: false
},
warnings: false,
- drop_console: true,
compress: {
- drop_debugger: false,
- drop_console: false
+ drop_debugger: true,
+ drop_console: true
}
}
}),
diff --git a/public/react/src/modules/courses/coursesHome/coursesHome.js b/public/react/src/modules/courses/coursesHome/CoursesHome.js
similarity index 100%
rename from public/react/src/modules/courses/coursesHome/coursesHome.js
rename to public/react/src/modules/courses/coursesHome/CoursesHome.js
diff --git a/public/react/src/modules/courses/coursesHome/coursesHomeCard.js b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js
similarity index 100%
rename from public/react/src/modules/courses/coursesHome/coursesHomeCard.js
rename to public/react/src/modules/courses/coursesHome/CoursesHomeCard.js
From 063af419f54ab4fca8e8f3ed4d6b32aa44af029b Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Tue, 23 Jul 2019 10:43:46 +0800
Subject: [PATCH 13/21] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AF=BE=E7=A8=8B?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/subjects_controller.rb | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb
index 064061058..54e9fe4b2 100644
--- a/app/controllers/subjects_controller.rb
+++ b/app/controllers/subjects_controller.rb
@@ -160,14 +160,11 @@ class SubjectsController < ApplicationController
@shixuns = @shixuns.where(id: shixun_ids)
end
- @shixuns = @shixuns.reorder("created_at desc")
- @shixuns_count = @shixuns.size
+ @shixuns_count = @shixuns.count
## 分页参数
page = params[:page] || 1
- @shixuns = @shixuns.page(page).per(10)
-
- @shixuns = @shixuns.includes(:myshixuns)
+ @shixuns = @shixuns.includes(:myshixuns).reorder("created_at desc").page(page).per(10)
end
def append_to_stage
From 526c87c76965eff74f3050e5925f1470b2128af9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Tue, 23 Jul 2019 10:45:16 +0800
Subject: [PATCH 14/21] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/coursesPublic/ShixunModal.js | 32 ++++++++++---------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/public/react/src/modules/courses/coursesPublic/ShixunModal.js b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
index afba47723..56cecc51b 100644
--- a/public/react/src/modules/courses/coursesPublic/ShixunModal.js
+++ b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
@@ -29,11 +29,13 @@ class ShixunModal extends Component{
axios.get(url).then((result)=>{
if(result.status===200){
- this.setState({
- shixunmodallist:result.data,
- hometypepvisible:false,
- newshixunmodallist:result.data.shixun_list,
- })
+ if(result.data.message===undefined){
+ this.setState({
+ shixunmodallist:result.data,
+ hometypepvisible:false,
+ newshixunmodallist:result.data.shixun_list,
+ })
+ }
}
}).catch((error)=>{
console.log(error);
@@ -59,18 +61,18 @@ class ShixunModal extends Component{
}
}).then((result)=>{
if(result.status===200){
+ if(result.data.message===undefined){
+ let shixun_list = result.data.shixun_list;
+ for (var i = 0; i < shixun_list.length; i++) {
+ newshixunmodallists.push(shixun_list[i])
+ }
+ this.setState({
+ shixunmodallist: result.data,
+ newshixunmodallist: newshixunmodallists,
+ hometypepvisible: false
+ })
- let shixun_list=result.data.shixun_list;
- for(var i=0; i{
From 800417eff48ad41e7fba2a04a942d391dd015aca Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Tue, 23 Jul 2019 10:49:48 +0800
Subject: [PATCH 15/21] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=B7=AF=E5=BE=84?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/subjects_controller.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb
index 54e9fe4b2..4e4d494ce 100644
--- a/app/controllers/subjects_controller.rb
+++ b/app/controllers/subjects_controller.rb
@@ -160,11 +160,14 @@ class SubjectsController < ApplicationController
@shixuns = @shixuns.where(id: shixun_ids)
end
+ @shixuns = @shixuns.reorder("created_at desc")
@shixuns_count = @shixuns.count
## 分页参数
page = params[:page] || 1
- @shixuns = @shixuns.includes(:myshixuns).reorder("created_at desc").page(page).per(10)
+ @shixuns = @shixuns.page(page).per(10)
+
+ @shixuns = @shixuns.includes(:myshixuns)
end
def append_to_stage
From a3939d427e6e4d9470cbf6fce1ca2b9ea63ef4de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Tue, 23 Jul 2019 10:50:57 +0800
Subject: [PATCH 16/21] .
---
public/react/src/modules/tpm/TPMBanner.js | 2 +-
.../src/modules/tpm/shixuns/css/TPMBanner.css | 200 +++++++++---------
2 files changed, 101 insertions(+), 101 deletions(-)
diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js
index 866ca3583..23b228800 100644
--- a/public/react/src/modules/tpm/TPMBanner.js
+++ b/public/react/src/modules/tpm/TPMBanner.js
@@ -597,7 +597,7 @@ class TPMBanner extends Component {