From 74cddf178e91e88d5d07ddbe5567016066cf2dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 10 Aug 2019 10:22:54 +0800 Subject: [PATCH] =?UTF-8?q?tab=20=E9=A6=96=E9=A1=B5=E7=AD=9B=E9=80=89?= =?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/coursesHome/CoursesHome.js | 30 ++++---- .../src/modules/paths/ShixunPathSearch.js | 30 ++++---- .../src/modules/tpm/shixuns/ShixunCardList.js | 72 +++++++++---------- .../src/modules/tpm/shixuns/ShixunsIndex.js | 2 +- 4 files changed, 67 insertions(+), 67 deletions(-) diff --git a/public/react/src/modules/courses/coursesHome/CoursesHome.js b/public/react/src/modules/courses/coursesHome/CoursesHome.js index 962413e54..374094546 100644 --- a/public/react/src/modules/courses/coursesHome/CoursesHome.js +++ b/public/react/src/modules/courses/coursesHome/CoursesHome.js @@ -16,7 +16,7 @@ class CoursesHome extends Component{ this.state = { limit:16, page:1, - order:"all", + order:"created_at", coursesHomelist:undefined, search:"", } @@ -118,25 +118,25 @@ class CoursesHome extends Component{
- this.changeStatus("all")}>全部 - this.changeStatus("mine")}>我的 + {/* this.changeStatus("all")}>全部*/} + {/* this.changeStatus("mine")}>我的*/} this.changeStatus("created_at")}>最新 this.changeStatus("course_members_count")}>最热 -
- {/* */} -
+ {/*
*/} + {/*/!* *!/*/} + {/*
*/}
diff --git a/public/react/src/modules/paths/ShixunPathSearch.js b/public/react/src/modules/paths/ShixunPathSearch.js index da19e0521..3cba8e33f 100644 --- a/public/react/src/modules/paths/ShixunPathSearch.js +++ b/public/react/src/modules/paths/ShixunPathSearch.js @@ -14,7 +14,7 @@ class ShixunPathSearch extends Component{ constructor(props) { super(props) this.state = { - order:"publish_time", + order:"updated_at", select:0, search:"", page:1, @@ -126,20 +126,20 @@ class ShixunPathSearch extends Component{
- this.changeStatus("publish_time")}>全部 - this.changeStatus("mine")}>我的 - this.changeStatus("updated_at")}>最新 - this.changeStatus("myshixun_count")}>最热 -
- {/* */} -
+ {/* this.changeStatus("publish_time")}>全部*/} + {/* this.changeStatus("mine")}>我的*/} + this.changeStatus("updated_at")}>最新 + this.changeStatus("myshixun_count")}>最热 + {/*
*/} + {/*/!* *!/*/} + {/*
*/}
{ diff --git a/public/react/src/modules/tpm/shixuns/ShixunCardList.js b/public/react/src/modules/tpm/shixuns/ShixunCardList.js index 078016057..2a557c78d 100644 --- a/public/react/src/modules/tpm/shixuns/ShixunCardList.js +++ b/public/react/src/modules/tpm/shixuns/ShixunCardList.js @@ -166,16 +166,16 @@ class ShixunCardList extends Component {
-
this.latestHot(e,1)}>全部 -
-
this.onSwitchChange(e,2)}>我的 -
+ {/*
this.latestHot(e,1)}>全部*/} + {/*
*/} + {/*
this.onSwitchChange(e,2)}>我的*/} + {/*
*/} -
this.latestHot(e,4)}>最新
@@ -186,26 +186,26 @@ class ShixunCardList extends Component {
-
this.upcircles("asc")} - > - - - {/**/} - -
-
this.upcircles("desc")} - style={{display:upcircle===true?"none":"block"}} - > - - - {/**/} - -
- -
+ {/*
this.upcircles("asc")}*/} + {/*>*/} + {/**/} + {/**/} + {/*/!**!/*/} + {/**/} + {/*
*/} + {/*
this.upcircles("desc")}*/} + {/*style={{display:upcircle===true?"none":"block"}}*/} + {/*>*/} + {/**/} + {/**/} + {/*/!**!/*/} + {/**/} + {/*
*/} + + {/*
*/} {/* this.Input_search(value)} autoComplete="off" > */} -
-
- { - this.props.search_tags === null ? "" : this.props.search_tags - } + {/*
*/} + {/*
*/} + {/*{*/} + {/*this.props.search_tags === null ? "" : this.props.search_tags*/} + {/*}*/} {/*
*/} {/*/!*
*/} {/* *!/*/} @@ -242,8 +242,8 @@ class ShixunCardList extends Component { {/*
*/} {/*隐藏我的*/} -
- + {/*
*/} + {/**/}
); diff --git a/public/react/src/modules/tpm/shixuns/ShixunsIndex.js b/public/react/src/modules/tpm/shixuns/ShixunsIndex.js index 9a73a2f6d..68652c3d2 100644 --- a/public/react/src/modules/tpm/shixuns/ShixunsIndex.js +++ b/public/react/src/modules/tpm/shixuns/ShixunsIndex.js @@ -28,7 +28,7 @@ class ShixunsIndex extends Component { constructor(props) { super(props) this.state={ - order_by: "publish_time", + order_by: "new", page:1, limit:16, keyword:"",