Authored by chenl

调整了android上样式,修改了跳转规则。review by 草莓。

... ... @@ -294,7 +294,7 @@ let styles = StyleSheet.create({
textAlign: 'center',
color: 'white',
fontSize: 14 * DEVICE_WIDTH_RATIO,
lineHeight: Math.ceil(26 * DEVICE_WIDTH_RATIO),
lineHeight: Platform.OS === 'ios' ? Math.ceil(26 * DEVICE_WIDTH_RATIO) : Math.ceil(30 * DEVICE_WIDTH_RATIO),
backgroundColor: 'transparent',
},
bankCellContainer: {
... ...
... ... @@ -109,6 +109,7 @@ export default class OpenPageInputCell extends React.Component {
onChange={this._updateCellParams}
style={[styles.textInput,{width:inputBoxWidth}]}
maxLength={cellParams.maxLength}
underlineColorAndroid="transparent"
onFocus={() => {
this.props.onFocus && this.props.onFocus(refId);
}}
... ... @@ -158,6 +159,8 @@ let styles = StyleSheet.create({
titleAndInputContainer: {
flexDirection: 'row',
height: 44 * DEVICE_WIDTH_RATIO,
alignItems: 'center',
justifyContent: 'center',
},
title: {
lineHeight: Math.ceil(20 * DEVICE_WIDTH_RATIO),
... ... @@ -168,12 +171,13 @@ let styles = StyleSheet.create({
width: 211 * DEVICE_WIDTH_RATIO,
height: 20 * DEVICE_WIDTH_RATIO,
fontSize: 12 * DEVICE_WIDTH_RATIO,
marginTop: 12 * DEVICE_WIDTH_RATIO,
padding: 0,
marginTop: 4 * DEVICE_WIDTH_RATIO,
},
touchContainer:{
width: 20* DEVICE_WIDTH_RATIO,
height: 20 * DEVICE_WIDTH_RATIO,
marginTop: 12 * DEVICE_WIDTH_RATIO,
marginTop: 4 * DEVICE_WIDTH_RATIO,
marginLeft: 12 * DEVICE_WIDTH_RATIO,
},
questionCardNo: {
... ...
... ... @@ -233,7 +233,9 @@ export function productListForInstallment() {
export function onPressOpenInstallment() {
return (dispatch, getState) => {
ReactNative.NativeModules.YH_InstallmentHelper.goToOpenInstallment();
// ReactNative.NativeModules.YH_InstallmentHelper.goToOpenInstallment();
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.instalmentOpen","params":{}}`;
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
}
}
... ...
... ... @@ -104,8 +104,12 @@ export function onPressOpenNext() {
// if (!nextBtnEnable) {
// return;
// }
ReactNative.NativeModules.YH_InstallmentHelper.gotoInstallmentStatusView('2', '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。');
return;
//跳转原生静态页面
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.instalmentActivated","params":{'status':'2','failReason':'您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。'}}`;
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
// ReactNative.NativeModules.YH_InstallmentHelper.gotoInstallmentStatusView('2', '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。');
// return;
cellList.map((item, i) => {
if (item.get('inputKey') != 'BankIcon') {
activateParams[item.get('inputKey')]= item.get('text');
... ...