import Taro from '@tarojs/taro';
import { connect } from '@tarojs/redux'
function withLoadList(opts = {}) {
return function demoComponent(Component) {
// redux里面的用户数据
// @connect(({ memberToken }) => ({
// memberToken
// }), (dispatch) => ({
// }))
class Hoc extends Component {
constructor(props) {
super(props);
this.state = {
resData: [],
scrollTop: 50,
nextText: false,
preText: false
};
this.downLoad = false;
this.type = 0;
this.prePage = 0;
this.preTotal = 1;
this.nextPage = 0;
this.nextTotal = 1;
this.pageSize = 20;
this.isOneLoad = true;
this._setData = this._setData.bind(this)