This commit is contained in:
曹辉 2023-05-23 09:57:25 +08:00
parent a31fe92fce
commit 56a9515009

View File

@ -144,6 +144,7 @@
},
data() {
return {
timer: null,
Soonerorlater: 'morning',
timecurrent: 0, //
openid: '',
@ -337,16 +338,30 @@
title: '预约成功',
type: 'success',
duration: 1500,
url: `/pages/paysuccess/paysuccess`
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(e => {
uni.redirectTo({
url: `/pages/paysuccess/paysuccess`
})
}, 1500)
},
fail: function(err) {
that.$refs.uToast.show({
title: '取消预约',
type: 'error',
duration: 1500,
url: `/pages/menttimeorder/menttimeorder?list=${JSON.stringify(obj)}`
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(e => {
uni.redirectTo({
url: `/pages/menttimeorder/menttimeorder?list=${JSON.stringify(obj)}`
})
}, 1500)
}
});
} else {