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

1.校智付缴费项目

parent f43e7d92
...@@ -335,6 +335,7 @@ ...@@ -335,6 +335,7 @@
}, { }, {
"path": "pages/StudentPayment/PayOrderDetails/PayOrderDetails", "path": "pages/StudentPayment/PayOrderDetails/PayOrderDetails",
"style": { "style": {
"navigationStyle": "custom",
"navigationBarTitleText": "交费订单明细", "navigationBarTitleText": "交费订单明细",
"navigationBarTextStyle":"white", "navigationBarTextStyle":"white",
"navigationBarBackgroundColor":"#01CB88", "navigationBarBackgroundColor":"#01CB88",
......
...@@ -153,19 +153,23 @@ ...@@ -153,19 +153,23 @@
onLoad: function(options) { onLoad: function(options) {
let this_ = this; let this_ = this;
let personalInfo = uni.getStorageSync("personalInfo") let personalInfo = uni.getStorageSync("personalInfo")
this.allData = Object.assign(options, personalInfo) let PayOrderDetails = uni.getStorageSync("PayOrderDetails")
if (options.PayResult) { this.allData = Object.assign(options, personalInfo, {
uni.showLoading({ chargeId: PayOrderDetails.id
mask: true, })
title: "查询支付结果" if (options.PaymentRsults) {
}) this_.dialogShow = true
setTimeout(function() { this.PaymentRsults = parseInt(options.PaymentRsults)
uni.hideLoading() // uni.showLoading({
this_.getPayParams(uni.getStorageSync("prepayId")) // mask: true,
}, 1000) // title: "查询支付结果"
} else { // })
this.queryChargeProDetail() // setTimeout(function() {
// uni.hideLoading()
// this_.returnPaymentResult(uni.getStorageSync("prepayId"))
// }, 1000)
} }
this.queryChargeProDetail()
}, },
onShow: function() { onShow: function() {
// uni.showLoading({ // uni.showLoading({
...@@ -391,9 +395,10 @@ ...@@ -391,9 +395,10 @@
}) })
return return
} }
console.warn(`/pages/WxPay/main?` + OforS(data.data)) data.data.package = encodeURIComponent(data.data.package)
jWeixin.miniProgram.switchTab({ console.warn(`/pages/toPayAuth/main?` + OforS(data.data))
url: `/pages/WxPay/main?` + OforS(data.data), jWeixin.miniProgram.redirectTo({
url: `/pages/toPayAuth/main?` + OforS(data.data),
}); });
} catch (e) { } catch (e) {
//TODO handle the exception //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