methods: {
onClickLeft() {
this.$router.go(-1);
},
goPay() {
const toast = this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true,
message: "支付中……",
// loadingType: "spinner",
});
const timer = setTimeout(() => {
toast.icon = 'success';
toast.message = `支付成功`;
clearInterval(timer);
// 手动清除 Toast
this.$toast.clear();
this.$router.push({path: 'myOrder'});
}, 2000);
},
countTime() {
var date = new Date()
var now = date.getTime()
//设置截止时间
var createDate = new Date(this.dataList.createTime)
var create = createDate.getTime()
//时间差
var leftTime = create + 30 * 60 * 1000 - now
this.time=leftTime
setTimeout(this.countTime, 1000)
},
},
01-17
08-27
07-27