修改
This commit is contained in:
parent
a31fe92fce
commit
56a9515009
@ -144,6 +144,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
timer: null,
|
||||||
Soonerorlater: 'morning',
|
Soonerorlater: 'morning',
|
||||||
timecurrent: 0, //时间下标
|
timecurrent: 0, //时间下标
|
||||||
openid: '',
|
openid: '',
|
||||||
@ -337,16 +338,30 @@
|
|||||||
title: '预约成功',
|
title: '预约成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
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) {
|
fail: function(err) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '取消预约',
|
title: '取消预约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: 1500,
|
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 {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user