Commit b36e40f0 authored by 李智书's avatar 李智书

1.校智付缴费项目

parent f43e7d92
......@@ -335,6 +335,7 @@
}, {
"path": "pages/StudentPayment/PayOrderDetails/PayOrderDetails",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "交费订单明细",
"navigationBarTextStyle":"white",
"navigationBarBackgroundColor":"#01CB88",
......
......@@ -153,19 +153,23 @@
onLoad: function(options) {
let this_ = this;
let personalInfo = uni.getStorageSync("personalInfo")
this.allData = Object.assign(options, personalInfo)
if (options.PayResult) {
uni.showLoading({
mask: true,
title: "查询支付结果"
})
setTimeout(function() {
uni.hideLoading()
this_.getPayParams(uni.getStorageSync("prepayId"))
}, 1000)
} else {
this.queryChargeProDetail()
let PayOrderDetails = uni.getStorageSync("PayOrderDetails")
this.allData = Object.assign(options, personalInfo, {
chargeId: PayOrderDetails.id
})
if (options.PaymentRsults) {
this_.dialogShow = true
this.PaymentRsults = parseInt(options.PaymentRsults)
// uni.showLoading({
// mask: true,
// title: "查询支付结果"
// })
// setTimeout(function() {
// uni.hideLoading()
// this_.returnPaymentResult(uni.getStorageSync("prepayId"))
// }, 1000)
}
this.queryChargeProDetail()
},
onShow: function() {
// uni.showLoading({
......@@ -391,9 +395,10 @@
})
return
}
console.warn(`/pages/WxPay/main?` + OforS(data.data))
jWeixin.miniProgram.switchTab({
url: `/pages/WxPay/main?` + OforS(data.data),
data.data.package = encodeURIComponent(data.data.package)
console.warn(`/pages/toPayAuth/main?` + OforS(data.data))
jWeixin.miniProgram.redirectTo({
url: `/pages/toPayAuth/main?` + OforS(data.data),
});
} catch (e) {
//TODO handle the exception
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment