Commit 331d2945 by 展昭

payurl window.location.href

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