Showing
1 changed file
with
4 additions
and
3 deletions
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | import React, {Component} from 'react'; | 3 | import React, {Component} from 'react'; |
4 | -import {DeviceEventEmitter, Dimensions, Image, StyleSheet, Text, TextInput, TouchableOpacity, View, Linking} from 'react-native'; | 4 | +import {DeviceEventEmitter, Dimensions, Image, StyleSheet, Text, TextInput, TouchableOpacity, View, Linking, Platform} from 'react-native'; |
5 | import SureBankCardModal from "./SureBankCardModal"; | 5 | import SureBankCardModal from "./SureBankCardModal"; |
6 | 6 | ||
7 | 7 | ||
@@ -98,12 +98,13 @@ export default class BankCard extends Component { | @@ -98,12 +98,13 @@ export default class BankCard extends Component { | ||
98 | <View style={styles.lineView}/> | 98 | <View style={styles.lineView}/> |
99 | <View style={styles.inputView}> | 99 | <View style={styles.inputView}> |
100 | <Text style={[styles.wordText, {width: 76, color: '#444444'}]}>开户行</Text> | 100 | <Text style={[styles.wordText, {width: 76, color: '#444444'}]}>开户行</Text> |
101 | - <TouchableOpacity style={{flexDirection: 'row', height: 44, alignItems: 'center',}} activeOpacity={0.8} | 101 | + <TouchableOpacity style={{flexDirection: 'row', height: 44, alignItems: 'center'}} activeOpacity={0.8} |
102 | onPress={() => { | 102 | onPress={() => { |
103 | this.props.jumpWithUrl && this.props.jumpWithUrl('开户行', 'bankList'); | 103 | this.props.jumpWithUrl && this.props.jumpWithUrl('开户行', 'bankList'); |
104 | }}> | 104 | }}> |
105 | <Text style={[styles.wordText, { | 105 | <Text style={[styles.wordText, { |
106 | - width: 260, paddingLeft: 12, | 106 | + width: width-124, |
107 | + paddingLeft: Platform.OS === 'ios' ? 0 : 12, | ||
107 | color: this.state.bankName === '' ? '#b0b0b0' : '#444444' | 108 | color: this.state.bankName === '' ? '#b0b0b0' : '#444444' |
108 | }]}>{this.state.bankName === '' ? '请选择开户行' : this.state.bankName}</Text> | 109 | }]}>{this.state.bankName === '' ? '请选择开户行' : this.state.bankName}</Text> |
109 | <Image style={styles.arrowImage} source={require('../images/arrow.png')}/> | 110 | <Image style={styles.arrowImage} source={require('../images/arrow.png')}/> |
-
Please register or login to post a comment