|
@@ -4,11 +4,10 @@ import { Loading } from '@components'
|
|
import { connect } from '@tarojs/redux'
|
|
import { connect } from '@tarojs/redux'
|
|
import * as actions from '@actions/list'
|
|
import * as actions from '@actions/list'
|
|
// import { dispatchCartNum } from '@actions/list'
|
|
// import { dispatchCartNum } from '@actions/list'
|
|
|
|
+import ItemList from './itemlist'
|
|
import { getWindowHeight } from '@utils/style'
|
|
import { getWindowHeight } from '@utils/style'
|
|
import './list.scss'
|
|
import './list.scss'
|
|
|
|
|
|
-const RECOMMEND_SIZE = 20
|
|
|
|
-
|
|
|
|
// @connect(state => state.home, { ...actions, })
|
|
// @connect(state => state.home, { ...actions, })
|
|
class List extends Component {
|
|
class List extends Component {
|
|
config = {
|
|
config = {
|
|
@@ -34,7 +33,14 @@ class List extends Component {
|
|
const { } = this.props
|
|
const { } = this.props
|
|
return (
|
|
return (
|
|
<View className='home'>
|
|
<View className='home'>
|
|
- liebiao
|
|
|
|
|
|
+ <ScrollView
|
|
|
|
+ scrollY
|
|
|
|
+ className='home__wrap'
|
|
|
|
+ onScrollToLower={() => { console.log("----") }}
|
|
|
|
+ style={{ height: getWindowHeight() }}
|
|
|
|
+ >
|
|
|
|
+ <ItemList />
|
|
|
|
+ </ScrollView>
|
|
</View>
|
|
</View>
|
|
)
|
|
)
|
|
}
|
|
}
|