Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeLittlePrince/react-webapp-spa
/ functions
Functions
69 in github.com/CodeLittlePrince/react-webapp-spa
⨍
Functions
69
◇
Types & classes
44
↓ 3 callers
Function
get
(url)
app/fetch/get.jsx:6
↓ 2 callers
Method
_getGuessInterestData
* 获取猜你喜欢的数据,并更新state
app/containers/Home/subPage/GuessInterest.jsx:21
↓ 2 callers
Method
_getSearchListData
* 获取猜你喜欢的数据,并更新state
app/containers/Search/subPage/SearchList.jsx:21
↓ 1 callers
Method
_getCityName
* @return 返回获取到的城市名字
app/containers/index.jsx:21
↓ 1 callers
Method
_getRecoData
* fetch推荐数据,然后更新state
app/containers/Home/subPage/Reco.jsx:16
↓ 1 callers
Method
_loadMore
* 监听滚动事件,并处理回调
app/components/LoadMore/index.jsx:11
↓ 1 callers
Method
_processResult
(result)
app/containers/Home/subPage/GuessInterest.jsx:33
↓ 1 callers
Method
_processResult
(result)
app/containers/Search/subPage/SearchList.jsx:35
↓ 1 callers
Method
_scrollHandler
* scroll事件的处理 * @param {*number} timeoutID 计时器的ID,为了可以clear * @param {*object} context 上下文
app/components/LoadMore/index.jsx:21
↓ 1 callers
Function
getGuessInterestData
(city, page)
app/fetch/Home/index.jsx:7
↓ 1 callers
Function
getRecoData
()
app/fetch/Home/index.jsx:3
↓ 1 callers
Function
getSearchListData
(city, page, category, keywords)
app/fetch/Search/index.jsx:3
↓ 1 callers
Function
obj2params
* 将对象转换为a=1&b=2这样的字符串 * @param {*object} obj 需要转换的对象 * @return {*string} 返回转换结果
app/fetch/post.jsx:6
↓ 1 callers
Method
render
()
app/containers/index.jsx:40
↓ 1 callers
Function
updateUserCity
(cityName)
app/actions/userInfo.jsx:3
Method
ClickHandler
* 选择城市以后,更新城市数据 * @param {*object} e 事件event
app/components/CityList/index.jsx:11
Function
MyLoadingComponent
({ isLoading, error })
app/router/routerMap.jsx:10
Method
_callBack
* 当LoadMore元素出现在页面可视范围中,则调用获取数据
app/components/LoadMore/index.jsx:42
Method
changeHandler
(e)
app/components/SearchInput/index.jsx:25
Method
clickHandler
()
app/components/SearchInput/index.jsx:14
Method
clickHandler
* 返回上一页
app/components/Header/index.jsx:9
Method
componentDidMount
()
app/components/LoadMore/index.jsx:51
Method
componentDidMount
()
app/containers/index.jsx:29
Method
componentDidMount
()
app/containers/Home/subPage/GuessInterest.jsx:65
Method
componentDidMount
()
app/containers/Home/subPage/Reco.jsx:37
Method
componentDidMount
()
app/containers/Search/subPage/SearchList.jsx:67
Method
componentWillUnmount
()
app/components/LoadMore/index.jsx:55
Method
constructor
(props)
app/components/SearchInput/index.jsx:6
Method
constructor
(props)
app/components/Category/index.jsx:6
Method
constructor
(props)
app/containers/index.jsx:11
Method
constructor
(props)
app/containers/Home/subPage/GuessInterest.jsx:8
Method
constructor
(props)
app/containers/Home/subPage/Reco.jsx:6
Method
constructor
(props)
app/containers/Search/subPage/SearchList.jsx:8
Method
keyUpHandler
(e)
app/components/SearchInput/index.jsx:19
Method
loadMoreHandler
()
app/containers/Home/subPage/GuessInterest.jsx:70
Method
loadMoreHandler
()
app/containers/Search/subPage/SearchList.jsx:72
Function
mapDispatchToProps
app/containers/index.jsx:58
Function
mapDispatchToProps
(dispatch)
app/containers/City/index.jsx:44
Function
mapStateToProps
app/containers/index.jsx:52
Function
mapStateToProps
(state)
app/containers/Home/index.jsx:22
Function
mapStateToProps
(state)
app/containers/Home/subPage/GuessInterest.jsx:87
Function
mapStateToProps
(state)
app/containers/Search/subPage/SearchList.jsx:88
Function
mapStateToProps
(state)
app/containers/City/index.jsx:38
Function
post
(url, paramsObj)
app/fetch/post.jsx:23
Method
render
()
app/components/CurrentCity/index.jsx:5
Method
render
()
app/components/SearchInput/index.jsx:32
Method
render
()
app/components/SearchHeader/index.jsx:16
Method
render
()
app/components/LoadMore/index.jsx:60
Method
render
()
app/components/HomeReco/index.jsx:6
Method
render
()
app/components/CityList/index.jsx:22
Method
render
()
app/components/GoodsList/index.jsx:7
Method
render
()
app/components/GoodsList/Item/index.jsx:5
Method
render
()
app/components/Header/index.jsx:13
Method
render
()
app/components/HomeHeader/index.jsx:13
Method
render
()
app/components/Category/index.jsx:12
Method
render
()
app/containers/404.jsx:4
Method
render
()
app/containers/Home/index.jsx:10
Method
render
()
app/containers/Home/subPage/GuessInterest.jsx:74
Method
render
()
app/containers/Home/subPage/Reco.jsx:41
Method
render
()
app/containers/Detail/index.jsx:3
Method
render
()
app/containers/Search/index.jsx:6
Method
render
()
app/containers/Search/subPage/SearchList.jsx:76
Method
render
()
app/containers/City/index.jsx:25
Method
render
()
app/containers/User/index.jsx:4
Method
render
()
app/router/routerMap.jsx:50
Method
submitHandler
(keywords)
app/components/SearchHeader/index.jsx:7
Method
submitHandler
(keywords)
app/components/HomeHeader/index.jsx:9
Method
updateCityHandler
* 更新Redux userInfo的cityName,以及localStorage的城市名 * @param {*string} newCityName 新的城市名,由子组件回调提供
app/containers/City/index.jsx:16
Function
userInfo
(state = initState, action)
app/reducers/userInfo.jsx:3