调整了android上样式,修改了跳转规则。review by 草莓。
Showing
4 changed files
with
16 additions
and
6 deletions
@@ -294,7 +294,7 @@ let styles = StyleSheet.create({ | @@ -294,7 +294,7 @@ let styles = StyleSheet.create({ | ||
294 | textAlign: 'center', | 294 | textAlign: 'center', |
295 | color: 'white', | 295 | color: 'white', |
296 | fontSize: 14 * DEVICE_WIDTH_RATIO, | 296 | fontSize: 14 * DEVICE_WIDTH_RATIO, |
297 | - lineHeight: Math.ceil(26 * DEVICE_WIDTH_RATIO), | 297 | + lineHeight: Platform.OS === 'ios' ? Math.ceil(26 * DEVICE_WIDTH_RATIO) : Math.ceil(30 * DEVICE_WIDTH_RATIO), |
298 | backgroundColor: 'transparent', | 298 | backgroundColor: 'transparent', |
299 | }, | 299 | }, |
300 | bankCellContainer: { | 300 | bankCellContainer: { |
@@ -109,6 +109,7 @@ export default class OpenPageInputCell extends React.Component { | @@ -109,6 +109,7 @@ export default class OpenPageInputCell extends React.Component { | ||
109 | onChange={this._updateCellParams} | 109 | onChange={this._updateCellParams} |
110 | style={[styles.textInput,{width:inputBoxWidth}]} | 110 | style={[styles.textInput,{width:inputBoxWidth}]} |
111 | maxLength={cellParams.maxLength} | 111 | maxLength={cellParams.maxLength} |
112 | + underlineColorAndroid="transparent" | ||
112 | onFocus={() => { | 113 | onFocus={() => { |
113 | this.props.onFocus && this.props.onFocus(refId); | 114 | this.props.onFocus && this.props.onFocus(refId); |
114 | }} | 115 | }} |
@@ -158,6 +159,8 @@ let styles = StyleSheet.create({ | @@ -158,6 +159,8 @@ let styles = StyleSheet.create({ | ||
158 | titleAndInputContainer: { | 159 | titleAndInputContainer: { |
159 | flexDirection: 'row', | 160 | flexDirection: 'row', |
160 | height: 44 * DEVICE_WIDTH_RATIO, | 161 | height: 44 * DEVICE_WIDTH_RATIO, |
162 | + alignItems: 'center', | ||
163 | + justifyContent: 'center', | ||
161 | }, | 164 | }, |
162 | title: { | 165 | title: { |
163 | lineHeight: Math.ceil(20 * DEVICE_WIDTH_RATIO), | 166 | lineHeight: Math.ceil(20 * DEVICE_WIDTH_RATIO), |
@@ -168,12 +171,13 @@ let styles = StyleSheet.create({ | @@ -168,12 +171,13 @@ let styles = StyleSheet.create({ | ||
168 | width: 211 * DEVICE_WIDTH_RATIO, | 171 | width: 211 * DEVICE_WIDTH_RATIO, |
169 | height: 20 * DEVICE_WIDTH_RATIO, | 172 | height: 20 * DEVICE_WIDTH_RATIO, |
170 | fontSize: 12 * DEVICE_WIDTH_RATIO, | 173 | fontSize: 12 * DEVICE_WIDTH_RATIO, |
171 | - marginTop: 12 * DEVICE_WIDTH_RATIO, | 174 | + padding: 0, |
175 | + marginTop: 4 * DEVICE_WIDTH_RATIO, | ||
172 | }, | 176 | }, |
173 | touchContainer:{ | 177 | touchContainer:{ |
174 | width: 20* DEVICE_WIDTH_RATIO, | 178 | width: 20* DEVICE_WIDTH_RATIO, |
175 | height: 20 * DEVICE_WIDTH_RATIO, | 179 | height: 20 * DEVICE_WIDTH_RATIO, |
176 | - marginTop: 12 * DEVICE_WIDTH_RATIO, | 180 | + marginTop: 4 * DEVICE_WIDTH_RATIO, |
177 | marginLeft: 12 * DEVICE_WIDTH_RATIO, | 181 | marginLeft: 12 * DEVICE_WIDTH_RATIO, |
178 | }, | 182 | }, |
179 | questionCardNo: { | 183 | questionCardNo: { |
@@ -233,7 +233,9 @@ export function productListForInstallment() { | @@ -233,7 +233,9 @@ export function productListForInstallment() { | ||
233 | 233 | ||
234 | export function onPressOpenInstallment() { | 234 | export function onPressOpenInstallment() { |
235 | return (dispatch, getState) => { | 235 | return (dispatch, getState) => { |
236 | - ReactNative.NativeModules.YH_InstallmentHelper.goToOpenInstallment(); | 236 | + // ReactNative.NativeModules.YH_InstallmentHelper.goToOpenInstallment(); |
237 | + let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.instalmentOpen","params":{}}`; | ||
238 | + ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url); | ||
237 | } | 239 | } |
238 | } | 240 | } |
239 | 241 |
@@ -104,8 +104,12 @@ export function onPressOpenNext() { | @@ -104,8 +104,12 @@ export function onPressOpenNext() { | ||
104 | // if (!nextBtnEnable) { | 104 | // if (!nextBtnEnable) { |
105 | // return; | 105 | // return; |
106 | // } | 106 | // } |
107 | - ReactNative.NativeModules.YH_InstallmentHelper.gotoInstallmentStatusView('2', '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。'); | ||
108 | - return; | 107 | + //跳转原生静态页面 |
108 | + let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.instalmentActivated","params":{'status':'2','failReason':'您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。'}}`; | ||
109 | + ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url); | ||
110 | + | ||
111 | + // ReactNative.NativeModules.YH_InstallmentHelper.gotoInstallmentStatusView('2', '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。'); | ||
112 | + // return; | ||
109 | cellList.map((item, i) => { | 113 | cellList.map((item, i) => { |
110 | if (item.get('inputKey') != 'BankIcon') { | 114 | if (item.get('inputKey') != 'BankIcon') { |
111 | activateParams[item.get('inputKey')]= item.get('text'); | 115 | activateParams[item.get('inputKey')]= item.get('text'); |
-
Please register or login to post a comment