DistributionInfoCell.js
2.16 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
'use strict';
import React, {Component} from 'react';
import Immutable, {Map} from 'immutable';
import ReactNative, {
View,
Text,
Image,
StyleSheet,
Dimensions,
TouchableOpacity,
InteractionManager,
Platform
} from 'react-native';
import ListView from 'deprecated-react-native-listview'
export default class DistributionInfoCell extends Component {
constructor(props) {
super(props);
}
render() {
return (
<View style={[styles.container]}>
<View style={styles.leftPart}>
<Image style={{
}} source={require('../../image/xxd_ic.png')}/>
</View>
<View style={[styles.rightPart]}>
<View style={styles.topPart}>
<Text style={styles.codeText}>配送信息</Text>
</View>
<Text style={styles.otherText}>配送方式:门店取货</Text>
</View>
</View>
);
}
}
let {width, height} = Dimensions.get('window');
let styles = StyleSheet.create({
container: {
width: width,
flexDirection: 'row',
backgroundColor: 'white',
borderColor: '#f0f0f0',
borderBottomWidth: 10
},
topPart: {
width: width - 45,
height: 20,
flexDirection: 'row',
alignItems: 'center',
marginTop: 13,
marginBottom: 2
},
codeText: {
fontSize: 14,
marginBottom: 0,
color: '#444444',
fontFamily: 'STHeitiSC-Light',
},
copyButton: {
marginLeft: 10,
width: 44,
height: 18,
borderColor: '#444444',
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center'
},
leftPart: {
width: 45,
justifyContent: 'center',
alignItems: 'center'
},
rightPart: {
width: width - 45,
flexDirection: 'column',
borderColor: '#ededed',
paddingBottom: 10
},
otherText: {
fontSize: 12,
marginBottom: 3,
color: '#b0b0b0',
fontFamily: 'STHeitiSC-Light',
}
});