Commit 850b797f authored by Xuguangxing's avatar Xuguangxing

fix

parent ccd1e5f6
......@@ -100,6 +100,12 @@ export default {
const { orderNo, reason, payType } = this.$route.query;
const { success } = this.$route.meta;
// const amount = cookies.get('amount') || {};
if (isWxMp) {
// 小程序需要从url当中获取支付金额和优惠金额等参数
const { amount, freeAmount } = this.$route.query;
this.money = amount;
this.freeAmount = freeAmount;
} else {
try {
const amount = JSON.parse(cookies.get('amount'));
this.money = amount.finalAmt || '';
......@@ -108,6 +114,7 @@ export default {
this.money = '';
this.freeAmount = '';
}
}
this.payType = payType || '';
this.orderNo = orderNo;
this.reason = reason || '';
......
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