| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import Taro, { Component } from '@tarojs/taro'
- import { View, Text, Image, ScrollView } from '@tarojs/components'
- import { Loading } from '@components'
- import { connect } from '@tarojs/redux'
- import * as actions from '@actions/list'
- // import { dispatchCartNum } from '@actions/list'
- import ItemList from './itemlist'
- import { getWindowHeight } from '@utils/style'
- import './list.scss'
- // @connect(state => state.home, { ...actions, })
- class List extends Component {
- config = {
- navigationBarTitleText: '报告列表'
- }
- state = {
- loaded: false,
- loading: false,
- lastItemId: 0,
- hasMore: true
- }
- componentDidMount() {
- }
- render() {
- // if (!this.state.loaded) {
- // return <Loading />
- // }
- const { } = this.props
- return (
- <View className='home'>
- <ScrollView
- scrollY
- className='home__wrap'
- onScrollToLower={() => { console.log("----") }}
- style={{ height: getWindowHeight() }}
- >
- <ItemList />
- </ScrollView>
- </View>
- )
- }
- }
- export default List
|