From 41426416bd250130129fb8a547bee874375768a8 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期四, 14 十一月 2024 09:47:15 +0800 Subject: [PATCH] 1.付款:改成15分钟,并使用服务器时间进行倒计时 2.优惠券中心:已经领取(达到最大次数),显示已领取且置灰,未领取根据创建时间放前面,已领取根据首次时间正序排序 3.购物车-提交订单:自动根据订单金额选择合适优惠券 --- plugins/util.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/plugins/util.js b/plugins/util.js index d569ad2..2067642 100644 --- a/plugins/util.js +++ b/plugins/util.js @@ -137,6 +137,12 @@ } return '' }, + toMonth(date) { + if (date) { + return moment(date).format('MM-DD') + } + return '' + }, formatDate(date, format) { if (date) { return moment(date).format(format) -- Gitblit v1.9.3