Authored by 张丽霞

开通分期结果页跳转,review by 盖见秋

... ... @@ -261,10 +261,10 @@ export function onPressOpenNext() {
let {nextBtnEnable,cellList,nextProcessing} = installment.openPageInfo;
let activateParams = {};
let newCellList = cellList;
// if (!nextBtnEnable) {
// return;
// }
ReactNative.NativeModules.YH_InstallmentHelper.gotoInstallmentStatusView('2', '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。');
if (!nextBtnEnable) {
return;
}
// ReactNative.NativeModules.YH_InstallmentHelper.gotoInstallmentStatusView('5', '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。');
return;
cellList.map((item, i) => {
if (item.get('inputKey') != 'BankIcon') {
... ... @@ -541,7 +541,7 @@ export function setInstallmentStausPageParams(statusCode, failReason, uid) {
return (dispatch, getState) => {
let {app, installment} = getState();
let status ='';
let jumpUrl = '';
let jumpUrl = `http://m.yohobuy.com/product/new/?openby:yohobuy={"action":"go.new","params":{"title":"新品到着"}}`;
let statusInfo = {};
if (statusCode == '2') {//成功
//请求用户信用额度
... ... @@ -605,6 +605,7 @@ export function setInstallmentStausPageParams(statusCode, failReason, uid) {
reason: '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。',
btnText: '重新申请',
}
jumpUrl='';
}
break;
default:
... ... @@ -642,6 +643,10 @@ export function onPressStatusPageBtn(page) {
return (dispatch, getState) => {
let {app, installment} = getState();
let {jumpUrl} = installment.installmentStausPageInfo;
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(jumpUrl);
if (jumpUrl && jumpUrl != '') {
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(jumpUrl);
} else {
ReactNative.NativeModules.YH_InstallmentHelper.backToOpenInstallment();
}
};
}
... ...