reactNative

 var obse = Observable.create((obspar) => {
        http._postRequest(url, data, (result, type, errorinfo) => {
            SActivityIndicator.hide();//回调证明加载完毕,此时隐藏加载框
            if (type === 'success') {
                if (result.RESP_PARAM.PUB_INFO.RETURN_RESULT === 0) {
                    //证明数据查询成功
                    let lat = result.RESP_PARAM.BUSI_INFO.CURE_LATE_FEE;
                    if (typeof(lat) !== "undefined" && lat !== '') {
                        if(parseFloat(lat + '') > 0){
                            item["CURE_LATE_FEE"] = lat;
                            iscont = 1;
                        }
                        sum=sum+parseFloat(item.PRO_OWE_AMOUNT+'');
                        obspar.next(item);
                    }else{
                        qryLateFee = false;
                        Toast.info("根据计费号:" + item.BILL_NO + "查询滞纳金失败", 2);
                        return;
                    }
                } else {
                    qryLateFee = false;
                    Toast.info("根据计费号:" + item.BILL_NO + "查询滞纳金失败", 2);
                    return;
                }
            } else {
                qryLateFee = false;
                Toast.info("根据计费号:" + item.BILL_NO + "查询滞纳金失败", 2);
                return;
            }
            obspar.complete();
        });
    });
    mararray.push(obse);
}

猜你喜欢

转载自blog.csdn.net/m0_38138996/article/details/81013905