Commit 372ba57c authored by IvyXia123's avatar IvyXia123

去除定时器

parent 2f82c4e2
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
position: fixed; position: fixed;
background: #f4f4f4; background: #f4f4f4;
} }
/* html{font-size: 1px;} */</style><link href=static/css/app.d7ff704234c186886ba9e9e037596e8c.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.6a8a8f81d41eede92744.js></script><script type=text/javascript src=static/js/vendor.0c1d6ebbba685002d59c.js></script><script type=text/javascript src=static/js/app.f01076fe98b31a1e95c1.js></script></body></html> /* html{font-size: 1px;} */</style><link href=static/css/app.d7ff704234c186886ba9e9e037596e8c.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.6a8a8f81d41eede92744.js></script><script type=text/javascript src=static/js/vendor.0c1d6ebbba685002d59c.js></script><script type=text/javascript src=static/js/app.84b4c64e9e52528644ef.js></script></body></html>
\ No newline at end of file \ No newline at end of file
...@@ -50,22 +50,6 @@ Vue.component('scroll', scroll); ...@@ -50,22 +50,6 @@ Vue.component('scroll', scroll);
// 支付宝支付完成,订单状态查询 // 支付宝支付完成,订单状态查询
let timer = null; let timer = null;
timer = setInterval(() => {
Dialog.confirm({title: '标题', message: '支付成功'}).then(() => {
if (res.buy_type == 1) {
router.push({name: "buySuccess", query: outTradEno});
} else {
router.push({name: "success", query: outTradEno});
}
clearInterval(timer);
localStorage.removeItem('out_trade_no')
}).catch(() => {
clearInterval(timer);
localStorage.removeItem('out_trade_no')
});
// }
}, 6000)
if(window.localStorage.out_trade_no) { if(window.localStorage.out_trade_no) {
timer = setInterval(() => { timer = setInterval(() => {
......
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