Commit 966fe8d9 authored by malin's avatar malin

r

parent f2ac096c
...@@ -100,8 +100,8 @@ export default { ...@@ -100,8 +100,8 @@ export default {
const n = JSON.parse(utils.getCookie("baseInfo")); const n = JSON.parse(utils.getCookie("baseInfo"));
this.baseInfo = n ? n : ["name", "name"]; this.baseInfo = n ? n : ["name", "name"];
// this._queryOrder(); this._queryOrder();
this._fetchInfo(); // this._fetchInfo();
}, },
methods: { methods: {
...@@ -151,16 +151,17 @@ export default { ...@@ -151,16 +151,17 @@ export default {
return; return;
} }
if (status == 200) { if (status == 200) {
this._fetchInfo();
return; return;
} else { } else {
// 支付不成功 // 支付不成功
setTimeout(() => { setTimeout(() => {
if (this.countdown == 1) { if (this.countdown > 3) {
return this.$router.push({ path: "/pay", query: this.baseInfo }); return this.$router.push({ path: "/pay", query: this.baseInfo });
} }
this.countdown += 1; this.countdown += 1;
this._queryOrder(); this._queryOrder();
}, 2000); }, 1000);
} }
}); });
}, },
......
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