Commit 331d2945 by 展昭

payurl window.location.href

parent 6ab21063
...@@ -234,16 +234,10 @@ export default { ...@@ -234,16 +234,10 @@ export default {
"loadPayUrl" "loadPayUrl"
]), ]),
toPay() { toPay() {
let payUrl = const failUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail");
this.payUrl + const successUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success");
"&accountType=1&payType=3&selected=1&failUrl=" + let payUrl=`${this.payUrl}&accountType=1&periodId=${this.currentPerId}&selected=1&failUrl=${failUrl}&successUrl=${successUrl}`;
encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail") + window.location.href=payUrl;
"&successUrl=" +
encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success") +
"" +
"&periodId=" +
this.currentPerId;
window.open(payUrl);
}, },
toPage(flag) { toPage(flag) {
switch (flag) { switch (flag) {
...@@ -436,7 +430,7 @@ export default { ...@@ -436,7 +430,7 @@ export default {
"padding-top:" + conHeight + "px !important" "padding-top:" + conHeight + "px !important"
); );
} }
}, 200); }, 100);
}, },
closeWebView() { closeWebView() {
try { try {
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
this.setPageNavState(); this.setPageNavState();
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
this.accountId = this.$route.query.accountId; this.accountId = this.$route.query.accountId;
const formType = this.$route.query.fromType; const fromType = this.$route.query.fromType;
console.log("fromType=", fromType); console.log("fromType=", fromType);
if (!fromType) { if (!fromType) {
if (this.getBeginDate > "2020-04-30") { if (this.getBeginDate > "2020-04-30") {
......
...@@ -77,8 +77,8 @@ export default { ...@@ -77,8 +77,8 @@ export default {
toPay() { toPay() {
const failUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail"); const failUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail");
const successUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success"); const successUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success");
let payUrl=`${this.payUrl}&accountType=19&failUrl=${failUrl}&successUrl=${successUrl}`; let payUrl=`${this.payUrl}&accountType=19&selected=1&failUrl=${failUrl}&successUrl=${successUrl}`;
window.open(payUrl); window.location.href=payUrl;
}, },
toPage() { toPage() {
this.$router.push({ this.$router.push({
......
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