From 1e06c01ae1da0be044a6df8a6f679ff086637167 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Tue, 13 Jun 2023 13:11:39 +0800 Subject: [PATCH] 二维码有效期必须大于当前时间 --- pages/businessCard/printCard.vue | 21 +++++++++++++++++++-- pages/businessCard/provideCard.vue | 7 ++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/pages/businessCard/printCard.vue b/pages/businessCard/printCard.vue index a9c23b8..7a691c2 100644 --- a/pages/businessCard/printCard.vue +++ b/pages/businessCard/printCard.vue @@ -136,8 +136,25 @@ export default { }, changeTime: function () { console.log(this.single) - this.deadline = this.single - this.getCouponStaticQR() + console.log(new Date(this.single).getTime()) + console.log(new Date().getTime()) + if(new Date(this.single).getTime()