/
index.js
67 lines (55 loc) · 1.5 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
var _class, _temp;
import Taro from '@tarojs/taro-rn';
import React from 'react';
import { View } from "@tarojs/components-rn";
import LatestDataDefaultList from "../../components/latest-data-default-list/index";
let Index = (_temp = _class = class Index extends Taro.Component {
render() {
return <View className="pages-index-index-homepage">
{}
<LatestDataDefaultList />
{}
{}
{}
{}
{}
{}
</View>;
}
}, _class.config = {
navigationBarTitleText: '首页'
// 开启所有页面的下拉刷新功能,需要做下拉刷新的页面里写onPullDownRefresh方法,
// 再调用Taro.startPullDownRefresh 、Taro.stopPullDownRefresh
// enablePullDownRefresh: true,// 下拉刷新
// backgroundTextStyle: light
//
// constructor(props){
// super(props);
// this.isPullRefresh = false;
// }
//
//
//
// // 下拉刷新
// onPullDownRefresh() {
// console.log('监听下拉刷新')
// if(this.isPullRefresh){
// return
// }
// this.isPullRefresh = true;
// this.onRefresh();
// }
//
// onRefresh = ()=>{
// Taro.startPullDownRefresh().then((result) => {
// console.log('onPullDownRefresh',result)
// this.getList();
// this.isPullRefresh = false;
// }).catch((failResullt) => {
// console.log('failResullt', failResullt);
// Taro.stopPullDownRefresh();
// this.isPullRefresh = false;
// });
// }
}, _temp);
export default Index;