diff --git a/client/actions/login.js b/client/actions/login.js index 6ea78871..bf967528 100644 --- a/client/actions/login.js +++ b/client/actions/login.js @@ -11,7 +11,6 @@ import axios from 'axios'; const checkLoginState = () => { return(dispatch)=> { axios.get('/user/status').then((res) => { - console.log(res); dispatch({ type: GET_LOGIN_STATE, payload: res diff --git a/client/components/Header/Search/Search.js b/client/components/Header/Search/Search.js index 5e57b57a..84f5f1d3 100644 --- a/client/components/Header/Search/Search.js +++ b/client/components/Header/Search/Search.js @@ -31,7 +31,7 @@ export default class Srch extends Component{ } onSelect = (value) => { - if( value.split(":")[0] == "group" ){ + if( value.split(":")[0] == "分组" ){ this.props.history.push('/group/'+value.split(":")[1].trim()); } else { this.props.history.push('/project/'+value.split("(")[1].slice(0,-1)); @@ -45,7 +45,7 @@ export default class Srch extends Component{ const dataSource = []; for(let title in res.data.data){ res.data.data[title].map(item => { - title == "group" ? dataSource.push( title+": "+item.groupName ): dataSource.push( title+": "+item.name+"("+item._id+")" ); + title == "group" ? dataSource.push( "分组"+": "+item.groupName ): dataSource.push( "项目"+": "+item.name+"("+item._id+")" ); }) } this.setState({ @@ -84,8 +84,13 @@ export default class Srch extends Component{ > } - size="large" style={{ width: 200 }} - placeholder="search group/project" + size="large" + style={{ + // width: 200, + // borderColor:"#AAA", + // borderWidth:"1px", + }} + placeholder="搜索分组/项目" className="search-input" /> diff --git a/client/components/Header/Search/Search.scss b/client/components/Header/Search/Search.scss index 2a497729..5de982eb 100644 --- a/client/components/Header/Search/Search.scss +++ b/client/components/Header/Search/Search.scss @@ -2,10 +2,14 @@ $color-grey:#979DA7; .search-wrapper{ .search-input{ - border:1px solid #AAA; - background-color: rgba(255,255,255,0.5); + border:1px solid $color-grey; + color: $color-grey; + width: 2rem; + transition: width 2s; + //background-color:rgba(0,0,0,0.5); } .srch-icon{ color: $color-grey; + font-weight: bold; } } diff --git a/client/containers/Home/Home.js b/client/containers/Home/Home.js index b7aac9b0..56383d10 100644 --- a/client/containers/Home/Home.js +++ b/client/containers/Home/Home.js @@ -40,7 +40,7 @@ const HomeGuest = (props) => (
( - +
@@ -66,7 +66,7 @@ const HomeGuest = (props) => ( 接口管理

- +
@@ -74,7 +74,7 @@ const HomeGuest = (props) => ( 支持Mock

- +
@@ -82,6 +82,14 @@ const HomeGuest = (props) => ( 团队协作

+ +
+ +
+

+ 可部署 +

+
@@ -132,7 +140,7 @@ class Home extends Component {

YAPI

-

一个高效,易用,功能强大的api管理系统

+

一个高效,易用,可部署的Api管理系统