From dfb65eecd41eb835a01b42ad295a062a33223bb9 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, 3 Sep 2019 10:16:24 +0800 Subject: [PATCH] Merge branches 'dev_aliyun' and 'topic_bank' of https://bdgit.educoder.net/Hjqreturn/educoder into topic_bank # Conflicts: # config/routes.rb --- .../src/modules/topic_bank/Topic_bank.js | 2 - .../src/modules/user/usersInfo/InfosTopics.js | 38 +++++++++++++------ .../src/modules/user/usersInfo/usersInfo.css | 6 +++ public/stylesheets/educoder/edu-all.css | 5 --- 4 files changed, 32 insertions(+), 19 deletions(-) diff --git a/public/react/src/modules/topic_bank/Topic_bank.js b/public/react/src/modules/topic_bank/Topic_bank.js index f019ab45c..499351d75 100644 --- a/public/react/src/modules/topic_bank/Topic_bank.js +++ b/public/react/src/modules/topic_bank/Topic_bank.js @@ -30,8 +30,6 @@ class Topic_bank extends Component {
- {/*众包首页*/} - () diff --git a/public/react/src/modules/user/usersInfo/InfosTopics.js b/public/react/src/modules/user/usersInfo/InfosTopics.js index 439bb3843..6db1595bb 100644 --- a/public/react/src/modules/user/usersInfo/InfosTopics.js +++ b/public/react/src/modules/user/usersInfo/InfosTopics.js @@ -79,7 +79,8 @@ class InfosTopics extends Component{ } }).then((response) => { this.setState({ - data:response.data + data:response.data, + checkBoxValues:[] }) }).catch((error) => { @@ -90,12 +91,13 @@ class InfosTopics extends Component{ searchCategory=(type)=>{ this.setState({ - category:type + category:type, + course_list_id:undefined, }) let types=this.props.match.params.topicstype; let { category,course_list_id,sort_by,sort_direction,page}=this.state; - this.searchAlldata(types,type,course_list_id,sort_by,sort_direction,page) + this.searchAlldata(types,type,undefined,sort_by,sort_direction,page) } searchCourselistid=(id)=>{ @@ -333,15 +335,27 @@ class InfosTopics extends Component{ { ` + ::-webkit-scrollbar-thumb { + background-color: #cde5fe; + + box-shadow: 0px 0px black; + } + + + ::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0); + background-color: #fff; + } + .shaiContent li.shaiItem { - padding: 3px 15px; - float: left; - border-radius: 4px; - color: #4C4C4C; - cursor: pointer; - margin-right: 20px; - display: block; - margin-bottom: 5px; + padding: 0px 15px; + float: left; + border-radius: 4px; + color: #4C4C4C; + cursor: pointer; + margin-right: 20px; + display: block; + margin-bottom: 0px; } .mr38{ @@ -395,8 +409,8 @@ class InfosTopics extends Component{
+
  • this.searchCourselistid(undefined)}>全部
  • -
  • this.searchCourselistid(undefined)}>全部
  • {data===undefined?"":data.course_list===undefined||data.course_list.length===0?"":data.course_list.map((item,key)=>{ return(
  • this.searchCourselistid(item.id)}>{item.name}
  • diff --git a/public/react/src/modules/user/usersInfo/usersInfo.css b/public/react/src/modules/user/usersInfo/usersInfo.css index 1c7b3d325..f3dda84d0 100644 --- a/public/react/src/modules/user/usersInfo/usersInfo.css +++ b/public/react/src/modules/user/usersInfo/usersInfo.css @@ -380,4 +380,10 @@ font-weight: 400; color: rgba(51,51,51,1); line-height: 35px; +} + +.topicsItem{ + max-width: 1050px; + max-height: 115px; + overflow-y: auto; } \ No newline at end of file diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css index 022030757..91ea604d4 100644 --- a/public/stylesheets/educoder/edu-all.css +++ b/public/stylesheets/educoder/edu-all.css @@ -3761,8 +3761,3 @@ a.singlepublishtwo{ /*width: auto !important;*/ /*max-width: 600px !important;*/ /*}*/ -.topicsItem{ - max-width: 1138px; - max-height: 110px; - overflow-y: auto; -} \ No newline at end of file