Authored by chenl

调整链接为原生链接,增加lineHeight取整。review by caomei。

... ... @@ -138,7 +138,7 @@ let styles = StyleSheet.create({
width: tabBtnWidth,
height: 44 * DEVICE_WIDTH_RATIO,
fontSize: 17 * DEVICE_WIDTH_RATIO,
lineHeight: 31 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(31 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
color: 'white',
},
... ... @@ -147,7 +147,7 @@ let styles = StyleSheet.create({
width: tabBtnWidth,
height: 44 * DEVICE_WIDTH_RATIO,
fontSize: 17 * DEVICE_WIDTH_RATIO,
lineHeight: 31 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(31 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
color: '#b0b0b0',
},
... ...
... ... @@ -186,7 +186,7 @@ let styles = StyleSheet.create({
fontSize: 13 * DEVICE_WIDTH_RATIO,
textAlign: 'center',
height: 44 * DEVICE_WIDTH_RATIO,
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
color: 'white',
},
... ... @@ -199,7 +199,7 @@ let styles = StyleSheet.create({
cellTitle: {
marginLeft: 15 * DEVICE_WIDTH_RATIO,
fontSize: 12 * DEVICE_WIDTH_RATIO,
lineHeight: 26 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(26 * DEVICE_WIDTH_RATIO),
},
cellPrice: {
color: '#b0b0b0',
... ...
... ... @@ -88,7 +88,7 @@ export default class AlreadyOpenedHeader extends React.Component {
}
<TouchableOpacity activeOpacity={0.5} onPress={() => {this.props.gotoRepayListPageWithDays &&this.props.gotoRepayListPageWithDays('7')}} >
<View style={{width:95*DEVICE_WIDTH_RATIO,height:30*DEVICE_WIDTH_RATIO,borderRadius:15*DEVICE_WIDTH_RATIO,alignItems:'center',backgroundColor:'rgba(69, 74, 76, 0.5)',marginTop:15*DEVICE_WIDTH_RATIO}}>
<Text style={[styles.imageText,{lineHeight:20*DEVICE_WIDTH_RATIO}]}>明细</Text>
<Text style={[styles.imageText,{lineHeight:Math.ceil(20 * DEVICE_WIDTH_RATIO)}]}>明细</Text>
</View>
</TouchableOpacity>
</View>
... ... @@ -183,7 +183,7 @@ let styles = StyleSheet.create({
width: tabBtnWidth,
height: 44 * DEVICE_WIDTH_RATIO,
fontSize: 16 * DEVICE_WIDTH_RATIO,
lineHeight: 31 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(31 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
color: 'white',
},
... ... @@ -192,7 +192,7 @@ let styles = StyleSheet.create({
width: tabBtnWidth,
height: 44 * DEVICE_WIDTH_RATIO,
fontSize: 16 * DEVICE_WIDTH_RATIO,
lineHeight: 30 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(30 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
color: '#b0b0b0',
},
... ... @@ -222,7 +222,7 @@ let styles = StyleSheet.create({
backgroundColor: 'transparent',
color: '#d4031a',
fontSize: 11 * DEVICE_WIDTH_RATIO,
lineHeight: 16 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(16 * DEVICE_WIDTH_RATIO),
textAlign: 'right',
},
imageText: {
... ... @@ -251,7 +251,7 @@ let styles = StyleSheet.create({
justifyContent: 'center',
height: 42 * DEVICE_WIDTH_RATIO,
fontSize: 16 * DEVICE_WIDTH_RATIO,
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
textAlign:'center',
textAlignVertical:'center',
backgroundColor: 'white',
... ...
... ... @@ -24,7 +24,7 @@ export default class BankSafePay extends React.Component {
<View style={styles.container}>
<View style={styles.safePayContainer}>
<View style={styles.titleContainer}>
<Text style={{fontSize:16*DEVICE_WIDTH_RATIO,lineHeight:30*DEVICE_WIDTH_RATIO,color:'#444444'}}>
<Text style={{fontSize:16*DEVICE_WIDTH_RATIO,lineHeight:Math.ceil(30 * DEVICE_WIDTH_RATIO),color:'#444444'}}>
银行安全支付
</Text>
<TouchableOpacity style={styles.closeIcon} onPress={() => {this.props.closeBankSafePay && this.props.closeBankSafePay()}} >
... ... @@ -160,7 +160,7 @@ let styles = StyleSheet.create({
fontSize: 13 * DEVICE_WIDTH_RATIO,
textAlign: 'center',
height: 44 * DEVICE_WIDTH_RATIO,
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
color: 'white',
},
... ...
... ... @@ -103,7 +103,7 @@ export default class ConfirmPay extends React.Component {
</View>
<TouchableOpacity onPress={() => {this._reSendConfirmPaySnsCode()}} >
<View style={styles.reSendSnsCode}>
<Text style={{fontSize:14 * DEVICE_WIDTH_RATIO,color:'white',lineHeight:29*DEVICE_WIDTH_RATIO,backgroundColor:'transparent',textAlign:'center'}}>
<Text style={{fontSize:14 * DEVICE_WIDTH_RATIO,color:'white',lineHeight:Math.ceil(29 * DEVICE_WIDTH_RATIO),backgroundColor:'transparent',textAlign:'center'}}>
{this.state.resendBtnText}
</Text>
</View>
... ...
... ... @@ -117,7 +117,7 @@ export default class InstallmentStatus extends React.Component {
width: width,
height: 44 * DEVICE_WIDTH_RATIO,
textAlign: 'center',
lineHeight: 29 *DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
}}>
分期专享
</Text>
... ... @@ -197,7 +197,7 @@ let styles = StyleSheet.create({
fontSize: 12 * DEVICE_WIDTH_RATIO,
color: '#b0b0b0',
textAlign: 'center',
lineHeight: 20 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
},
buttonContainer: {
marginTop: 35 * DEVICE_WIDTH_RATIO,
... ... @@ -211,6 +211,6 @@ let styles = StyleSheet.create({
textAlign: 'center',
fontSize: 14 * DEVICE_WIDTH_RATIO,
backgroundColor: 'transparent',
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
},
});
... ...
... ... @@ -257,7 +257,7 @@ let styles = StyleSheet.create({
warningMessage: {
textAlign: 'left',
color: 'white',
lineHeight: 19,
lineHeight: Math.ceil(19 * DEVICE_WIDTH_RATIO),
marginTop: 7,
marginLeft: 20,
marginRight: 20,
... ... @@ -294,7 +294,7 @@ let styles = StyleSheet.create({
textAlign: 'center',
color: 'white',
fontSize: 14 * DEVICE_WIDTH_RATIO,
lineHeight: 26 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(26 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
},
bankCellContainer: {
... ...
... ... @@ -184,7 +184,7 @@ let styles = StyleSheet.create({
open_text:{
width: width - 70 * DEVICE_WIDTH_RATIO,
height: 44 * DEVICE_WIDTH_RATIO,
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
textAlign:'center',
color:"white",
fontSize: 14 * DEVICE_WIDTH_RATIO,
... ... @@ -200,7 +200,7 @@ let styles = StyleSheet.create({
alignItems: 'center',
justifyContent: 'center',
fontSize: 15 * DEVICE_WIDTH_RATIO,
lineHeight: 27 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(27 * DEVICE_WIDTH_RATIO),
height: 40 * DEVICE_WIDTH_RATIO,
width: width,
textAlign:'center',
... ...
... ... @@ -160,7 +160,7 @@ let styles = StyleSheet.create({
height: 44 * DEVICE_WIDTH_RATIO,
},
title: {
lineHeight: 28 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(20 * DEVICE_WIDTH_RATIO),
fontSize: 12 * DEVICE_WIDTH_RATIO,
marginLeft: 15 * DEVICE_WIDTH_RATIO,
},
... ... @@ -188,7 +188,7 @@ let styles = StyleSheet.create({
borderWidth: 0.5,
borderRadius: 14 * DEVICE_WIDTH_RATIO,
textAlign: 'center',
lineHeight: 20 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(20 * DEVICE_WIDTH_RATIO),
marginTop: 8 * DEVICE_WIDTH_RATIO,
fontSize: 12 * DEVICE_WIDTH_RATIO,
},
... ...
... ... @@ -105,7 +105,7 @@ let styles = StyleSheet.create({
flexDirection: 'row',
},
repayAmtText: {
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
fontSize:15*DEVICE_WIDTH_RATIO,
},
repayStatusContianer: {
... ... @@ -144,7 +144,7 @@ let styles = StyleSheet.create({
marginTop: 40 * DEVICE_WIDTH_RATIO,
color: '#b0b0b0',
fontSize: 12 * DEVICE_WIDTH_RATIO,
lineHeight: 15 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(15 * DEVICE_WIDTH_RATIO),
},
questionContianer: {
borderBottomWidth: 1*DEVICE_WIDTH_RATIO,
... ...
... ... @@ -144,7 +144,7 @@ export default class RepayList extends React.Component {
<TouchableOpacity onPress={() => {this.props.onPressPayNow &&this.props.onPressPayNow()}} >
<View style={styles.repaymentBtn}>
<Text style={{color:'white',fontSize:13*DEVICE_WIDTH_RATIO,lineHeight:29*DEVICE_WIDTH_RATIO}}>立即还款</Text>
<Text style={{color:'white',fontSize:13*DEVICE_WIDTH_RATIO,lineHeight:Math.ceil(29 * DEVICE_WIDTH_RATIO)}}>立即还款</Text>
</View>
</TouchableOpacity>
... ... @@ -219,7 +219,7 @@ let styles = StyleSheet.create({
textAlign: 'center',
fontSize: 14 * DEVICE_WIDTH_RATIO,
backgroundColor: 'transparent',
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(29 * DEVICE_WIDTH_RATIO),
},
contentContainer:{
backgroundColor: 'white',
... ...
... ... @@ -70,7 +70,7 @@ let styles = StyleSheet.create({
fontSize: 12 * DEVICE_WIDTH_RATIO,
width: 175 * DEVICE_WIDTH_RATIO,
textAlign: 'center',
lineHeight: 16 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(16 * DEVICE_WIDTH_RATIO),
color: '#444444',
},
... ... @@ -79,7 +79,7 @@ let styles = StyleSheet.create({
fontSize: 12 * DEVICE_WIDTH_RATIO,
color: '#b0b0b0',
textAlign: 'center',
lineHeight: 20 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(20 * DEVICE_WIDTH_RATIO),
},
buttonContainer: {
marginTop: 35 * DEVICE_WIDTH_RATIO,
... ... @@ -93,6 +93,6 @@ let styles = StyleSheet.create({
textAlign: 'center',
fontSize: 14 * DEVICE_WIDTH_RATIO,
backgroundColor: 'transparent',
lineHeight: 29 * DEVICE_WIDTH_RATIO,
lineHeight: 29,
},
});
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class InstallmentService {
constructor (host) {
... ...