Commit 6c224d0b by 刘泽奇

123

parent 7731ba34
......@@ -225,7 +225,7 @@
var self = this;
var startTime = Number(this.time);
setTimeout(function () {
var inth = setInterval(function () {
this.interval = setInterval(function () {
console.log(self.orderInfo, ".............................");
var obj = self.$root.copyParams({
orderCode: self.orderInfo.orderNo,
......@@ -238,7 +238,7 @@
console.log(d);
if (d && d.status == 0 && d.data && d.data.orderPayStatus == "yfk") {
self.orderInfo = d.data;
window.clearInterval(inth);
window.clearInterval(self.interval);
/*
self.$message.success("付款成功");
......@@ -256,12 +256,11 @@
var passTime = (new Date().getTime() - startTime) / 1000;
var p = Math.round((passTime / 300) * 100);
if (passTime > 300) {
clearInterval(inth);
clearInterval(self.interval);
}
}
});
}, 5000);
self.interval = inth;
}, 5000);
},
destroyed() {
......
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