-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathTestPage.js
72 lines (69 loc) · 2.3 KB
/
TestPage.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
68
69
70
71
/**
* Created by jiang on 16/12/20.
*/
import React, { Component } from 'react'
import {
View,
Image,
ScrollView,
Text,
TouchableOpacity,
} from 'react-native'
import TestListView from './TestListView'
export default class TestPage extends Component {
constructor(props) {
super(props);
this.state = {
};
}
_renderRow(rowData, sectionId, rowId) {
var time=rowData.time;
time="2016-12-12";
var srorzcMonStr="标题";
return(
<View style={{
height: 210,
padding: 15,
borderBottomWidth: 1,
borderBottomColor: 'black',
width: 320
}}>
<Text style={{fontSize: 23}}>我是第:{rowId}</Text>
<View style={{
flexDirection: 'row',
flex: 1,
justifyContent: 'space-around',
alignItems: 'center'
}}>
<View style={{alignItems: 'center'}}>
<Text>交易金额</Text>
</View>
<View style={{alignItems: 'center'}}>
<Text>冻结金额</Text>
</View>
<View style={{alignItems: 'center'}}>
<Text>可用余额</Text>
</View>
</View>
<View style={{alignItems: 'flex-end', flexDirection: 'row', justifyContent: 'space-between'}}>
<Text style={{color: 'gray',fontSize: 12}}>时间:{time}</Text>
</View>
</View>
);
}
render() {
return(
<View style={{backgroundColor: '#eee', flex: 1, width: 320}}>
<TestListView tbvHeight={500}
ref={(e)=>this.tbv = e}
defaultPageItem={4}
renderRowCallback={(rowData, sectionId, rowId)=>this._renderRow(rowData, sectionId, rowId)}
networkParams={["http://v5.pc.duomi.com/search-ajaxsearch-searchall?", 'kw=相爱&pi=@&pz=4', "kFinancialRecords"]}
/>
</View>
);
}
componentDidMount() {
this.tbv._onRefresh(1, null);
}
}