Преглед на файлове

fix: 活动时间判断逻辑调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe преди 4 месеца
родител
ревизия
6b34ab2d3a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/web/templates/order/pc/paySuccess.html

+ 1 - 1
src/web/templates/order/pc/paySuccess.html

@@ -501,7 +501,7 @@
                 const currentTime = Math.floor(Date.now() / 1000)
                 const currentTime = Math.floor(Date.now() / 1000)
                 // 判断是否过期
                 // 判断是否过期
                 const { startTime, endTime } = data
                 const { startTime, endTime } = data
-                if (startTime < currentTime < endTime) {
+                if (startTime < currentTime && currentTime < endTime) {
                   this.isShowGift = true
                   this.isShowGift = true
                 }
                 }
                 else {
                 else {