Authored by chenl

增加了马上登陆提示兼容android的样式。

@@ -9,6 +9,7 @@ import ReactNative, { @@ -9,6 +9,7 @@ import ReactNative, {
9 StyleSheet, 9 StyleSheet,
10 Dimensions, 10 Dimensions,
11 TouchableOpacity, 11 TouchableOpacity,
  12 + Platform,
12 } from 'react-native'; 13 } from 'react-native';
13 14
14 import SlicedImage from '../../../common/components/SlicedImage'; 15 import SlicedImage from '../../../common/components/SlicedImage';
@@ -61,6 +62,8 @@ let brandIconHeight = 40 * DEVICE_WIDTH_RATIO; @@ -61,6 +62,8 @@ let brandIconHeight = 40 * DEVICE_WIDTH_RATIO;
61 62
62 let favWidth = 40 * DEVICE_WIDTH_RATIO; 63 let favWidth = 40 * DEVICE_WIDTH_RATIO;
63 64
  65 +let buttonTop = Platform.OS === 'ios' ? (25 * DEVICE_WIDTH_RATIO - 16) / 2 : (25 * DEVICE_WIDTH_RATIO - 20) / 2;
  66 +
64 let styles = StyleSheet.create({ 67 let styles = StyleSheet.create({
65 container: { 68 container: {
66 flexDirection: 'row', 69 flexDirection: 'row',
@@ -107,7 +110,7 @@ let styles = StyleSheet.create({ @@ -107,7 +110,7 @@ let styles = StyleSheet.create({
107 fontWeight: 'bold', 110 fontWeight: 'bold',
108 borderRadius: 14, 111 borderRadius: 14,
109 textAlign: 'center', 112 textAlign: 'center',
110 - paddingTop: (25 * DEVICE_WIDTH_RATIO - 16) / 2, 113 + paddingTop: buttonTop,
111 width: 75 * DEVICE_WIDTH_RATIO, 114 width: 75 * DEVICE_WIDTH_RATIO,
112 height: 25 * DEVICE_WIDTH_RATIO, 115 height: 25 * DEVICE_WIDTH_RATIO,
113 backgroundColor: '#d0021b', 116 backgroundColor: '#d0021b',