Commit 898ee81e by 展昭
parents f33c7d0b da88f7d0
......@@ -244,7 +244,8 @@ export default {
const payType = 4;
const selected = 0;
const fee = this.data.waitPay;
let payUrl = `${this.payUrl}&accountType=1&periodId=${this.currentPerId}&payMethod=${payMethod}&payType=${payType}&fee=${fee}&selected=1&failUrl=${failUrl}&successUrl=${successUrl}`;
let payUrl = `${this.payUrl}&accountType=1&periodId=${this.currentPerId}&payMethod=${payMethod}&payType=${payType}&fee=${fee}&selected=0&failUrl=${failUrl}&successUrl=${successUrl}`;
window.location.href = payUrl;
},
toPage(flag) {
......@@ -503,6 +504,9 @@ export default {
this.setBarHeightLowBee();
this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.loadPeriodData();
},
async created(){
this.payUrl = await this.loadPayUrl();
}
};
......
......@@ -77,7 +77,7 @@ export default {
toPay() {
const failUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail");
const successUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success");
let payUrl=`${this.payUrl}&accountType=19&selected=1&failUrl=${failUrl}&successUrl=${successUrl}`;
let payUrl=`${this.payUrl}&accountType=19&selected=0&failUrl=${failUrl}&successUrl=${successUrl}`;
console.log('payUrl=',payUrl);
window.location.href=payUrl;
},
......@@ -118,6 +118,8 @@ export default {
this.setPageNavState();
this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.getData();
},
async created(){
this.payUrl = await this.loadPayUrl();
}
};
......
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 sign in to comment