onShow(options) {
console.log(options, 'app');
let queryObj = options.query
this.globalData.isLoading = false
this.globalData.business_product_id = queryObj.business_product_id ? queryObj.business_product_id : ''
this.globalData.repayment_wx_trade_no = queryObj.repayment_wx_trade_no ? queryObj.repayment_wx_trade_no : ''
console.log(this.globalData.business_product_id);
console.log(this.globalData.repayment_wx_trade_no);
},
const app = getApp();
const PRODUCT_ID = parseInt(app.globalData.business_product_id)
const TRADE_NO = app.globalData.repayment_wx_trade_no
onShow() {
if (app.globalData.isLoading) {
return
}
console.log(TRADE_NO);
this.judgeEvent(TRADE_NO)
},
judgeEvent(TRADE_NO) {
console.log(TRADE_NO);
if (TRADE_NO) {
console.log(TRADE_NO, 'trade');
this.getRepayment(paySuccess.url, paySuccess.params)
} else {
console.log(PRODUCT_ID, 'product');
this.getRepayment(payParams.url, payParams.params)
}
},